Skip to main content
Glama
sthan-io

sthan-io

Official

Autocomplete US ZIP Code

sthan_autocomplete_zipcode
Read-onlyIdempotent

Autocomplete US ZIP codes from partial input. Returns matching ZIP codes with state and optional ZIP+4 for type-ahead fields.

Instructions

Return a list of US ZIP code suggestions for partial input, each with state (and optionally ZIP+4). Use for ZIP-field type-ahead or to expand a partial ZIP. For city suggestions use sthan_autocomplete_city; for full addresses use sthan_autocomplete_address. Read-only with no side effects. Requires a sthan.io API key in STHAN_API_KEY; each call counts toward your plan's rate limit (a free tier is available). On failure it returns an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesPartial ZIP code. Example: '9021'
display_typeNo0 = Zip,StateCode. 1 = Zip,State. 2 = Zip-Zip4,StateCode. 3 = Zip-Zip4,State
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. Description adds API key requirement, rate limit counting, free tier availability, and error behavior, providing complete behavioral context.

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?

Three concise sentences: purpose, usage guidance, and behavioral notes. Every sentence adds value; no redundancy.

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 read-only autocomplete tool with rich annotations and full schema coverage, the description covers all necessary aspects: purpose, usage, alternatives, authentication, rate limits, and error behavior.

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 descriptions for both parameters. Description mentions optional ZIP+4 but does not significantly add meaning beyond what the schema provides.

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?

Directly states it returns ZIP code suggestions for partial input with state and optional ZIP+4, and explicitly distinguishes from sibling tools (sthan_autocomplete_city, sthan_autocomplete_address).

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

Usage Guidelines5/5

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

Explicitly says 'Use for ZIP-field type-ahead or to expand a partial ZIP' and provides clear alternatives for city and address lookups, guiding when not to use this tool.

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/sthan-io/mcp-server'

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