Skip to main content
Glama

Eleição de prefeito em municípios parecidos

comparar_prefeitos
Read-only

Compare municipalities in the same state by similar electorate and review their 2024 mayoral election results, including round, party, vote share, margin, re-election, spending, and cost per vote.

Instructions

Municípios do mesmo estado com eleitorado mais parecido e como foi a eleição de prefeito de 2024 em cada um: turno, partido, % do eleito, margem, eleito também em 2020, gasto e custo por voto.

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_prefeitos"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

B3.2/5.0
Behavior3/5

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

The readOnlyHint annotation already tells the agent this is a safe read, so the description only needs to add context, and it does add real value by enumerating the returned fields. However, it never defines what 'eleitorado mais parecido' means (absolute size? % of population?), the ordering, or how ties/small municipalities are handled, which is the core behavior of a similarity tool.

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?

One sentence, front-loaded with the selection criterion and then the output fields; every clause carries information. It is dense – a bulleted field list would scan better – but nothing is padded or redundant.

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?

With no output schema, the field enumeration is necessary and well done, covering the return shape. What remains missing for a 3-parameter comparison tool is the peer-selection metric and any handling of 'quantos', which an agent needs in order to interpret and size the result correctly.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the undocumented parameter is the meaningful one: 'quantos' (default 5, max 20) is never mentioned in the description, so the agent must read the raw schema to know how many peer municipalities come back. The description also adds nothing about 'municipio' accent handling or the 'uf' constraint beyond what the schema already says.

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 states a specific resource – municipalities in the same state with similar electorates – plus the exact payload of the 2024 mayoral result per municipality (round, party, winner %, margin, 2020 re-election, spending, cost per vote). The comparison verb is implicit in 'como foi a eleição ... em cada um' rather than stated up front, and no sibling such as consultar_prefeito is named as the alternative, so it stops short of a 5.

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: an agent can infer this is for benchmarking a municipality against similar-electorate peers in the same state, but there is no explicit when-to-use, no when-not-to-use, and no pointer to consultar_prefeito for a single municipality or comparar_municipios for non-electoral comparisons.

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