Skip to main content
Glama

CULT+MATH Decision Briefs

Who lives within a few miles of this site?

run_trade_area
Read-onlyIdempotent

Use when the user is choosing or underwriting a site for a store, restaurant, clinic, school or property and asks about the catchment: "how many people live within 3 miles?", "what is household income around this address?", "how many schools are nearby?". Returns population, households, mean household income, the renter share and density within the radius, from Census ACS 5-year block groups, plus the number of public schools from NCES. A straight-line circle, not drive time. Refuses before you are charged if the area is empty or the totals fail their checks. 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 5-year); place: address or lat/lon, radius_miles. 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 whether the site is in an Opportunity Zone or NMTC tract, use run_incentive_tracts; for a whole city’s housing supply against rent, use run_city_profile.

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_trade_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees, with lon.
lonNoLongitude in decimal degrees, with lat.
addressNoA US street address. Give this or lat and lon.
radius_milesNoRadius in miles. Default 3.

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?

Far beyond what readOnlyHint/openWorldHint convey: it discloses data provenance (ACS 5-year block groups, NCES), the straight-line-not-drive-time caveat, refusal-before-charge behavior, and the crucial two-step flow where a call returns a quote with price and payment_url and the run only executes on POST. That two-step quirk and the 'each call is its own run' note sit slightly at odds with the idempotentHint annotation, which is the only blemish on an otherwise exemplary disclosure.

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 the use case and example questions, then mechanics, then pricing, then sibling routing — a sensible order. It is dense and long, and the payment/rail details ($0.05 x402 USDC, $0.50 MPP) occupy a lot of space, but each block carries information an agent needs to call correctly.

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 paid, two-phase open-world data run, the definition covers provenance, cost, the quote-then-pay protocol, failure semantics, and where to go for adjacent questions. With an output schema present it correctly avoids describing return shapes, leaving nothing essential missing.

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 would be 3, but the description adds real semantics: that address and lat/lon are alternatives, that radius is a straight-line circle rather than drive time, and that varying these inputs is how you narrow 'dimensions'. It stops short of restating defaults or bounds, which the schema already handles.

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?

The description opens with a concrete decision context (site selection/underwriting) and names the exact resource returned — population, households, mean household income, renter share, density, plus school counts. It also explicitly distinguishes itself from two siblings (run_incentive_tracts for OZ/NMTC, run_city_profile for city-level housing), so an agent can separate it from neighbors 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?

It gives concrete trigger phrasing ('how many people live within 3 miles?'), states the condition that selects it (catchment questions for a store, restaurant, clinic, school or property), and names the alternatives with the conditions that route elsewhere. Exclusions are explicit rather than inferred.

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