Search merchants
search_merchantsSearch the merchant directory
Take the row whose merchant_name is the brand.
Ranks canonical merchants whose descriptors match q by the
recent volume of those matching descriptors. merchant_name is the
merchant's canonical name; the raw descriptor that matched is
returned as sample_descriptor. The volume fields are the
merchant's whole recent volume (every descriptor, sub-brand and
merged id), with the matching part in matched_txn_count.
The window is days long and ends on coverage.observed_through,
the last day every source has delivered, so its volumes come from
every source and match a spend total over the same days.
start_date and end_date give the window. A lagged key whose
freshness cutoff covers the whole lookback receives an empty result
with clamped rather than an error.
Not a first step: the spend tools take a brand by name. Search only when a name comes back ambiguous, not found, or matched_by descriptor. Then search once, take the row whose merchant_name is the brand, and pass its merchant_id.
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": {
"q": "<q>"
},
"name": "search_merchants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search term, 2–100 characters. | |
| days | No | Lookback window in days. | |
| limit | No |