Skip to main content
Glama

Emendas parlamentares do Brasil

Ranking de municípios

ranking_municipios
Read-onlyIdempotent

Ranking dos municípios que mais receberam emendas, no Brasil ou numa UF, por valor total e por habitante (municípios acima de 50 mil habitantes). Requer token pago.

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": {
      "token": "<token>"
    },
    "name": "ranking_municipios"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF (ex.: SP) ou BR para o Brasil inteiro; padrão BR
tokenYesToken do passe de 24 h, obtido com comprar_acesso e ativar_acesso

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / token / description
      Added value: +"Token do passe de 24 h, obtido com comprar_acesso e ativar_acesso"
    • changedInput schema / properties / uf / description
      Previous value: -"Sigla da UF (ex.: SP) ou BR para o Brasil"New value: +"Sigla da UF (ex.: SP) ou BR para o Brasil inteiro; padrão BR"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint. The description adds meaningful behavioral context: paid access is required, results cover Brazil or a UF, and only municipalities above 50,000 inhabitants are included. It does not describe error behavior for an invalid token or result limits.

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?

The purpose is front-loaded in two efficient sentences with no filler. The parenthetical population threshold is dense but necessary and earns its place.

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?

For a two-parameter read-only ranking tool with no output schema, the description covers the ranking basis, geographic scope, population cutoff, and paid-access requirement. A minor gap is that result count and ordering are not specified.

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 description coverage is 100%, so the uf and token parameters are already well documented. The description restates the Brazil/UF scope and paid-token requirement but adds no syntax, constraints, or usage nuance beyond what the schema provides.

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 (ranking of municipalities by amendments received), scope (Brazil or a UF), metrics (total value and per capita), and population threshold. It is clearly a ranking rather than a lookup, but does not explicitly distinguish itself from siblings like resumo_municipio or buscar_municipio.

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?

Mentions the paid-token prerequisite but gives no explicit guidance on when to use this tool versus buscar_municipio, resumo_municipio, or contratos_prefeitura. Usage is implied by the ranking purpose but lacks comparative exclusions.

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.