Skip to main content
Glama

Find offers across brands

sightglass_find_offers
Read-onlyIdempotent

Offer campaigns across brands. With no companyRefs, mode is 'top': the offers running across every tracked brand in the trailing window, sorted by how many ads carry them, how long they have run, or how deep the discount is. With companyRefs, mode is 'calendar': those brands' campaigns in a date window, side by side, for comparing promo timing. Use it for 'what offers are working in this market' and 'when do these brands run sales'. Fields the user's Replo plan doesn't include come back null and are named in that item's locked list (estimates = sales, visits and traffic); lockedCount is how many more results a higher plan shows. Say the data is on a higher plan; never estimate it yourself. Returns data only: nothing is shown to the user yet. Once you know the answer, call sightglass_show once with this call's resultId to show it as cards; the show call does not search again.

Input Schema

NameRequiredDescriptionDefault
toNoCalendar only. YYYY-MM-DD; defaults to a week ahead
daysNoTop offers only. Trailing window; defaults to 30.
fromNoCalendar only. YYYY-MM-DD; defaults to six weeks back
sortNoTop offers only. ads = most ads carrying it, running = longest running, depth = deepest discount.
limitNo
projectIdNoReplo project id, from list_projects: where the charge or the asset lands. Its workspace's plan applies.
companyRefsNoCompany ids or slugs: returns the promo calendar for these brands. Omit for the top offers across every tracked brand.
workspaceIdNoReplo workspace id, from list_workspaces. Sets which workspace's plan applies; required when the user has more than one workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint/idempotent annotations, it discloses non-obvious behavior: fields outside the plan come back null and are enumerated in each item's `locked` list, `lockedCount` signals withheld results, and the agent must tell the user the data is on a higher plan rather than estimate it. It also states explicitly that nothing is shown to the user until sightglass_show is called with the resultId.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the dual-mode framing before the plan/locked caveats and the show workflow, and nearly every sentence carries actionable information. It is dense and runs long, but the length is justified by the number of distinct behaviors being disclosed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and 8 optional parameters, the description still tells the agent what comes back (items with `locked` lists, `lockedCount`), how to present results (sightglass_show once with resultId), and how plan gating affects output. Nothing an agent needs to invoke or follow up correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 88%, so the schema already documents most parameters and the baseline is 3. The description adds genuine semantics the schema lacks: companyRefs presence switches mode, and sort's three values map to concrete meanings (most ads, longest running, deepest discount) with trailing-window framing for `days`.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (offer campaigns across brands) and splits behavior into two clearly labeled modes ('top' with no companyRefs, 'calendar' with them). It goes well beyond restating the title, though it does not explicitly contrast itself with near siblings like sightglass_find_campaigns or sightglass_find_ads, which an agent could confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete user-intent triggers ('what offers are working in this market', 'when do these brands run sales') and an explicit rule selecting mode based on whether companyRefs is supplied. The follow-up instruction to call sightglass_show with the resultId, and the note that show does not re-search, closes the loop on next steps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources