Skip to main content
Glama

CULT+MATH Decision Briefs

What is the size of this audience profile?

run_audience_size
Read-onlyIdempotent

Use when the user is defining or sizing a consumer audience or checking a TAM claim: "how many college-educated 25-34 year olds are in the US?", "how many homeowner households in Texas earn over $150,000?". Counts people or households matching a profile from the 2024 ACS microdata, with a 90% margin of error and the share of the area. No filters on race, ethnicity, religion or disability. Refuses before you are charged if the weights do not reproduce the published population or the sample is too thin. 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 (ACS 2024); place: state or pumas; segment: age, sex, income, education, employed, tenure, children, occupations. 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 where that audience lives, use run_audience_map; for what it spends, use run_wallet_size.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_audience_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
sexNoOptional: one sex.
unitNoCount people or households. Default persons.
pumasNoOptional: up to 10 PUMA codes within the state.
stateNoTwo-letter US state code, or US.
tenureNoOwner or renter households.
age_maxNoOldest age, in years.
age_minNoYoungest age, in years.
childrenNotrue: children at home; false: none.
employedNotrue to count only the employed.
educationNoMinimum education.
occupationsNoCensus occupation codes (OCCP), up to 5.
personal_income_maxNoPersonal income ceiling, dollars a year.
personal_income_minNoPersonal income floor, dollars a year.
household_income_maxNoHousehold income ceiling, dollars a year.
household_income_minNoHousehold income floor, dollars a year.

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.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the call returns a quote with a price and payment_url rather than a result, the run only executes on POST to that URL, failures refuse with nothing charged, output carries a run id, date and citation, and results include a 90% margin of error. Slight tension with idempotentHint — "each call is its own run" and per-run pricing suggest repeated calls are billable events — but the immediate call is still a read returning a quote, so this is not a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with triggers and examples, then pricing, then alternatives — a sensible order for a charged tool. It is dense but repetitive in places: the refusal/no-charge guarantee is stated twice ("Refuses before you are charged" and "a run that fails its controls refuses there with nothing charged"), which could be consolidated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter, paid, two-phase tool this covers what an agent needs: input dimensions, cost, payment mechanics, failure semantics, data vintage, and citation of output. An output schema exists, yet the description still flags the run id/date/citation line, so return handling is not left ambiguous.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning by grouping the 15 inputs into dimensions (place: state/pumas; segment: age, sex, income, education, employed, tenure, children, occupations) and telling the agent that narrowing these inputs cuts the answer. It also constrains the space by declaring which demographic filters do not exist.

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 — counts people or households matching a profile from 2024 ACS microdata — and grounds it in two concrete example questions. It explicitly names what it is not (run_audience_map for location, run_wallet_size for spending), so an agent can separate it from siblings without reading 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 trigger ("Use when the user is defining or sizing a consumer audience or checking a TAM claim") and closes with two named alternatives and the conditions that select them. It also states an exclusion set (no race, ethnicity, religion or disability filters), which tells the agent when this tool cannot answer.

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