Skip to main content
Glama
mcpwright
by mcpwright

Compare ZIPs

compare_zips
Read-only

Compare multiple ZIP codes by one metric, like income or age, and view results sorted from highest to lowest.

Instructions

Rank several ZIPs by a single metric, highest value first.

`zips`: a list of 5-digit US ZIPs to compare. `metric`: one of
`population`, `median_age`, `median_household_income`, `per_capita_income`,
`households_200k_plus_pct`, `median_home_value`, `median_gross_rent`,
`owner_occupied_pct`, `bachelors_plus_pct`, `graduate_or_professional_pct`.
Returns each ZIP's value, sorted descending; ZIPs with no data (suppressed
or no ZCTA) are listed last. All values are ACS 5-year estimates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zipsYes
metricYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricYesThe compared metric's name
resultsYesOne entry per requested ZIP, sorted by value descending; ZIPs with no value are listed last
vintageYesACS 5-year data vintage (end year)
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds valuable behavioral details: results are sorted descending, ZIPs with missing data are listed last, and values are ACS 5-year estimates. This goes beyond the annotations and helps the agent understand output ordering and data provenance.

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 compact yet information-dense. It front-loads the core purpose in one sentence, then efficiently documents parameters and behavioral details in a bullet-like list embedded in prose. Every sentence adds value, with no fluff or repetition.

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?

With an output schema present, the description need not explain return format, and it wisely covers the essential behavioral aspects: sorting, missing-data handling, and the metric enum. It is slightly less explicit about when to prefer this over sibling tools, but it is complete enough for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description fully compensates: it defines 'zips' as a list of 5-digit US ZIPs and provides the complete list of allowed values for 'metric'. Without this, the agent would have no idea what values are valid or what each parameter means.

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 starts with a specific verb ('Rank') and resource ('several ZIPs'), immediately distinguishing it from sibling tools that operate on single ZIPs or specific metrics. It also enumerates the exact metrics, leaving no ambiguity about what the tool does.

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 clearly indicates the tool is for comparing multiple ZIPs on a single metric, which provides strong contextual guidance. It does not explicitly name alternatives or exclusion criteria, but the sibling list and the phrase 'several ZIPs' imply when this tool is appropriate versus single-lookup tools.

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/mcpwright/census-mcp'

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