Skip to main content
Glama

Municípios parecidos

comparar_municipios
Read-only

Compares municipalities within the same state that have comparable electorates and shows how many votes elected the last city councilor in each for 2024.

Instructions

Municípios do mesmo estado com eleitorado mais parecido e quantos votos elegeram o último vereador em cada um (2024).

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": {
      "municipio": "<municipio>",
      "uf": "<uf>"
    },
    "name": "comparar_municipios"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufYesSigla do estado, ex.: SP, MT, RO. O DF não elege vereador.
quantosNo
municipioYesNome do município, com ou sem acento.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds useful substance the annotations don't: the same-state restriction, the 2024 reference year, and that vote counts for the last elected vereador are returned. It stops short of explaining how 'similarity' is measured or how results are ranked/limited.

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?

A single dense sentence that front-loads the core concept (same-state, similar electorate) before the return detail. No filler, though the phrasing is compressed enough that 'quantos votos' could momentarily confuse with the 'quantos' input.

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 read-only, 3-parameter comparison tool with no output schema, the description covers purpose, scope and the key returned metric, but leaves open how similarity is computed, the default result count, and edge cases such as the DF note (which lives only in the schema) or an unknown municipio.

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 67% — uf and municipio are documented in the schema. The description adds no meaning to those, and the undocumented 'quantos' parameter (count of municipalities, 1-20, default 5) is not clarified; if anything the phrase 'quantos votos' risks being misread as relating to that parameter rather than to output votes. Baseline 3 fits.

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 resource (municipalities in the same state) and the exact comparison criterion (most similar electorate) plus the returned data (votes for the last elected vereador in each, 2024). This is clearly distinguishable from a generic municipality lookup, though the description never names the sibling tools to contrast with.

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 'eleitorado mais parecido' phrasing suggests it is for finding comparable municipalities, but there is no explicit when-to-use, no exclusions, and no pointer to buscar_municipio or consultar_municipio for simple lookups.

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