Skip to main content
Glama

CULT+MATH Decision Briefs

What do households spend on this category?

run_wallet_size
Read-onlyIdempotent

Use when the user is sizing a consumer market in dollars or comparing spend across groups: "how big is the US restaurant market by household income?", "which age group spends most on pets?". Returns the annual mean spend per consumer unit, the national total, and the split by income, age, household size or family type, with each group’s share of the dollars, from the BLS Consumer Expenditure Survey. National only. Refuses before you are charged if the groups do not add up to the total. Every result carries a run id, a date and a citation line. Calling this tool returns a quote, not the result: what the run measures, its price and a payment_url. The run happens only when you POST to payment_url, and a run that fails its controls refuses there with nothing charged. Dimensions (vary these inputs to cut the answer; each call is its own run): over time: one release (latest Consumer Expenditure Survey); segment: by (income, age, household size, family type), item. Price: $0.05 per run over x402 (USDC on Base, no account needed), or $0.50 over MPP (a Stripe shared payment token); charged only when the run comes back sound. For how many households match the profile, use run_audience_size.

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": {
      "item": "<item>"
    },
    "name": "run_wallet_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoHow to split households. Default income.
itemYesSpending category (CE item code).

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the run is unavailable, when it is.
errorNoWhy the inputs were refused, with the expected usage. Nothing is charged.
limitsNoWhat the run cannot tell you, stated before you pay.
recipeNoThe run, e.g. "filing-trend".
availableNofalse when the run is switched off; then nothing can be charged.
next_stepNoWhat to tell the user before paying.
price_usdNoPrice over MPP (Stripe shared payment token).
payment_urlNoPOST here to run and pay. Not a checkout page.
instructionsNoHow to pay over MPP and x402, and how to ask for publication.
what_you_getNoWhat the paid result will contain for these inputs.
x402_price_usdNoPrice over x402 (USDC on Base), when offered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world, but the description discloses far more: the call returns a quote with price and payment_url rather than data, the run only executes on POST, failed controls refuse with nothing charged, and every result carries a run id, date and citation. Pricing ($0.05 x402 USDC, $0.50 MPP) and the pre-charge validation refusal are exactly the behavioral facts an agent needs before spending money.

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?

Front-loaded and well organized with the use case first and the quote/payment mechanics later, but it is dense and runs long: payment rails, pricing, and refusal semantics are packed into a single sprawling paragraph. The payment details earn their place, but the run-on construction hurts scannability.

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?

Complete for a paid compute tool: triggers, scope limit, quote-then-pay flow, failure behavior, and return metadata are all present, and an output schema exists so return shape needn't be spelled out. Minor gap: nothing tells the agent how long a run takes or how the payment_url interaction completes end-to-end.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters carry enum descriptions, so the schema does the heavy lifting. The description adds only that each call is its own run and that varying inputs cuts the answer, plus the default split of income, which is minimal added meaning beyond the enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (annual mean spend per consumer unit, national total, and group split from the BLS Consumer Expenditure Survey) and anchors it with two concrete user questions. It also names the sibling it is not (run_audience_size) for household-count questions, so the agent can distinguish them without opening schemas.

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

Usage Guidelines5/5

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

Opens with an explicit 'Use when...' trigger for market-sizing and cross-group spend comparison, gives worked example phrasings, and states the boundary 'National only'. It routes the adjacent need (how many households match a profile) to run_audience_size and explains that varying inputs starts a new run.

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.

Resources