Skip to main content
Glama
sthan-io

sthan-io

Official

Autocomplete US City

sthan_autocomplete_city
Read-onlyIdempotent

Provide US city autocomplete suggestions with state for partial city names. Use to resolve incomplete city entries or power type-ahead fields.

Instructions

Return a list of US city suggestions (with state) for partial input. Use for city-field type-ahead, or to resolve a partial city name to its full name and state. For full street-address suggestions use sthan_autocomplete_address; for ZIP codes use sthan_autocomplete_zipcode. 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 city name. Example: 'San Fr'
display_typeNo0 = City, StateCode (e.g. 'San Francisco, CA'). 1 = City, State (e.g. 'San Francisco, California')
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds value by stating 'Read-only with no side effects,' mentioning the API key requirement, rate limits, free tier availability, and error behavior. No contradictions with annotations.

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 main purpose, followed by usage guidance, sibling differentiation, and additional context. Each sentence serves a distinct purpose with no redundancy. Two lines in length.

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?

Given no output schema, the description could specify the output format more explicitly, but the display_type parameter implies the format (City, StateCode or City, State). It covers input, usage, authentication, rate limits, and error handling. Slightly incomplete on exact response structure but sufficient for an autocomplete tool.

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% with both parameters having descriptions (text and display_type). The description does not add any additional parameter meaning beyond what the schema provides. Baseline 3 is appropriate.

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 clearly states the tool returns US city suggestions for partial input. It specifies the use case (city-field type-ahead, resolving partial city name) and distinguishes from sibling tools (sthan_autocomplete_address, sthan_autocomplete_zipcode). The verb 'return' is specific and appropriate.

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 states when to use (city-field type-ahead) and when not (street addresses or ZIP codes), with direct references to alternative tools. Also provides context on API key requirement and rate limits.

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