Skip to main content
Glama

Get census tract demographics (ACS 5-Year)

get_tract_demographics

Look up 2023 ACS demographics for a census tract via its 11-digit GEOID: population, income, home value, rent, age, households, poverty rate.

Instructions

Return demographic indicators for an 11-digit census tract GEOID from the American Community Survey 5-Year (2023). Requires a free Census API key in the CENSUS_API_KEY environment variable (get one instantly at https://api.census.gov/data/key_signup.html). Available fields: population, median_household_income, median_home_value, median_gross_rent, median_age, households, poverty_rate. Omit 'fields' to get a sensible default set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoWhich indicators to return. Defaults to: population, median_household_income, median_home_value, poverty_rate
tract_geoidYesAn 11-digit census tract GEOID (state[2] + county[3] + tract[6])
Behavior4/5

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

No annotations are provided, so the description covers behavioral traits directly. It discloses the API key requirement, provides a sign-up link, and mentions the default field set when 'fields' is omitted. While it does not describe error handling or output format, these are minor for a simple retriever; the key prerequisite and default behavior are clearly stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is front-loaded with the purpose, then provides an essential prerequisite, a field list, and a usage note—all in three short sentences. No unnecessary words; every sentence contributes value.

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 simple read-only tool with two parameters, the description covers the core functionality, required input, available fields, and default behavior. It does not explain return format or error cases, but given the simplicity and lack of an output schema, this is a minor gap. The description is sufficiently complete for most use cases.

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 coverage is 100%, with both parameters fully described. The description adds little beyond the schema: it lists the available fields (matching the enum) and mentions the default set, but the schema already documents the default. Thus, the description does not significantly enhance parameter understanding beyond structured data.

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 uses a specific verb ('Return') and resource ('demographic indicators for an 11-digit census tract GEOID'), and clearly distinguishes the tool from siblings by focusing on demographic data from the ACS 5-Year. The title and first sentence work together to convey exactly what is provided.

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?

The description sets clear context: this tool returns demographic data for a tract GEOID. It also mentions a prerequisite (API key) and gives a link to obtain it. However, it does not explicitly discuss when to use this tool over siblings like lookup_census_tract or check_opportunity_zone, though the purpose is distinct enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adriancisnerosspeed-hub/civic-library-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server