Skip to main content
Glama

tse_municipios_zonas

Translate TSE 5-digit and IBGE 7-digit municipality codes, names, capitals, and electoral zones using official Brazilian electoral data with at least one filter required.

Instructions

Translate TSE 5-digit municipality codes, IBGE 7-digit codes, names, capitals, and electoral zones from TSE mun-e*-cm.json. Requires at least one filter.

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": "tse_municipios_zonas"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo2-letter state UF (different from 'br')
nomeNoPartial municipality name
cicloNoele2024
limitNo
codigo_tseNo5-digit TSE municipality code
codigo_ibgeNo7-digit IBGE municipality code
codigo_eleicaoNo619

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It usefully identifies the backing dataset and states the minimum-input constraint, and "Translate" implies a non-destructive read. It does not disclose what is returned, whether an empty result is an error, or how the limit/pagination behaves on a broader query.

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?

Two sentences, zero filler, with the identification and data source placed first and the hard constraint last. The list of concepts ("capitals, and electoral zones") is the only place where wording costs clarity rather than saving it.

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 7-parameter lookup with no annotations and no output schema, this covers the essentials but not the whole burden: the return shape, whether results are paginated by limit, and how multiple filters interact are all unstated. An agent could call it correctly but cannot predict what it gets back.

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 57%, and the description reinforces the digit lengths for the two code systems plus the at-least-one-filter rule, which is genuine meaning beyond the schema's zero required properties. It still leaves uf/nome/ciclo/codigo_eleicao unexplained, and it references capitals and electoral zones for which no parameter exists, which risks implying unsupported filters.

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 uses a specific verb ("Translate") plus the concrete resources it maps between (5-digit TSE codes, 7-digit IBGE codes, names) and names the source file mun-e*-cm.json. That is enough for an agent to tell this is a code/name resolution lookup rather than the candidate, party, or turnout siblings. The trailing mention of "capitals, and electoral zones" blurs the resource scope slightly, since neither maps to an obvious parameter.

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?

"Requires at least one filter" is a real, actionable usage rule that the schema alone does not express (all 7 params are optional there). However, there is no guidance on when to choose this tool over siblings, nor on how to combine filters or what happens when several are supplied.

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