Skip to main content
Glama

Region summary

region_summary
Read-only

Spend growth by income tier per metro or state, beside labor and income

geo_level is cbsa or state, never metro. order_by is spend or k_gap. geo is a metro name such as Pittsburgh, not City, ST. A window is at most 366 days.

Is the K diverging, and where. Per metro (geo_level=cbsa: OMB metros and NM-<state> non-metro buckets) or state, by where the cardholder lives: spend_cents and growth_pct against the same window a year earlier; by_income_tier (area income tiers Q1 lowest to Q5 highest) and k_gap_pp, Q5's growth minus Q1's — positive when the top tier is outgrowing the bottom.

Beside it: unemployment (LAUS rate, newest month at or before end_date, and its change from a year earlier in points), qcew (average weekly wage and employment, all industries, newest quarter, year over year), per_capita_income (BEA, newest year) and median_household_income (ACS 5-year). These exist for metros and states only; a non-metro bucket has none.

Without geo, the limit largest regions by spend are returned. Year-over-year 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.

For a region's or income tier's growth, pass normalize=per_account (at most 50 regions) and quote per_account_change_pct and per_account_k_gap_pp.

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": "region_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNoOnly these regions, comma-separated, at most 100: CBSA codes, `NM-<state>` buckets or metro names for `cbsa` (echoed under `resolved_geos`); 2-letter codes for `state`.
limitNoRegions per response.
end_dateYesInclusive ISO-8601 date. At most 366 days after `start_date`.
order_byNoDescending by spend, or by the K gap.spend
geo_levelNoMetros or states.cbsa
normalizeNo`per_account` adds spend per active card and its change from a year earlier (`per_account_cents`, `per_account_change_pct`) to each region and income tier, and `per_account_k_gap_pp`: the denominator a brand's per-card growth uses. Quote it for a region's growth. Raw in any weighting mode. At most 50 regions (`limit` or `geo`), else 400 `per-account-too-many-regions`.none
weightingNo`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_dateYesInclusive ISO-8601 date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / normalize
      Added value: +{
      +  "default": "none",
      +  "description": "`per_account` adds spend per active card and its change from a year\nearlier (`per_account_cents`, `per_account_change_pct`) to each\nregion and income tier, and `per_account_k_gap_pp`: the denominator\na brand's per-card growth uses. Quote it for a region's growth. Raw\nin any weighting mode. At most 50 regions (`limit` or `geo`), else\n400 `per-account-too-many-regions`.",
      +  "enum": [
      +    "none",
      +    "per_account"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / weighting / description
      Previous value: -"`raw` (the default): model volume, `weighted_cents` equals\n`total_cents`. `population`: the weighted fields reweight the model\nto the mix of US adults (for shares, comparisons and growth, not\nmarket size), with `effective_n`, `low_precision`, `suppressed` and\na `weighting` object. A month has weights once it has been raked,\nfrom 2025-09 on. `same_account`: growth compares one set of accounts,\nthose with spend in the model in both of two months, chained month by\nmonth, so accounts arriving or leaving can't move it. Levels and\nshares stay raw. A growth block gains `same_account_change_pct` and\n`same_account_yoy_pct`, or `same_account_unavailable` saying why not,\nand a monthly series carries chained dollars in `weighted_cents`. It\nneeds whole, settled calendar months, the newest month waits for the\nmonth after it on the default `stable` accounts, and it is in validation (403\n`same-account-weighting-forbidden` until open to the key). Omit it to\nget the response shape callers had before it existed."New value: +"`raw` (the default): model volume, `weighted_cents` equals\n`total_cents`. `population`: the weighted fields reweight the model\nto the mix of US adults (for shares, comparisons and growth, not\nmarket size), with `effective_n`, `low_precision`, `suppressed` and\na `weighting` object. A month has weights once it has been raked,\nfrom 2025-09 on. `same_account`: growth compares one set of accounts,\nthose with spend in the model in both of two months, chained month by\nmonth, so accounts arriving or leaving can't move it. It is\nturnover-adjusted: each month also carries the merchant's or\ncategory's own balance of accounts arriving and leaving (the median\nover 12 months), which shared accounts alone miss. Levels and shares stay raw. A growth block gains `same_account_change_pct` and\n`same_account_yoy_pct`, or `same_account_unavailable` saying why not,\nand a monthly series carries chained dollars in `weighted_cents`. It\nneeds whole, settled calendar months, the newest month waits for the\nmonth after it on the default `stable` accounts, and it is in validation (403\n`same-account-weighting-forbidden` until open to the key). Omit it to\nget the response shape callers had before it existed."
  3. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, the description discloses real behavioral constraints: labor and income fields are absent for `NM-<state>` non-metro buckets, year-over-year growth requires both years in the model, and in population mode growth is null for any window starting before 2026-09 because weights only exist from 2025-09. It also surfaces failure modes (400 `per-account-too-many-regions`, 403 `same-account-weighting-forbidden`) and the 366-day cap, which the agent cannot infer from the safety annotations alone.

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 core summary is front-loaded and most sentences carry information, but the body is a dense block of backticked field names and fragments ('Is the K diverging, and where.') that reads as output documentation spliced onto parameter notes. Some content is repeated across sections (the 366-day window, the 50-region cap, per_account fields), and the closing 'talk to the user in plain words' instruction sits awkwardly at the end of a technical spec.

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?

With no output schema, the description correctly takes on the burden of describing returns — `spend_cents`, `growth_pct`, `by_income_tier`, `k_gap_pp`, `unemployment`, `qcew`, `per_capita_income`, `median_household_income` and `resolved_geos` are all explained, including their vintages. What is missing is the overall response envelope and ordering of blocks, but for an 8-parameter analytical tool this is close to complete.

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, and the description earns above that by resolving genuine ambiguities: `geo_level` is 'cbsa or state, never metro', and `geo` takes 'a metro name such as Pittsburgh, not City, ST'. It also explains what `k_gap_pp` means (Q5 growth minus Q1 growth, positive when the top tier outgrows the bottom), which the enum alone does not convey.

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 opening line names a specific resource and measure — spend growth by income tier per metro or state, alongside labor and income data — and the 'Is the K diverging, and where' framing tells the agent the analytical question it answers. It is clearly distinct from a generic spend query because of the income-tier K-gap and joined LAUS/QCEW/BEA/ACS fields. It stops short of naming a sibling tool it replaces, so 4 rather than 5.

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

Usage Guidelines3/5

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

The description gives conditional parameter guidance — omit `geo` to get the `limit` largest regions, and pass `normalize=per_account` when quoting a region's or tier's growth. That is invocation guidance, not tool-selection guidance; it never says when to reach for this instead of `category_summary`, `query_spend` or `panel`, nor any when-not-to-use condition. Usage is implied by the analytical framing rather than stated.

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.