Audience overlap
cohort_overlapHow many accounts are in every one of 2 to 10 merchant cohorts ("shops at Walmart and Taco Bell and pays for OpenAI"), with that group's transactions and spend at those merchants.
Number cohorts from 1, contiguously; per cohort pass ids_N, canonical_N, names_N, group_N or brand_N, in that precedence. group_N is a merchant group for a cohort of many merchants: lotteries, lotteries-retail, lotteries-online, sportsbooks. brand_N matches merchant names in the directory (walmart is Walmart and nothing else); a term matching more than 50 merchants is refused as too broad. names_N maps a descriptor to its merchant, so one routed through PayPal, Square, Cash App, Shopify, DoorDash or Klarna selects that intermediary's whole customer base: prefer brand_N or ids_N.
An overlap is returned only above 10,000 transactions and 1,000 accounts; below either it comes back suppressed with no figure, and the reply never says which floor was missed. The window snaps to whole months (effective_start_date / effective_end_date) and spans at most six.
This is not a retention or acquisition cohort, it has no metro or state filter, and accounts are not people.
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": "cohort_overlap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids_1 | No | Canonical merchant UUIDs for cohort 1. Comma-separated or repeated, max 50. | |
| ids_2 | No | Cohort 2 by merchant UUIDs. Same form as `ids_1`. | |
| ids_3 | No | Cohort 3 by merchant UUIDs. Same form as `ids_1`. | |
| ids_4 | No | Cohort 4 by merchant UUIDs. Same form as `ids_1`. | |
| ids_5 | No | Cohort 5 by merchant UUIDs. Same form as `ids_1`. | |
| ids_6 | No | Cohort 6 by merchant UUIDs. Same form as `ids_1`. | |
| ids_7 | No | Cohort 7 by merchant UUIDs. Same form as `ids_1`. | |
| ids_8 | No | Cohort 8 by merchant UUIDs. Same form as `ids_1`. | |
| ids_9 | No | Cohort 9 by merchant UUIDs. Same form as `ids_1`. | |
| ids_10 | No | Cohort 10 by merchant UUIDs. Same form as `ids_1`. | |
| brand_1 | No | Fuzzy match on canonical merchant name for cohort 1 — not raw descriptors. Refused if it matches more than 50 merchants. | |
| brand_2 | No | Cohort 2 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_3 | No | Cohort 3 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_4 | No | Cohort 4 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_5 | No | Cohort 5 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_6 | No | Cohort 6 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_7 | No | Cohort 7 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_8 | No | Cohort 8 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| brand_9 | No | Cohort 9 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| group_1 | No | Merchant group for cohort 1, by slug or id. Use it when a cohort is too wide for a brand name, e.g. `lotteries`. | |
| group_2 | No | Cohort 2 by merchant group. Same form as `group_1`. | |
| group_3 | No | Cohort 3 by merchant group. Same form as `group_1`. | |
| group_4 | No | Cohort 4 by merchant group. Same form as `group_1`. | |
| group_5 | No | Cohort 5 by merchant group. Same form as `group_1`. | |
| group_6 | No | Cohort 6 by merchant group. Same form as `group_1`. | |
| group_7 | No | Cohort 7 by merchant group. Same form as `group_1`. | |
| group_8 | No | Cohort 8 by merchant group. Same form as `group_1`. | |
| group_9 | No | Cohort 9 by merchant group. Same form as `group_1`. | |
| names_1 | No | Exact raw descriptors for cohort 1. Comma-separated or repeated, max 50. | |
| names_2 | No | Cohort 2 by exact raw descriptors. Same form as `names_1`. | |
| names_3 | No | Cohort 3 by exact raw descriptors. Same form as `names_1`. | |
| names_4 | No | Cohort 4 by exact raw descriptors. Same form as `names_1`. | |
| names_5 | No | Cohort 5 by exact raw descriptors. Same form as `names_1`. | |
| names_6 | No | Cohort 6 by exact raw descriptors. Same form as `names_1`. | |
| names_7 | No | Cohort 7 by exact raw descriptors. Same form as `names_1`. | |
| names_8 | No | Cohort 8 by exact raw descriptors. Same form as `names_1`. | |
| names_9 | No | Cohort 9 by exact raw descriptors. Same form as `names_1`. | |
| brand_10 | No | Cohort 10 by fuzzy match on canonical merchant name. Same form as `brand_1`. | |
| end_date | Yes | Inclusive ISO-8601 date. At most 366 days after `start_date`. | |
| group_10 | No | Cohort 10 by merchant group. Same form as `group_1`. | |
| names_10 | No | Cohort 10 by exact raw descriptors. Same form as `names_1`. | |
| start_date | Yes | Inclusive ISO-8601 date. | |
| canonical_1 | No | Canonical merchant name for cohort 1. | |
| canonical_2 | No | Cohort 2 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_3 | No | Cohort 3 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_4 | No | Cohort 4 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_5 | No | Cohort 5 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_6 | No | Cohort 6 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_7 | No | Cohort 7 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_8 | No | Cohort 8 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_9 | No | Cohort 9 by canonical merchant name. Same form as `canonical_1`. | |
| canonical_10 | No | Cohort 10 by canonical merchant name. Same form as `canonical_1`. | |
| include_children | No | Expand a parent merchant to its sub-brands before matching. **Defaults true.** Merchants merged into the requested one are the same merchant and are always included, whatever this is set to — their history stays under the retired id. Applies to merchants named by id, canonical name, directory brand or group; exact descriptors are matched as given. Expansion fails open: a failed directory lookup expands nothing rather than failing the query. |