Skip to main content
Glama

Find Brazilian municipality codes

search_municipalities
Read-onlyIdempotent

Find municipalities by name and optional state (UF) in Olhary's IBGE catalog. Use municipalityIbge from a result with get_municipality. No personal records.

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": {
      "query": "<query>"
    },
    "name": "search_municipalities"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds that results are not personal records and that a municipalityIbge field exists for chaining, but says nothing about matching behavior (prefix vs substring, accents) or result-set size/pagination.

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?

Three short, front-loaded sentences with no filler: purpose first, then the chaining instruction, then a scope note. It is appropriately sized for a simple lookup tool, though the trailing "No personal records" is terse enough to be slightly ambiguous.

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?

For a three-parameter lookup with no output schema, the description covers purpose, the UF optionality and the key returned identifier, which is most of what an agent needs. It still omits result shape (name/UF fields returned), matching semantics, and the limit behavior, which matter for correct invocation.

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 0%, so the description must carry parameter meaning; it does explain that the query matches by municipality name and that the UF filter is optional, which maps to two of three parameters. The limit parameter (default 20, max 100) and the 2-character minimum on query are undocumented anywhere.

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?

States a specific verb and resource ("Find municipalities by name and optional state (UF)") and names the catalog (Olhary's IBGE). It also points to the sibling that consumes its output (get_municipality), so an agent can place it in a workflow without opening a schema.

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 by "by name and optional state (UF)" and by the chaining hint to call get_municipality with municipalityIbge afterwards. There is no explicit when-not guidance or comparison against lookup-style siblings such as get_cnae or search_catalog_items, leaving the agent to infer the boundary.

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.

Resources