Skip to main content
Glama

Read a municipality's public profile

get_municipality
Read-onlyIdempotent

Read a municipality by its seven-digit IBGE code, with the latest stored population and GDP when available. GDP is in thousands of Brazilian reais. Missing economic data is not zero.

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": {
      "municipalityIbge": "<municipalityIbge>"
    },
    "name": "get_municipality"
  }
}

Input Schema

NameRequiredDescriptionDefault
municipalityIbgeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, closed-world operation, so the description sensibly focuses elsewhere and adds real value: data is 'latest stored' (staleness caveat), GDP is denominated in thousands of Brazilian reais, and missing economic data is not zero. These are the kinds of semantic traps an agent would otherwise fall into.

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?

Three short sentences, front-loaded with the verb and key, then the return payload, then the two caveats that actually matter. No filler or restatement of the title.

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?

With one required parameter and no output schema, the description covers the lookup key, the shape of the result (population, GDP), the GDP unit, and the null-vs-zero distinction. What an agent needs to call it correctly is present; only error behavior for unknown codes is left out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 the load, and it does: it identifies the single parameter as a seven-digit IBGE municipality code, giving it domain meaning beyond the bare regex pattern. It does not explain what happens on a non-existent code, but the core semantics are supplied.

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: 'Read a municipality by its seven-digit IBGE code', plus the fields returned (population, GDP). It implies direct lookup rather than search, but never names the sibling search_municipalities to reinforce the distinction.

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: the seven-digit IBGE code requirement signals a direct key lookup, unlike a search tool, but there is no explicit 'use this when you already know the code, otherwise use search_municipalities' guidance. No exclusions or prerequisites are stated.

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