Skip to main content
Glama
PostalKit MCP server

PostalKit MCP server

Official
by postalkit

Search streets

search_streets
Read-onlyIdempotent

Search streets within a Mexican municipality using INEGI state and municipality codes, with an optional street-name filter for targeted results.

Instructions

Search the streets of a municipality by INEGI state and municipality codes, optionally filtered by name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "state_code": "<state_code>",
      "municipality_code": "<municipality_code>"
    },
    "name": "search_streets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for paginated results (default 1)
limitNoResults per page
queryNoPart of the street name
state_codeYesTwo-digit INEGI state code, e.g. '09'
locality_codeNoINEGI locality code
municipality_codeYesThree-digit INEGI municipality code, e.g. '015'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/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. The description adds the meaningful constraint that results are confined to a single municipality, but says nothing about result ordering, result volume, or how pagination behaves across pages.

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?

A single front-loaded sentence that carries the resource, the required key inputs and the optional filter with no filler. Nothing in it could be removed without losing information.

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?

There is no output schema, so the description is the only place return-shape context could live, and it says nothing about what a street record contains or how paginated results are bounded. For a six-parameter search tool with paging, that leaves a moderate gap despite the accurate core statement.

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%, so all six parameters including page, limit, locality_code and the code patterns are already documented. The description only reinforces that 'query' is a name filter and is optional, which is marginal added meaning over the schema's 'Part of the street name'.

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 ('Search the streets') plus the scoping mechanism ('by INEGI state and municipality codes'), which is far more than a restatement of the name. It doesn't explicitly contrast itself with search_colonias or search_postal_codes, so sibling differentiation is left to the resource noun alone.

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

Usage Guidelines2/5

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

It states that name filtering is optional and that the two codes are the basis of the lookup, which implies a usage pattern. However, there is no when-to-use vs. when-not guidance and no mention of the obvious alternatives (search_colonias, search_postal_codes) for agents unsure which lookup to pick.

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