Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

List municipalities of a state

list_municipalities
Read-onlyIdempotent

Retrieves the municipalities or alcaldías for a Mexican state by PostalKit state ID or two-digit INEGI state code, so you can map states to their local administrative divisions.

Instructions

List the municipalities (municipios, or alcaldías in CDMX) of a state, by PostalKit state ID or two-digit INEGI state code.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_municipalities"
  }
}

Input Schema

NameRequiredDescriptionDefault
state_idNoPostalKit state ID from list_states
state_codeNoTwo-digit INEGI state code, e.g. '09' for Ciudad de México

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered and the bar is lower. The description adds the dual-identifier input convention but says nothing about result shape, ordering, or what happens when neither optional parameter is supplied (0 required params), which is a notable behavioral ambiguity for this tool.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; the parentheticals earn their space by disambiguating municipal terminology. Minor density in the trailing 'by ... or ...' clause, but nothing is wasted or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two optional, fully documented parameters and rich annotations, the definition is nearly sufficient. The remaining gap is behavior when both or neither identifier is provided, plus any hint about the returned municipality records, which the absence of an output schema leaves entirely unaddressed.

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%, so both parameters are already documented in-schema, including the INEGI code example '09'. The description's 'by PostalKit state ID or two-digit INEGI state code' restates the alternation already implied by the schema, adding little beyond confirming the two are interchangeable inputs.

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 gives a specific verb and resource ('List the municipalities ... of a state') and clarifies the domain vocabulary (municipios / alcaldías in CDMX), which is genuinely useful for an agent reconciling Mexican administrative terms. It does not explicitly distinguish itself from siblings such as list_municipality_colonias, but the resource scope is clear enough that confusion is unlikely.

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 implied rather than stated: this is the enumeration step for municipalities under a given state, and the schema note 'state ID from list_states' hints at a chained workflow. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g. list_municipality_colonias for the next level down), so the agent must infer the routing.

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