Skip to main content
Glama

CountryStateCity (Unofficial)

Country State City Get States

country_state_city_get_states
Read-onlyIdempotent

Get all states or provinces for a country by ISO2 code (e.g., "US", "IN", "BR"). Returns state names, codes, and types.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-country-state-city-api-key",
      "country_code": "US"
    },
    "name": "country_state_city_get_states"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesCountryStateCity API key
country_codeYesISO2 country code (e.g., "US", "CA", "GB", "DE")

Output Schema

NameRequiredDescriptionDefault
countYesTotal number of states returned
statesYes
country_codeYesISO2 country code provided

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds only that results include state names, codes, and types, and says nothing about authentication requirements, rate limits, or behavior for invalid country codes. With annotations carrying the main burden, this is adequate but thin.

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?

Two tight sentences with zero filler, the primary lookup key and its format front-loaded, and the return contents summarized last. Nothing extraneous.

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 two-parameter read tool with full schema descriptions, annotations, and an output schema, the description covers what it does, what it needs, and roughly what comes back. Minor gaps around auth and error behavior are acceptable given the structured fields already present.

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 _apiKey and country_code documented in the schema, so the schema already does the heavy lifting. The description reinforces the ISO2 format with examples ('US', 'IN', 'BR') but adds no syntax or edge-case detail (e.g., case sensitivity, behavior for non-ISO2 input) beyond what the schema provides.

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?

The description states a specific verb and resource ('Get all states or provinces for a country'), names the required identifier (ISO2 code) with concrete examples, and previews the returned fields. It is clear enough to separate from country_state_city_list_countries and get_cities by resource type, though it never names those siblings explicitly.

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?

Usage is only implied: an agent can infer this is the lookup to run once it has a country code, since the parent resource (countries) and child resource (cities) are obvious siblings. There is no explicit when-to-use, when-not-to-use, or statement about prerequisites such as obtaining the country code first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.