Skip to main content
Glama
lzinga

US Government Open Data MCP

by lzinga

census_query

Read-onlyIdempotent

Query U.S. Census Bureau data for population, income, housing, and more. Specify dataset, variables, and geography to retrieve demographic or economic statistics.

Instructions

Query the U.S. Census Bureau Data API. Supports ACS, Decennial Census, Population Estimates, Economic Census, and more. Returns data for specified variables and geography.

Common datasets: '2023/acs/acs1' (1yr), '2023/acs/acs5' (5yr), '2020/dec/pl' (Decennial), '2023/pep/population' Common variables: NAME, B01001_001E (population), B19013_001E (median income), B25077_001E (home value), B01002_001E (median age)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
in_geoNoParent geography for nested queries. Example: 'state:06' to get counties in CA
datasetYesCensus dataset path, e.g. '2023/acs/acs1', '2023/acs/acs5', '2020/dec/pl'
for_geoYesGeography level and filter. Examples: 'state:*' (all states), 'state:06' (CA), 'county:*'
variablesYesComma-separated variable names. Always include NAME. Example: 'NAME,B01001_001E,B19013_001E'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.4.11
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv2026.3.9

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already convey readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that it returns data for variables and geography, but it does not disclose response format, pagination, rate limits, or other runtime behaviors. With annotations doing most of the safety work, a 3 is appropriate.

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?

The description is compact and front-loaded with the core purpose, then adds examples that are directly useful for invoking the tool. The two 'Common...' lines are well-structured and each carries information, though the phrase 'and more' is a minor vagueness that prevents a 5.

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

Completeness4/5

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

For a read-only query tool with rich schema descriptions and no output schema, the description supplies enough context through dataset examples, variable meanings, and geographic examples. It could be more complete by mentioning response shape or how to discover additional variables, but nothing essential to making a first correct call is 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 is 3. The description adds meaningful value by mapping common variable codes to human-readable meanings (e.g., B19013_001E = median income) and by providing realistic dataset paths. This goes beyond the schema's minimal examples, warranting a 4.

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 and resource: 'Query the U.S. Census Bureau Data API.' It also clarifies the output ('Returns data for specified variables and geography') and lists supported datasets. It does not explicitly distinguish itself from siblings like census_population or census_search_variables, so it stops short of a 5.

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?

The description implies usage context by listing common datasets and variable examples, so an agent can infer this is the general-purpose Census data query tool. However, it provides no explicit when-to-use vs. alternatives, and it does not mention sibling tools that might be more appropriate for variable discovery or population-specific lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools