Skip to main content
Glama

Lookup Municipality

lookup_municipality
Read-onlyIdempotent

Look up a single municipality by its 7-digit IBGE code, returning full hierarchy (micro/mesoregion, state, region). e.g. code="3550308" → São Paulo (capital).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes7-digit IBGE municipality code, e.g. "3550308" (São Paulo) or "3304557" (Rio de Janeiro).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "code": "3550308"
      +  },
      +  {
      +    "code": "3304557"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint false. The description adds valuable behavioral context by specifying the return includes 'full hierarchy (micro/mesoregion, state, region)', which goes beyond the schema. No contradictions.

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 concise (two sentences) and front-loaded with the core action. The example is placed efficiently, and every sentence adds value without redundancy.

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 lookup tool with one parameter and no output schema, the description covers purpose, input format, and return structure. A minor gap is the absence of error handling (e.g., what happens if code is invalid), but annotations with openWorldHint partially mitigate this. Overall, it is nearly complete for the tool's complexity.

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?

The input schema already provides a full description of the 'code' parameter (7-digit IBGE municipality code with examples). The description repeats this example but does not add new semantic depth beyond that. With 100% schema coverage, a baseline of 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 'look up a single municipality by its 7-digit IBGE code', specifying the verb, resource, and scope. It distinguishes from siblings like 'list_municipalities' by focusing on a single entity, and provides an example that clarifies the input format.

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

Usage Guidelines4/5

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

The description implicitly indicates when to use this tool (to look up a single municipality) but does not explicitly state when not to use it or mention alternatives. The sibling context, including 'list_municipalities', suggests the broader use case, but the description could be improved by adding an explicit alternative.

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.