Skip to main content
Glama

Top brands of an audience

cross_shop
Read-only

The merchants a cohort uses most

The merchants an audience uses most, ranked by accounts: "within Florida, for people with a lottery transaction, what are the top 10 brands they also shop at?" Name the audience by merchant or group.

Each row has share_of_cohort and index: that share over the merchant's share of all accounts in the same scope, so 120 is 20% more likely than the average account. Lead with the index: the largest chains top every list by share. Accounts are not people.

A merchant or cohort below 10,000 transactions or 1,000 accounts is left out; a cohort below either comes back suppressed, with no reason given. The window snaps to whole months and spans at most 2.

The window is at most 2 calendar months. A longer one is cut to its last 2 and the result's note says so: quote the window it gives.

Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "cross_shop"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoThe audience by merchant group, slug or id, such as `lotteries`, `lotteries-retail`, `lotteries-online` or `sportsbooks`. Wins over `merchant`.
limitNoMerchants to return, 1 to 50.
end_dateYesInclusive ISO-8601 date. At most 366 days after `start_date`.
merchantNoThe audience by brand name.
start_dateYesInclusive ISO-8601 date.
merchant_idNoThe audience by canonical merchant UUIDs. Comma-separated, max 50. Wins over `group` and `merchant`.
spender_stateNoRestrict the audience, and the comparison, to cardholders in this 2-letter state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only establish read-only and non-destructive; the description adds substantial behavior the agent could not otherwise know: the suppression floor (10,000 transactions or 1,000 accounts, returning 'suppressed' with no reason), month snapping, a hard two-month window with silent truncation plus a note to quote, and the warning that accounts are not people. It also tells the agent how to read and rank by `index` rather than by share, which directly affects how results are presented.

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

Conciseness3/5

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

The opening line is stated twice ('The merchants a cohort uses most' followed by a near-identical restatement), and the two-month window rule is stated twice as well, so the text is padded. The final instruction about plain wording and never saying 'panel' is a style directive that consumes space without describing the tool. What remains is front-loaded and readable, but the repetition costs it.

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

Completeness4/5

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

For a seven-parameter tool with no output schema, the description covers the essentials an agent needs: what the rows mean (`share_of_cohort`, `index` and its 120 = 20% more likely interpretation), why results may be empty, and how the window is resolved. It never says what identifying fields each merchant row carries, which leaves a small gap between the described metrics and the actual rows.

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 100%, so the baseline is 3, but the description adds meaning beyond it: the audience can be named by merchant, group or id, and it explains the window rules that actually determine the start/end pair. It does not explain `limit` beyond the schema. Note a conflict the caller must resolve: the schema says `end_date` may be up to 366 days after `start_date`, while the description says a longer window is cut to its last two calendar months.

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 gives a specific verb-and-resource framing: the merchants an audience uses most, ranked by accounts, with a concrete worked example (top 10 brands for Florida lottery transactors). An agent can tell this is a cross-shop affinity ranking. It never distinguishes itself from plausible siblings like compare_brands or cohort_overlap, so it stops short of a 5.

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

Usage Guidelines4/5

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

The 'within Florida, for people with a lottery transaction, what are the top 10 brands they also shop at?' scenario makes the intended use concrete, and 'Name the audience by merchant or group' tells the caller how to frame a request. There is no when-not-to-use guidance and no named alternative for the adjacent questions (comparison or overlap), so it is clear context without exclusions.

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.