Skip to main content
Glama

us_market_size

Idempotent

US local market size for a ZIP code: how many businesses of a type (dentists, plumbers, restaurants, salons …) are there, how many residents, households and what median household income – plus residents per business as a simple competition measure. US Census Bureau data. Returns: JSON with simulated, zip, business_type, naics, establishments, all_establishments, population, households, median_household_income_usd, residents_per_business, share_of_local_businesses_pct, data_years, source, note. PAID: 0.02 USDC per call (USDC on eip155:8453, x402 v2). Requires an x402-capable MCP client that attaches the payment in _meta["x402/payment"] (e.g. createx402MCPClient from @x402/mcp). Without a payment this tool returns a "payment required" result and charges nothing. NOTE: Official statistics, several years old; establishments with paid employees only. Sandbox results are simulated.

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": {
      "zip": "<zip>",
      "business_type": "<business_type>"
    },
    "name": "us_market_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipYes5-digit US ZIP code, e.g. 10001.
business_typeYesKind of business: dentist, doctor, chiropractor, physical_therapist, veterinarian, lawyer, accountant, real_estate_agent, insurance_agency, restaurant, fast_food, coffee_shop, bar, bakery, hair_salon, barber, nail_salon, gym, auto_repair, plumber_hvac, electrician, roofer, landscaper, cleaning_service, hotel, florist, photographer, marketing_agency, it_services, daycare.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only state readOnly=false, idempotent=true, openWorld=true): it discloses the exact price (0.02 USDC on eip155:8453, x402 v2), the required payment attachment in _meta["x402/payment"], and that calls without payment return a 'payment required' result and charge nothing. It further discloses that statistics are several years old, cover only establishments with paid employees, and that sandbox results are simulated — exactly the behavioral context an agent needs before invoking.

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?

Purpose is front-loaded in the first clause, and each block (metrics, return fields, payment, caveats) is signposted. It is dense, and the inline enumeration of every return field is heavy, though defensible given no output schema exists; the business-type examples in the prose duplicate the enum unnecessarily.

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, open-world data tool with no output schema, the description covers what is returned, how payment works and how failure looks, data vintage, coverage limitations, and sandbox behavior. Nothing an agent needs in order to call it correctly or interpret a result 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% and both parameters are fully documented in the schema, including the ZIP pattern and the complete enum of business types, so the baseline is 3. The description adds only light interpretive value (it repeats example business types and explains residents_per_business as a competition measure) without adding format or constraint detail beyond the schema.

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?

States a specific verb+resource: local market size for a ZIP code and business type, enumerating the exact metrics returned (establishments, population, households, median income, residents per business). It is clear what the tool does, but it never names or distinguishes itself from plausible siblings such as local_market_check or local_business, leaving that differentiation to inference.

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?

Usage is implied by the framing (sizing a local market and gauging competition via residents per business), and the data caveats hint at when results are appropriate. However, there is no explicit 'use this instead of X' guidance and no statement of when-not-to-use the tool, despite siblings that appear to overlap.

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