Skip to main content
Glama

bea_compare_states

Read-onlyIdempotent

Compare one official BEA SASUMMARY annual indicator across 2–8 requested states (or the United States) for an exact year. Returns values sorted high-to-low, exact unit, missing-value evidence, GeoFIPS, source hash, and attribution. Use this for 'compare 2024 Texas and California GDP', 'which of these states had higher 2023 per-capita income?', or 'compare regional price levels'. It does not rank all states unless they are explicitly supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYesFour-digit calendar year. Hosted source coverage is reported in every response.
indicatorYesSupported indicator slug/name or BEA SASUMMARY line code; examples: gdp, real_gdp, personal_income, per_capita_personal_income, regional_price_parities, total_employment.
geographiesYesTwo to eight distinct state selectors.
response_formatNoHuman-readable markdown or machine-readable JSON. Default markdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the read-only/idempotent/non-destructive safety profile, so the description's added value is its disclosure of return behavior: sorted high-to-low, exact unit, missing-value evidence, GeoFIPS, source hash, and attribution. With no output schema, this materially helps the agent understand what it will receive.

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?

Core action is front-loaded in the first sentence, followed by return details and example queries. It is slightly long with three quoted examples, but each sentence carries distinct information (capability, returns, routing/exclusion).

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 compare tool with no output schema, the description enumerates the return payload (sorted values, unit, missing-value evidence, GeoFIPS, source hash, attribution) and clarifies the multi-state scope. Nothing an agent needs to call it correctly 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%, so all four parameters are documented, and the description's '2–8 states' and 'one indicator' clauses are consistent with the schema rather than adding new syntax. Baseline 3 is appropriate when the schema already does the heavy lifting.

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 (compare) plus the resource (one official BEA SASUMMARY annual indicator) and scope (2–8 states or the United States, exact year). The multi-state comparison framing clearly distinguishes it from the single-state profile/history/trend BEA siblings without needing to name them.

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

Usage Guidelines4/5

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

Provides concrete when-to-use examples ('compare 2024 Texas and California GDP', 'which of these states had higher 2023 per-capita income?') and an explicit exclusion ('does not rank all states unless they are explicitly supplied'). It does not name the alternative BEA siblings (e.g. bea_state_economic_history/trend), so routing relies on inference.

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.