Category summary
category_summaryEvery category's spend beside its public benchmarks
The window is at most 366 days. location is a metro name such
as Pittsburgh, not City, ST.
Per category, among cardholders in geo over the window
(purchase-only): spend_cents (raw, or the US-adult estimate in
population mode), share_of_spend of all categories, growth_pct
against the same window a year earlier and real_growth_pct net of
the mapped CPI's price change; cpi (the crosswalk's CPI item at the
most specific published area, and its change), marts (Census
monthly retail sales growth for the crosswalk's NAICS code over the
window's complete months — national only; say restaurants'
marts.note beside it) and ces (the Consumer
Expenditure Survey's share of total expenditure for the mapped
line, newest year, the geo's region or the nation, beside the
model's share). Every mapping carries its crosswalk fit.
The two shares have different denominators — the survey's includes housing, insurance and everything not bought by card — so compare their ranking and drift, not their levels. A year-over-year figure needs both years in the model; in population mode every month of both years needs weights (from 2025-09), so growth is null for a window that starts before 2026-09. If growth is null, report the raw series and say so rather than inventing a year-over-year figure.
Population mode also withholds growth for restaurants:
prior_spend_cents, growth_pct and real_growth_pct are null and
growth_withheld says why. Model restaurant spend is mostly chain
fast food and fast casual, so its weighted growth doesn't estimate
the food-service sector that Census NAICS 722 measures. Raw mode
still serves model growth.
Read each category's fit before quoting a public series beside it. A long list keeps its largest categories and says so; pass category for the others.
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": "category_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Cardholder geography — `us` (default), `state:TX` or `cbsa:19100` (code, bucket or name). | us |
| category | No | Only these categories (comma-separated). Default every category with spend. Category keys are lower-case and exact: `automotive`, `delivery`, `education`, `entertainment`, `financial_services`, `gifts_donations`, `government`, `grocery`, `healthcare`, `home_services`, `personal_care`, `pets`, `professional_services`, `restaurants`, `retail`, `subscriptions`, `tax_services`, `technology`, `travel`, `utilities`, `uncategorized`, plus older keys the data still carries (list every key with the breakdown, `group_by=category`). Any other name is a 400 `…/problems/category-unknown` whose `candidates` are the closest keys (`Groceries` → `grocery`). | |
| end_date | Yes | Inclusive ISO-8601 date. At most 366 days after `start_date`. | |
| normalize | No | `per_account` adds each category's spend per active card in `geo` (`per_account_cents`) and its change from the same window a year earlier (`per_account_change_pct`): the category's spend over every card in `geo` with a purchase, whatever it bought — the denominator a brand's per-card growth uses. Quote it for a category's growth in a place. Raw in any weighting mode. | none |
| weighting | No | `raw` (the default): model volume, `weighted_cents` equals `total_cents`. `population`: the weighted fields reweight the model to the mix of US adults (for shares, comparisons and growth, not market size), with `effective_n`, `low_precision`, `suppressed` and a `weighting` object. A month has weights once it has been raked, from 2025-09 on. `same_account`: growth compares one set of accounts, those with spend in the model in both of two months, chained month by month, so accounts arriving or leaving can't move it. It is turnover-adjusted: each month also carries the merchant's or category's own balance of accounts arriving and leaving (the median over 12 months), which shared accounts alone miss. Levels and shares stay raw. A growth block gains `same_account_change_pct` and `same_account_yoy_pct`, or `same_account_unavailable` saying why not, and a monthly series carries chained dollars in `weighted_cents`. It needs whole, settled calendar months, the newest month waits for the month after it on the default `stable` accounts, and it is in validation (403 `same-account-weighting-forbidden` until open to the key). Omit it to get the response shape callers had before it existed. | raw |
| start_date | Yes | Inclusive ISO-8601 date. |