Skip to main content
Glama

Vereador e prefeito 2024 (TSE, by PoliticAI)

Municípios parecidos

comparar_municipios
Read-only

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 observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful context by indicating the data is a 2024 snapshot and that results pair municipalities with councilmember vote counts, but it says nothing about how 'similar electorate' is computed, result ordering, or what happens when no comparable municipalities exist.

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 front-loaded sentence with no filler. It is slightly compressed to the point of ambiguity in the clause about which votes elected the last councilmember, but nothing is wasted.

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, three-parameter query tool with no output schema, the description is adequate: it explains the comparison basis and the year of the data. It omits the DF-has-no-councilmember caveat that appears only in the uf schema and gives no sense of the result shape or size, leaving gaps for correct invocation.

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%, with uf and municipio documented but quantos left without any description. The description reinforces the state scoping and accent-insensitive naming only indirectly; it adds nothing about quantos controlling result-set size, so it does not compensate for the uncovered parameter.

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 names a specific operation (find municipalities in the same state with the most similar electorate) plus a concrete return payload (votes that elected the last councilmember in each, 2024). It is clearly distinguishable from buscar_municipio/consultar_municipio lookups, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus the sibling lookup/national-summary tools, and no exclusions or prerequisites beyond the implicit 'same state' scoping. An agent must infer the comparison use case entirely from the noun phrase.

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.