Skip to main content
Glama

CULT+MATH Decision Briefs

Is this city's housing supply keeping up with its rent and population?

run_city_profile
Read-onlyIdempotent

Use when the user is weighing a housing, zoning, development or site decision for a US city, or checking a claim about one: "is Boise building enough housing?", "how fast has rent risen in St. Paul against the country?", "did permits in Austin fall after 2022?". Returns population, households, median rent, median income, rent burden and work-from-home share in 2019 and 2023-2025 beside the US, and new housing units permitted each year from 2015 to 2025 (all and in 5+ unit buildings), per 1,000 residents, from US Census Bureau data. Cities of 65,000+ residents that file their own permits. Refuses before you are charged if the city cannot be matched, its permits are filed by another office, or its permit file is not believable (a large city reporting no apartment permits, or far below its county). Describes; takes no side on any policy. 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: built in: 2019 against 2023-2025, permits 2015-2025; place: state and place. 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.

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": {
      "state": "<state>",
      "place": "<place>"
    },
    "name": "run_city_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
placeYesThe city name as people write it, e.g. "St. Paul" or "Nashville". Cities of 65,000+ residents.
stateYesTwo-letter US state code, e.g. "MN". DC included.

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

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

Goes well beyond the annotations: it discloses the two-step quote/pay flow (the call returns a quote with a payment_url, not a result), the exact prices ($0.05 over x402, $0.50 over MPP), that failed runs refuse with nothing charged, that results carry a run id, date and citation line, and that it takes no policy position. The one blurry point is 'each call is its own run,' which sits awkwardly with idempotentHint=true, though the billing step is on POST so this reads as imprecise wording rather than 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.

Conciseness3/5

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

The trigger is correctly front-loaded and the example queries are useful, but the description is one dense block that repeats itself: the 'charged only when the run comes back sound' condition appears twice, and the payment mechanics are restated across two sentences. Much of the return-value detail also duplicates what the output schema already carries.

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 tool this covers everything an agent needs: data vintage and contents, geography eligibility, refusal cases, pricing and charge timing, and result provenance. An output schema exists, so the extra return-value detail is surplus rather than required, and nothing material is missing.

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 description coverage is 100% for both parameters, so the schema already defines 'place' (city name as people write it, 2-60 chars) and 'state' (two-letter code, DC included). The description's dimension note ('place: state and place') restates the parameters without adding format, matching or disambiguation guidance, so the baseline 3 applies.

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 names the resource (a US city housing profile) and enumerates exactly what comes back: population, households, median rent, income, rent burden, WFH share for 2019 and 2023-2025, plus permits 2015-2025 per 1,000 residents. It also pins the scope to cities of 65,000+ that file their own permits, which no sibling profile tool covers, so an agent can distinguish it without opening the schema.

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 weighing a housing, zoning, development or site decision... or checking a claim about one') and backs it with three concrete user utterances. It also supplies when-NOT conditions: the tool refuses for unmatachable cities, cities whose permits are filed by another office, and cities whose permit file fails believability checks.

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