Skip to main content
Glama
SidneyBissoli

Senado BR — Brazilian Federal Senate Open Data

Senado Brasil MCP Server

Cloudflare Workers MCP Tools CI MCP Registry LobeHub senado-br-mcp-cloudflare MCP server GitHub stars GitHub Sponsors License: MIT Status

🇧🇷 Leia em Português

A public, hosted MCP server that gives AI assistants live, structured access to Brazilian Senate open datano installation, no account, no API key. Point your MCP client at the hosted endpoint and start asking about senators, bills, votes, expenses, and more. It runs on Cloudflare Workers over Streamable HTTP.

It exposes 69 tools, 4 prompts, and 5 resources across two domains:

  • Legislative — senators; bills and their tramitation; votes; committees; plenary sessions, results and presidential vetoes; party-bloc voting orientation; speeches and stenographic transcripts; blocs and leadership; federal legislation; and citizen participation via the e-Cidadania portal.

  • Administrative — CEAPS parliamentary-quota expenses; housing allowance; civil servants and payroll; overtime; interns; procurement contracts and biddings; outsourced staff; petty-cash funds; and budget execution.

Data comes from three official sources — the legislative open-data API, the administrative open-data API, and the e-Cidadania portal. All tool responses are in Portuguese (pt-BR). See CHANGELOG.md for release history.

See it in action

Point a client at the endpoint and ask in plain language — English or Portuguese:

  • "How did São Paulo's senators vote in the most recent floor votes?"senado_search_votacoes

  • "Show the legislative progress of PEC 45/2019 (a constitutional amendment proposal)."senado_buscar_materias + senado_obter_materia

  • "How much was spent on the CEAPS parliamentary allowance in 2024, broken down by expense type?"senado_ceaps

The answers come live from the Senate's official open-data APIs — exact figures with provenance, not numbers guessed from training data.

Related MCP server: mcp-camara

Use it (hosted — no setup)

This is a remote, hosted, open-access server. To use it, point any MCP client at the Streamable HTTP endpoint — no install, no account, no API key, no configuration:

https://senado.sidneybissoli.com/mcp

OpenAI / ChatGPT app surface

For OpenAI Apps SDK submission and review, the Worker also exposes a curated MCP surface:

https://senado.sidneybissoli.com/mcp/openai-app-v2

This endpoint intentionally keeps the full public MCP server intact at /mcp, but limits tool discovery to 27 high-signal, intent-oriented tools for ChatGPT app use. /mcp/openai-app remains available as a legacy alias, but new ChatGPT app configurations should use /mcp/openai-app-v2 so clients fetch the current tool schema. The tools still call the same handlers and return the same provenance envelope; only the advertised surface is narrower. Any ChatGPT app listing should present this as an independent open-data research app, not as an official Senate, OpenAI or ChatGPT connector.

For ChatGPT Apps, those 27 tools also advertise a shared MCP Apps UI template at ui://senado-br-mcp/openai-app-dashboard-v2.html. The self-contained widget renders the returned structuredContent as a compact dashboard with metrics, main records, and source/provenance, without adding another model-visible data tool.

Public legal URLs for app review:

  • Privacy policy: https://senado.sidneybissoli.com/privacy

  • Terms of use: https://senado.sidneybissoli.com/terms

ChatGPT (Deep Research)

ChatGPT deep research (and company knowledge, and research workflows over the Responses API) only uses an MCP server that exposes exactly search and fetch — this server does, on top of the senado_* tools, on the full /mcp surface (not on the curated app profile). Point the connector at the hosted endpoint, no key required:

https://senado.sidneybissoli.com/mcp

search ranks the query against the senators in office and the active committees of the Senate and the National Congress and returns { id, title, url } (sen:<código> / com:<código>); fetch returns the document as readable Markdown — the senator's biography and mandates, or the committee's summary and board — with the canonical public page (the senator's profile on www25.senado.leg.br or the committee page on legis.senado.leg.br), which is what ChatGPT cites. Both carry the same provenance block as every other tool, in structuredContent and _meta (the text channel is the contract's JSON). In ChatGPT's developer mode (Settings → Security and login → Developer mode) any tool is callable — the senado_* tools remain the ones to use for data.

Install (any client)

For clients that launch MCP servers as a command — and for one-command setup — use the mcp-remote bridge. No build, no config, no key:

npx -y mcp-remote https://senado.sidneybissoli.com/mcp

Everything below Architecture (Prerequisites, Setup, Deploy) is only for optionally self-hosting your own instance — it is not required to use this public server.

Run locally (npx · stdio)

Prefer not to route queries through a third-party host (e.g. a newsroom policy)? The same server also runs as a local stdio process that talks directly to the official government APIs — same 69 tools, same provenance envelope, no Cloudflare in the loop. This is the npm/stdio channel, published as senado-br-mcp.

Point a command-based client (Claude Desktop/Code, etc.) at the package — npm fetches and runs it, no clone or build:

{
  "mcpServers": {
    "senado-br": {
      "command": "npx",
      "args": ["-y", "senado-br-mcp"]
    }
  }
}

To run it directly or hack on it, use the source checkout instead:

git clone https://github.com/SidneyBissoli/senado-br-mcp-cloudflare
cd senado-br-mcp-cloudflare
npm install
npm run build
node dist/cli.js   # serves MCP over stdio (Ctrl+C to stop)

Parity with the hosted server: the legislative and administrative tools are identical (same upstream APIs, same throttle/cache/provenance) — locally the L1 Cloudflare cache is a no-op, but the L0 in-memory cache still works, so results are the same. The only difference is the e-Cidadania list/corpus tools: without D1 they fall back to a live scrape of the ~5 REST highlights, flagged via meta.fonte / possivelDesatualizacao; the detail tools (obter_*) are identical. Logs go to stderr — stdout carries only the JSON-RPC protocol stream.

Agent Skill (optional)

This repo bundles a Claude Agent Skill at .claude/skills/senado-br/ that teaches Claude when to reach for this server and how to use its 69 tools well — a themed tool map, common question→tool playbooks, the provenance contract, and gotchas (dates, the codigoMateria bridge, e-Cidadania's open-set listing, pagination). It points back to the server's own senado://catalogo / senado://guia resources rather than duplicating them.

Claude Code auto-discovers it when you work in this repo. To use it elsewhere, copy .claude/skills/senado-br/ into your ~/.claude/skills/, or zip the folder and upload it in claude.ai (Settings → Features). The skill assumes the senado-br MCP server is connected (hosted or via npx).

Architecture

  • Runtime: Cloudflare Workers (ESM)

  • Transport: Streamable HTTP (MCP spec 2025-03-26) via createMcpHandler from agents/mcp

  • Protocol: MCP over JSON-RPC — /mcp handles the full public server; /mcp/openai-app-v2 exposes a curated 27-tool profile plus a shared MCP Apps widget for OpenAI app review/submission (/mcp/openai-app remains as a legacy alias)

  • SDK: @modelcontextprotocol/server 2.x (per-request McpServer instances; the v1 @modelcontextprotocol/sdk remains only as a peer of agents, dev-time)

  • Validation: Zod schemas for all tool inputs

  • Caching: 2-layer (L0 memory + L1 Cache API) with SHA-256 keying

  • e-Cidadania store: D1 database refreshed by a Cron Trigger (every 2h) — list tools read from D1 with a live-scrape fallback and a staleness flag; detail tools stay live with write-through (see e-Cidadania)

  • Rate limiting: Token bucket — global (8 req/s) + per-client (2 req/s)

  • Upstream throttle: Max 6 concurrent requests, 10s timeout, retry with exponential backoff

  • Auth: Optional Bearer token (set the API_KEY secret; open access when unset). Constant-time comparison.

  • Observability: Structured JSON logging + in-memory counters at /metrics; per-tool call telemetry (selection, error rate, cache-vs-live) in Cloudflare Analytics Engine, PII-free

  • Liveness: Runs on Cloudflare's own global network behind a custom domain — no third-party host that can go dark. Public /health and /status (version + last-deploy id/timestamp) make uptime and the current build verifiable; the status badge above pings the live endpoint

  • Tests: Vitest unit tests for parsers, helpers, cache, throttle, and auth

Self-hosting (optional)

Not needed to use the server — it is already hosted at https://senado.sidneybissoli.com/mcp (open access). Follow this section only if you want to run your own private instance.

Prerequisites

  • Node.js 22+ (engines.node)

  • Wrangler CLI v4+

  • Cloudflare account

Setup

1. Install dependencies

npm install

2. Create KV namespace

# Create the KV namespace
wrangler kv namespace create CACHE_KV

# Note the ID from the output, e.g.:
# { binding = "CACHE_KV", id = "abc123..." }

3. Configure wrangler.toml

Replace the placeholder KV namespace ID:

[[kv_namespaces]]
binding = "CACHE_KV"
id = "YOUR_KV_NAMESPACE_ID_HERE"

Optionally set ALLOWED_ORIGIN to restrict CORS:

[vars]
ALLOWED_ORIGIN = "https://your-app.example.com"

The e-Cidadania pipeline needs a D1 database and a Cron Trigger (both already declared in wrangler.toml — replace the database ID):

[[d1_databases]]
binding = "ECIDADANIA_DB"
database_name = "senado-ecidadania"
database_id = "YOUR_D1_DATABASE_ID_HERE"

[triggers]
crons = ["0 */2 * * *"]

Create the database (paste the returned ID above) and apply the schema:

npx wrangler d1 create senado-ecidadania
npx wrangler d1 migrations apply senado-ecidadania --remote

The list tools fall back to live scraping when D1 is empty, so the server works before the first Cron run.

4. (Optional) Enable authentication

wrangler secret put API_KEY
# Clients must then send: Authorization: Bearer <key>
# When API_KEY is not set, the server is open access.

5. Local development

npm run dev
# Dev server runs locally on port 8787 (local only).
# The public MCP endpoint is https://senado.sidneybissoli.com/mcp

6. Tests and typecheck

npm test             # run all tests once
npm run test:watch   # watch mode
npm run typecheck    # tsc --noEmit

7. Deploy

npm run deploy
# Serves at https://senado.sidneybissoli.com (custom domain) and
# https://senado-br-mcp.sidneybissoli.workers.dev (workers.dev fallback)

Endpoints

Path

Methods

Description

/

GET

Landing page (pt-BR) — identifies the client behind the outgoing User-Agent: what the service is, load posture, contact (always public)

/mcp

POST, GET, DELETE, OPTIONS

MCP Streamable HTTP endpoint (managed by createMcpHandler)

/health

GET

Health check — returns ok (always public)

/status

GET

JSON: status, version, and last-deploy metadata (deploy.id/tag/timestamp) — liveness + current build, no MCP handshake needed (always public)

/metrics

GET

JSON counters: requests, tool calls, cache hits/misses, upstream calls/retries/errors, auth failures (always public)

MCP Request Examples

All requests go to POST /mcp with JSON-RPC 2.0 format.

List available tools

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call a tool — List senators from SP

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "senado_listar_senadores",
    "arguments": {
      "uf": "SP",
      "emExercicio": true
    }
  }
}

Call a tool — Search bills by keyword

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "senado_buscar_materias",
    "arguments": {
      "palavraChave": "inteligência artificial",
      "tramitando": true
    }
  }
}

Call a tool — Get recent plenary votes

{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "senado_search_votacoes",
    "arguments": {
      "dias": 7
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "senado_ecidadania_listar_ideias",
    "arguments": {
      "ordenarPor": "apoios",
      "ordem": "desc",
      "status": "aberta"
    }
  }
}

Upstream API Endpoints

The server consumes two classes of upstream endpoints from the Senado API:

Legacy endpoints (.json suffix, PascalCase responses)

Used by Groups A, E, F, H, I, J, K, L, M, N. The .json suffix is appended automatically by upstream.ts. None of these is marked deprecated upstream.

Upstream path

Used by

/senador/lista/atual

senado_listar_senadores

/senador/lista/legislatura/{legislatura}

senado_listar_senadores (param legislatura)

/senador/{codigo} (+ /mandatos)

senado_obter_senador (biografia + mandatos via chamada extra)

/senador/{codigo}/licencas, /comissoes, /cargos, /historicoAcademico, /filiacoes, /profissao

senado_senador_historico (tipo enum)

/senador/afastados

senado_senadores_afastados

/senador/{codigo}/apartes

senado_discursos_senador (tipo=apartes)

/comissao/lista/colegiados

senado_listar_comissoes (+ sigla-to-code resolution)

/comissao/{codigo}

senado_obter_comissao (secao=resumo; numeric code, not sigla)

/composicao/comissao/{codigo} (+ ?ativas=S)

senado_obter_comissao (secao=membros)

/comissao/agenda/{data}

senado_agenda_comissoes

/comissao/agenda/{dataInicio}/{dataFim}

senado_reunioes_comissao

/comissao/reuniao/{codigoReuniao}

senado_reuniao_comissao

/comissao/cpi/{sigla}/requerimentos

senado_requerimentos_cpi (upstream often empty even for active CPIs — empty result carries an aviso)

/materia/distribuicao/autoria, /distribuicao/relatoria/{sigla}

senado_distribuicao_materias

/plenario/agenda/dia/{data}, /agenda/mes/{data}, /agenda/cn/...

senado_agenda_plenario

/plenario/resultado/{data}, /resultado/cn/{data}, /resultado/mes/{data}

senado_resultado_plenario

/plenario/resultado/veto/{codigo} (+ /materia/, /dispositivo/)

senado_resultado_veto

/plenario/votacao/orientacaoBancada/{data} (+ período)

senado_orientacao_bancada

/plenario/encontro/{codigo} (+ /pauta, /resultado, /resumo)

senado_encontro_plenario

/plenario/tiposSessao, /lista/tiposComparecimento, /lista/legislaturas

senado_tabelas_plenario

/materia/vetos/{ano}, /vetos/aposrcn, /vetos/antesrcn, /vetos/encerrados

senado_vetos

/taquigrafia/notas/{sessao|reuniao}/{id}

senado_notas_taquigraficas

/taquigrafia/videos/{sessao|reuniao}/{id}

senado_videos_taquigrafia

/senador/{codigo}/discursos

senado_discursos_senador

/plenario/lista/discursos/{dataInicio}/{dataFim}

senado_discursos_plenario

/discurso/texto-integral/{codigo}

senado_discurso_texto (plain text, fetched directly)

/senador/lista/tiposUsoPalavra

senado_tabelas_referencia (tabela=tipos-uso-palavra)

/composicao/lista/blocos

senado_listar_blocos

/composicao/bloco/{codigo}

senado_obter_bloco

/composicao/lideranca

senado_liderancas

/composicao/mesaSF

senado_mesa (casa=senado)

/composicao/mesaCN

senado_mesa (casa=congresso)

/orcamento/lista

senado_orcamento_parlamentar (tipo=emendas)

/orcamento/oficios

senado_orcamento_parlamentar (tipo=oficios)

/legislacao/lista

senado_buscar_legislacao

/legislacao/{codigo}

senado_obter_legislacao

/legislacao/tiposNorma

senado_tabelas_referencia (tabela=tipos-norma)

/votacaoComissao/comissao/{sigla}

senado_votacao_comissao (por=comissao)

/votacaoComissao/parlamentar/{codigo}

senado_votacao_comissao (por=senador)

/votacaoComissao/materia/{sigla}/{numero}/{ano}

senado_votacao_comissao (por=materia)

/autor/lista/atual

senado_autores_atuais

v3 endpoints (flat JSON arrays/objects, camelCase)

Used by Groups B, C, D. Dates must be in ISO format (YYYY-MM-DD) — tools accept YYYYMMDD and convert. The codigoMateria query param bridges legacy matéria codes to v3 processes.

Upstream path

Used by

/votacao

senado_obter_votacao, senado_search_votacoes, senado_votos_materia, senado_votacoes_senador

/processo

senado_search_processos, senado_buscar_materias

/processo/{id}

senado_obter_processo, senado_obter_materia (secao=detalhe/tramitacao)

/processo/documento

senado_obter_materia (secao=textos)

/processo/emenda

senado_processo_detalhe (secao=emendas)

/processo/relatoria

senado_processo_detalhe (secao=relatorias), senado_obter_materia (rapporteur)

/processo/prazo

senado_processo_detalhe (secao=prazos)

/processo/{siglas,assuntos,classes,destinos,entes,tipos-*}

senado_tabelas_processo (12 reference tables)

Administrative API (adm.senado.gov.br/adm-dadosabertos, flat snake_case JSON)

Used by Groups O, P, Q, R via admFetch (no .json suffix; HTTP 404 treated as empty collection). Base URL configurable via SENADO_ADM_BASE_URL.

Upstream path

Used by

/api/v1/senadores/despesas_ceaps/{ano}

senado_ceaps (~10 MB/year, cached + aggregated in-Worker)

/api/v1/senadores/{auxilio-moradia,escritorios,aposentados}

senado_senadores_admin (tipo enum)

/api/v1/servidores/servidores/{ativos,efetivos,comissionados,inativos}

senado_servidores

/api/v1/servidores/remuneracoes/{ano}/{mes}

senado_remuneracoes_servidores (~5.5 MB/month)

/api/v1/servidores/horas-extras/{ano}/{mes}

senado_horas_extras

/api/v1/servidores/quantitativos/*, /previsao-aposentadoria, /api/v1/senadores/quantitativos/senadores

senado_pessoal_tabelas (quantitativos)

/api/v1/servidores/{estagiarios,pensionistas,lotacoes,cargos}

senado_pessoal_tabelas (listas nominais)

/api/v1/contratacoes/contratos (+ /{id}/aditivos)

senado_contratos, senado_contratacao_detalhe

/api/v1/contratacoes/{tipo}/{id}/{itens,pagamentos,garantias}

senado_contratacao_detalhe

/api/v1/contratacoes/licitacoes

senado_licitacoes

/api/v1/contratacoes/terceirizados

senado_terceirizados

/api/v1/contratacoes/empresas

senado_empresas_contratadas (~13 MB, requires filter)

/api/v1/contratacoes/{atas_registro_preco,notas_empenho,menores_aprendizes}

senado_contratacoes_lista

/api/v1/supridos/{ano} (+ atosConcessao, empenhos, movimentacoes, transacoes)

senado_suprimento_fundos

senado.gov.br/bi-arqs/Arquimedes/Financeiro/{Despesa,Receitas}SenadoDadosAbertos.json

senado_execucao_orcamentaria (daily JSON feeds, Brazilian decimal strings normalized)

e-Cidadania (D1-backed, Cron-refreshed)

The e-Cidadania list data is persisted in a D1 database (ecidadania_current/_history/_scrape_runs, discriminated by entidade; plus ecidadania_comentarios for the audiência comment level and ecidadania_detalhe_cursor for the resumable detail backfill — added in schema v2) and read from there instead of being scraped on every call. Three cadences write into it:

  • a daily off-Worker GitHub Action owns the full corpus of the three live entities (consultas, eventos, ideias; see below) — the source of truth. Daily (not weekly) because the first-seen series MIN(scraped_at) is the only measurable entry-rhythm signal and every skipped day permanently shortens it (ROADMAP Etapa 2, decisão D3);

  • a weekly ingest Action (.github/workflows/verify-consultas-votos.yml — historical filename) for the consultas_votos acervo: the Senado republishes the Arquimedes CSV periodically (confirmed 2026-07-20), so the weekly run re-ingests the current vintage under the same anomaly guards as the other corpora (see below);

  • an in-Worker Cron Trigger (0 */2 * * *, src/scraper/pipeline.ts → refreshEcidadania) does only a targeted metric splice of the ~5 REST highlights per live entity (restcolecaomaismateria/ideia/audiencia — votos/comentários/apoios), recorded as ok-metrica so it never re-breaks the corpus baseline and never touches the long tail. In v2 the eventos splice preserves the corpus's canonical comment count (the daily crawl is the source of truth for comentarios, so the splice can't ping-pong it against the degraded REST count).

Both writers build payloads through the canonical buildXResumo builders + shared contentHash, so their rows are byte-identical. Each write:

  • upserts ecidadania_current (one row per item — what the tools read),

  • appends ecidadania_history only when an item's content_hash changes (time-series-ready),

  • records each run in ecidadania_scrape_runs.

An anomaly guard (src/scraper/anomaly.ts, classifyRun) ensures a failed or anomalous corpus run (zero rows, or fewer than ECIDADANIA_CORPUS_MIN_PCT% of the last good run) never overwrites the last good state.

The list / analysis tools (listar_*, consultas_analise, sugerir_tema_enquete, consultas_votos) read from D1 via resolveList (src/scraper/store.ts): D1-first. Because every entity is now a full corpus, a stale corpus is served from D1 flagged (possivelDesatualizacao: true) rather than collapsing to the ~5-item live highlights (the original coverage bug); the live scrape is reserved for an empty D1 (cold start, before the first weekly run). Staleness uses ECIDADANIA_CORPUS_STALE_MAX_MIN (~10 days). Every list response carries an additive meta (fonte, lastScrapedAt, possivelDesatualizacao) so callers always see the data's real age and never get stale data silently.

The detail tools (obter_*) stay live (HTML scraped with CSS-class-targeted regex) for freshness, and write their richer payload through to ecidadania_detalhe fire-and-forget (deduped by content_hash), so detail history accrues without adding latency to the response.

Full-corpus ingestion (off-Worker)

The three live e-Cidadania corpora are owned by the daily Action (.github/workflows/ingest-ecidadania.yml), each with its own scripts/ingest-ecidadania/index-*.ts orchestrator emitting batched out-*.sql the apply step bulk-loads:

  • consultas — open consultations (detailed below). In v2 each crawled matter is also enriched from its detail page (visualizacaomateria) for autoria/relator; those are immutable, so only rows not yet enriched are fetched.

  • eventos — audiências/eventos from the principalaudiencia?p=N HTML listing; status comes straight from the listing block (no /processo bridge). In v2 every event is enriched from its detail page (canonical data/hora + comissaoNomeCompleto/local/descricao/pauta/convidados/videoUrl) and its AJAX comment fragment (canonical count + one ecidadania_comentarios row per comment, diffed against the stored hashes and emitted as out-eventos-comentarios-*.sql).

  • ideias — ideias legislativas (~113.7k) from pesquisaideia?situacao=N&p=M, crawled per situacao bucket (the listing has no inline status) and emitted in ~10k-statement batches. In v2 the listing crawl preserves the immutable detail fields, and a separate resumable backfill (index-ideias-detalhe.ts, run via ingest:ecidadania:ideias-detalhe) fills them a chunk per run — because ~113.7k detail fetches don't fit one Action, it persists a cursor in ecidadania_detalhe_cursor and wraps around at the end.

The fourth entity, consultas_votos, is a separate historical acervo of votes-by-UF parsed from the ~33 MB Arquimedes CSV (Proposições-com-votos.csv), aggregated to one record per matéria with a votosPorUf breakdown. The CSV's "dados atualizados até" stamp becomes the provenance data_vintage; it is excluded from the row hash (consultaVotoCore) so a re-ingest with unchanged votes doesn't churn _history. STATUS ATUAL is uniformly "Descontinuado", hence archival, not a migration of the open consultations. Served by senado_ecidadania_consultas_votos with provenance pointing at the CSV (ECIDADANIA_ARQUIMEDES). It is excluded from the daily job and owned by its own weekly ingest Action (.github/workflows/verify-consultas-votos.yml — the filename keeps the historical verify- prefix): the acervo was originally treated as a frozen single vintage (ROADMAP Etapa 2, decisão D1) and the weekly run only verified it, but on 2026-07-20 the Senado republished the CSV as a fresh vintage (+43 matérias, 648 updated), so the scheduled run now re-ingests the current vintage under the standard anomaly guards (empty/truncated CSV and the catastrophic floor still fail without writing; force dispatch overrides the floor). The script's verify mode (INGEST_CONSULTAS_VOTOS_VERIFY=1 / --verify) remains available as an on-demand integrity check.

The consultas job is the reference implementation:

consultas covers the full set of OPEN consultations — every matter currently in tramitação (~7.7k), not just the ~5 highlights. Confirmed on the first run: the pesquisamateria listing is in-tramitação-only, so closed/historical consultations are not captured by this source (a pre-ingestion historical backfill is out of scope). Three settled design decisions:

  1. Decoupled ingestion. The open set is acquired by an off-Worker TypeScript job (scripts/ingest-ecidadania/, run by a daily GitHub Action — .github/workflows/ingest-ecidadania.yml) that paginates the HTML listing (pesquisamateria?p=1..N, the only full-coverage source for open consultations) for ids + vote counts and bulk-loads D1; the Worker only reads. The brittle, long crawl is kept out of the request/Cron path.

  2. Status from /processo, not HTML. A consultation runs from presentation until the end of tramitação, so status is a function of the matter: aberta ⟺ the codigoMateria is in the /processo tramitando=S set, derived from robust JSON (never scraped). Every consultation enters as aberta (the listing only yields in-tramitação matters); on each complete run the job re-derives status for all stored rows by /processo membership (not by listing-absence, which can be transient), so a consultation whose matter leaves tramitação flips to encerrada. The encerrada/todas sets therefore grow over time; consultations that closed before the first ingestion aren't captured (out of scope). The list/analysis tools default to status: aberta.

  3. Two reconciled cadences (one shared writer contract). The job reuses contentHash + the ConsultaResumo builder + classifyRun from src/scraper/, so its rows are byte-identical to the Cron's. The daily job owns the long tail; the 2h Cron keeps the ~5 hot/open highlights fresh via a targeted metric splice (recorded as ok-metrica, bypassing the corpus classifyRun baseline). Corpus freshness (possivelDesatualizacao) is computed from the last status='ok' run and uses a larger window (ECIDADANIA_CORPUS_STALE_MAX_MIN), and a stale consultas corpus is served from D1 flagged rather than collapsing back to the live highlights.

Write guards on the load: an incomplete crawl (any page failed) or an incomplete /processo status universe writes only an erro run row; even a complete crawl is rejected by a catastrophic floor (ECIDADANIA_CORPUS_MIN_PCT, default 80% of the last good corpus) to guard against a degraded page — overridable with --force / INGEST_FORCE=1 for a legitimate large shrink. Run daily via the Action, or manually:

CLOUDFLARE_API_TOKEN=… npm run ingest:ecidadania                 # writes scripts/ingest-ecidadania/out.sql
npx wrangler d1 execute senado-ecidadania --remote --file=scripts/ingest-ecidadania/out.sql

Caching

Layer architecture

Layer

Storage

Scope

TTL range

Purpose

L0

In-memory Map

Per-isolate

30-300s

Ultra-fast, eliminates redundant requests within a Worker isolate

L1

Cloudflare Cache API (caches.default)

Per-colo (PoP)

60-600s

Shared across requests at the same edge location

L2

KV (optional)

Global

Variable

Reserved for rare, low-write data

Cache categories

Category

L0 TTL

L1 TTL

Used for

STATIC

300s

600s

Legislation types, static reference

SEMI_STATIC

120s

300s

Party list, UF list, committee details

DYNAMIC

30s

60s

Agendas, recent votes, meeting lists

ON_DEMAND

30s

120s

Specific bill/senator/vote lookups

POST caching approach

MCP uses POST for all tools/call requests. Caching POST responses is not natively supported by the Cache API, which requires GET requests. The solution:

  1. Hash parameters — Tool name + sorted parameters are hashed with SHA-256

  2. Synthetic GET key — A synthetic URL https://senado-br-mcp.internal/__cache/{tool}/{hash} is constructed

  3. Cache API match/put — The synthetic GET URL is used with caches.default.match() and caches.default.put(), allowing standard Cache API operations on POST-originated data

This caching happens at the tool level (inside each tool's callback), not at the MCP transport level.

Provenance

Every tool attaches a provenance envelope so a result is traceable back to its official source — provenance is treated as a first-class part of the answer, not an optional extra (the audience is journalists and political-science researchers, for whom an un-sourced figure is unusable). Since v3.5.0 the envelope implements the portfolio-wide provenance contract v1.0 (@sbissoli/mcp-provenance): the server builds and validates a full canonical model per response, and emits its concise projection — a fixed 6-key block with explicit null for unknown fields. The block lives in structuredContent.provenance (parseable by clients; note the advertised per-tool output schema is permissive, so contract validation happens server-side at build time, in the package) and is mirrored as a compact source footer in the text content for clients that only render text — the data JSON itself is not duplicated with the envelope, to keep the per-response token cost low.

Coverage spans all four upstream sources, each with its own source/citation/license (in src/utils/provenance.ts):

  • Senado Federal — Dados Abertos (Legislativo)legis.senado.leg.br/dadosabertos

  • Senado Federal — Dados Abertos (Administrativo)adm.senado.gov.br/adm-dadosabertos

  • Senado Federal — Execução Orçamentária e Financeira — Arquimedes/Financeiro feed at senado.gov.br

  • Senado Federal — Portal e-Cidadaniawww12.senado.leg.br/ecidadania

Fields of the concise block (per response — one tool, one source; keys in this fixed order, null when the source does not expose the value):

Field

Meaning

source

Official source name (e.g. Senado Federal — Dados Abertos (Legislativo))

source_url

Canonical endpoint/item URL consulted (e.g. …/processo/{id})

data_vintage

Vintage/competência of the data (e.g. 2024-03-15, 2019) — named reference_period before v3.5.0

retrieved_at

ISO-8601 of the upstream extraction — carried through the cache, so it reflects when the data was actually fetched, not the build or the cache-hit time

citation

Ready-to-use citation string (human-readable)

license

Source terms (Dados Abertos do Senado Federal)

The canonical model behind the block also carries dataset.id (item/series identifier, e.g. codigoMateria=137808), api_version and per-field field_sources; those are validated on every build and inform attribution (below), but are not part of the concise projection.

In addition to the provenance envelope, structuredContent carries a top-level attribution list — the distinct source URLs behind the response. This mirrors the naming proposed in modelcontextprotocol#711 (where attribution is a list of source references at the response level), so the server stays forward-compatible if that RFC lands; the richer provenance object remains this server's own extension.

Out-of-band mirror in _meta. The same provenance and attribution are also mirrored on the result's _meta under namespaced keys (com.sidneybissoli.senado/provenance and com.sidneybissoli.senado/attribution). The MCP spec keeps _meta for metadata about a result that should not steer the model, which is where the still-incubating trust/attribution work from #711 (split into an experimental extensions track, not yet in core) points; mirroring there gives audit and UI consumers the provenance without reading the model-facing data channel, at no model-token cost, while structuredContent keeps it visible so the model can cite the source. The mirror survives the ChatGPT-app profile minimizer (which only strips structuredContent.meta).

Field-level granularity. Most tools are single-source, so one envelope suffices. The few that merge slices in one response fill field_sources in the canonical model — a list of { fields, source_url, data_vintage, retrieved_at, … } attributing specific output fields to their real origin. Example: senado_obter_materia secao=detalhe fuses /processo/{id} (the top-level source) with the ementa from /processo and the relator from /processo/relatoria, each carrying its own retrieved_at. In the emitted concise block the per-field detail is summarized through attribution, which always lists every distinct underlying source_url.

retrieved_at fidelity is provided by the cache layer (cachedFetchWithMeta), which persists the fetch timestamp alongside the value, so it reflects the real upstream extraction even on a cache hit. Two exceptions report an honest live timestamp instead: the e-Cidadania list tools (read from D1) use the corpus's lastScrapedAt — the true age of the stored data — while e-Cidadania detail tools, scraped live, use the fetch time and a level-3 canonical item URL. The only path that falls back to the build-time default is the in-code static reference catalog (senado_tabelas_referencia tipos-materia), which has no upstream extraction instant.

Coverage is universal: all 69 tools carry the envelope — the 67 senado_* tools via resultWithProvenance( (verify with grep -c 'resultWithProvenance(' src/tools/*.ts) and the two Deep Research tools via provenanceExtras (same block, in structuredContent/_meta, since their text channel is the contract's JSON). The marks in the inventory below denote the original pilot tools (votes, bills, processes); the envelope now extends to every tool, so the marks are historical.

Citable dataset (e-Cidadania participation)

Beyond the live server, this project publishes a frozen, versioned, citable dataset of the e-Cidadania participation layer (public consultations, legislative ideas, interactive events + their comments, historical votes by state) — the layer the R package congressbr never covered. Each value carries a per-field provenance envelope ({ value, sourceEndpoint, sourceField, retrievedAt, license, schemaVersion }); the data license (Dados Abertos do Senado Federal) is kept separate from the code license (MIT).

  • How to citeCITATION.cff (dataset; cite the version-DOI of the snapshot you used, the concept-DOI for the dataset across versions).

  • What's in each releaseCHANGELOG-dataset.md (cumulative, append-only; binds each release to its schemaVersion).

  • Variable dictionary & field provenancedocs/dataset-dictionary.md (generated from src/dataset/schema.ts, the single source of truth).

  • Data licenseLICENSE-DATA.md.

  • Cutting a release (freeze → checksums → GitHub Release → Zenodo DOI) — docs/release-runbook.md; machinery in src/dataset/, scripts/build-dataset/, and .github/workflows/release-dataset.yml.

Inventory — schema v2 (schemaVersion 2.0.0)

Each release ships one NDJSON resource per entity (one HarmonizedRecord per line: identity + a provenance envelope per field), plus a datapackage.json manifest and a copy of the dictionary. Five resources:

Resource (*.ndjson)

Grain

Key variables

Source(s)

consultas

1 public consultation (matéria)

materia, ementa, votosSim/votosNao/totalVotos, percentual*, autoria, relator, status, url, firstSeenAt

pesquisamateria listing + detail (visualizacaomateria)ⁿ + /processo?tramitando=S for status

ideias

1 legislative idea (~113.7k)

titulo, apoios, status, dataPublicacao, autorUf, descricao, plConvertido, url, firstSeenAt

pesquisaideia listing + detail (visualizacaoideia) via a resumable backfillⁿ

eventos

1 interactive event (audiência)

titulo, data, hora, comissao, comissaoNomeCompleto, local, descricao, pauta, convidados, videoUrl, comentarios, status, url, firstSeenAt

principalaudiencia listing + detail (visualizacaoaudiencia)ⁿ + AJAX comment fragment

eventos_comentarios

1 comment (comment-level)

eventoId, comentarioId, uf, texto, data, hora, momentoVideoUrl, convidadoAssociado

AJAX fragment ajaxcolecaocomentarioaudiencia?audienciaId=

consultas_votos

1 matéria (historical acervo)

materia, ementa, autoria, votosSim/votosNao/totalVotos, votosPorUf, status, url, referencePeriod

Arquimedes CSV Proposições-com-votos.csv (re-ingested weekly)

ⁿ = new/reopened in v2 · ᶜ = source corrected to the canonical one in v2. What v2 (2.0.0) changed — the ingestion moved from listing-only to listing + detail (+ AJAX comments for events):

  • Eventos corrected & enriched. data/hora now come from the detail page (canonical — the estudo A3 found the listing 57% divergent on hora), plus six new detail fields (comissaoNomeCompleto, local, descricao, pauta, convidados, videoUrl). comentarios is now the canonical AJAX count (the listing count was 0-spurious in 82% of events, capturing only ~6.7% of engagement).

  • New comment-level resource eventos_comentarios — one row per audiência comment, the participation signal nobody else publishes versioned.

  • Detail-only fields reopened for ideias (dataPublicacao, autorUf, descricao, plConvertido) and consultas (autoria, relator) — previously always null by design.

  • Privacy posture by data origin. Citizen content (audiência comments, idea authors) keeps UF only — never the name, discarded at the parser; public agents (consulta authorship/rapporteur, event guests) keep the name (public by function). See docs/schema-v2-inventario.md for the field-by-field rationale (approved target).

The frozen NDJSON is not committed (built from the sovereign D1 corpus on demand); a tagged dataset-v* release attaches the tarball + SHA256SUMS + release.json and archives them on Zenodo.

Tool Inventory

Group H — Reference/Metadata (1 tool)

Tool

Description

senado_tabelas_referencia

Tabelas de referência via tabela enum: tipos-materia, partidos, ufs, legislatura-atual, tipos-norma, tipos-uso-palavra

Group A — Senators (5 tools)

Tool

Description

senado_listar_senadores

Lista senadores em exercício/por legislatura, com filtros nome (busca parcial sem acento), uf e partido

senado_obter_senador

Detalhe biográfico de um senador: bio, mandatos, partido, contato

senado_votacoes_senador

Como um senador votou em cada matéria (via v3 /votacao)

senado_senador_historico

Histórico funcional via tipo enum: licencas, comissoes, cargos, historico-academico, filiacoes, profissoes

senado_senadores_afastados

Senadores atualmente afastados (fora de exercício)

Group B — Bills/Matters (2 tools, v3 backend)

Tool

Description

senado_buscar_materias

Busca matérias por tipo, número, ano, palavra-chave, autor ou tramitação (via v3 /processo)

senado_obter_materia

Dados de uma matéria via secao enum: detalhe (situação/relator), tramitacao (histórico) ou textos (documentos)

Group C — Processes (5 tools)

Tool

Description

senado_search_processos

Busca processos legislativos (complementar à busca de matérias)

senado_obter_processo

Detalhes completos de um processo legislativo específico

senado_processo_detalhe

Aspecto de um processo via secao enum: emendas, relatorias ou prazos

senado_autores_atuais

Parlamentares autores de processos em tramitação, ordenados por produção

senado_tabelas_processo

12 tabelas de referência (siglas, assuntos, classes, tipos-*) via tabela enum

Group D — Votes (3 tools)

Tool

Description

senado_obter_votacao

Detalhes de uma votação com votos nominais. Aceita codigoVotacao (codigoSessao da sessão plenária).

senado_votos_materia

Votações de uma matéria (via v3 /votacao?codigoMateria), com votos nominais opcionais

senado_search_votacoes

Busca/listagem flexível de votações do plenário por dias, período, processo, matéria ou senador

Group E — Committees (7 tools)

Tool

Description

senado_listar_comissoes

Lista comissões (colegiados) ativas, filtráveis por tipo

senado_obter_comissao

Dados de uma comissão via secao enum: resumo (mesa/totais) ou membros (composição). Resolve sigla para código internamente.

senado_reunioes_comissao

Reuniões de uma comissão num período (lida com intervalos entre anos)

senado_agenda_comissoes

Agenda de reuniões de todas as comissões numa data

senado_reuniao_comissao

Detalhe completo de uma reunião: partes, itens, convidados, resultados, links pauta/ata

senado_requerimentos_cpi

Requerimentos protocolados numa CPI em atividade, paginados (upstream costuma vir vazio mesmo para CPIs ativas; retorno vazio traz aviso)

senado_distribuicao_materias

Estatísticas de carga por senador numa comissão: autoria ou relatoria

Group F — Plenary (7 tools)

Tool

Description

senado_agenda_plenario

Plenary schedule — by day, month or Congress (escopo dia/mes/cn)

senado_resultado_plenario

Session results: items deliberated, opinions, outcomes (SF/CN/month)

senado_orientacao_bancada

Party leadership voting instructions per vote, with tallies

senado_vetos

Presidential vetoes by year or tramitation status

senado_resultado_veto

Nominal veto vote results (by veto, vetoed bill or device)

senado_encontro_plenario

Legislative session detail, agenda items, results or summary

senado_tabelas_plenario

Session types, attendance types, legislatures list

Group G — e-Cidadania (9 tools)

Tool

Description

senado_ecidadania_listar_consultas

Consultas públicas (conjunto completo das abertas — matérias em tramitação) com votação sim/não; filtro status (padrão aberta)

senado_ecidadania_obter_consulta

Detalhe de uma consulta: votos, autor, relator, comentários

senado_ecidadania_consultas_analise

Analisa o conjunto completo de consultas abertas via modo (consenso/polarizada); status padrão aberta

senado_ecidadania_listar_ideias

Ideias legislativas de cidadãos; ranking das mais apoiadas via ordenarPor: apoios

senado_ecidadania_obter_ideia

Detalhe de uma ideia: texto, apoios, status de conversão em projeto

senado_ecidadania_listar_eventos

Eventos interativos (audiências, sabatinas, lives); ranking dos mais comentados via ordenarPor

senado_ecidadania_obter_evento

Detalhe de um evento: pauta, convidados, link de vídeo

senado_ecidadania_sugerir_tema_enquete

Sugere temas para enquete mensal a partir de critérios configuráveis

senado_ecidadania_consultas_votos

Acervo histórico de votos das consultas com quebra por UF (CSV Arquimedes); ranking por total/sim/nao, filtro uf/materia

Group I — Speeches (3 tools)

Tool

Description

senado_discursos_senador

Pronunciamentos de um senador via tipo enum: discursos (próprios) ou apartes (intervenções)

senado_discursos_plenario

Todos os discursos em plenário num intervalo de datas

senado_discurso_texto

Texto integral de um pronunciamento/discurso específico

Group J — Blocs & Leadership (4 tools)

Tool

Description

senado_listar_blocos

Blocos parlamentares do Senado e seus partidos membros

senado_obter_bloco

Detalhes de um bloco parlamentar específico

senado_liderancas

Lideranças do Senado/Câmara/Congresso (líderes, vice-líderes) com o bloco/partido liderado, filtráveis

senado_mesa

Membros da Mesa Diretora via casa enum: senado (Mesa do SF) ou congresso (Mesa do CN)

Group K — Budget (1 tool)

Tool

Description

senado_orcamento_parlamentar

Emendas parlamentares ao orçamento via tipo enum: emendas (lotes por autor) ou oficios (indicação de destino — filtrável por ano da emenda, paginado, incluirEmendas opcional)

Group L — Federal Law (2 tools)

Tool

Description

senado_buscar_legislacao

Busca normas jurídicas federais por tipo, número, ano ou data (ao menos um obrigatório)

senado_obter_legislacao

Detalhes de uma norma jurídica federal específica

Group M — Committee Voting (1 tool)

Tool

Description

senado_votacao_comissao

Votações em comissões via por enum: comissao, senador ou materia; período opcional

Group N — Taquigrafia (2 tools)

Tool

Description

senado_notas_taquigraficas

Official transcripts of plenary sessions or committee meetings — summary mode with excerpts, full-text mode paginated in blocks, speaker filter

senado_videos_taquigrafia

Video/audio units per session or meeting, with speaker and media links

Group O — Senadores/Administrativo (2 tools)

Tool

Description

senado_ceaps

CEAPS parliamentary quota expenses by year — aggregated by senator, expense type, month or supplier, or itemized detail; estatisticas=true returns whole-set distribution stats (min/max/mean/median/percentiles) + top/bottom ranking, or a group ranking by total spend via agruparPor (senator/type/month/supplier) with topN; filters by senator/month/type/supplier

senado_senadores_admin

Dados administrativos dos senadores via tipo enum: auxilio-moradia, escritorios-apoio ou aposentados

Group P — Servidores / Gestão de Pessoas (4 tools)

Tool

Description

senado_servidores

Civil servants by status (active/effective/commissioned/inactive), filterable by name, unit, position

senado_remuneracoes_servidores

Monthly payroll — summary by payroll type or per-person composition with computed gross; estatisticas=true returns whole-payroll stats (min/max/mean/median/percentiles) + top/bottom ranking, with campo, consolidarPorServidor, agruparPor and topN

senado_horas_extras

Overtime payments by month with totals; estatisticas=true returns whole-set distribution stats (min/max/mean/median/percentiles) + top/bottom ranking, or a per-servant ranking by summed value via agruparPor (name/competência), with topN

senado_pessoal_tabelas

Tabelas de pessoal via tabela enum: quantitativos (pessoal, cargos-funcoes, previsao-aposentadoria, senadores) e listas (estagiarios, pensionistas, lotacoes, cargos)

Group Q — Contratações (6 tools)

Tool

Description

senado_contratos

Contracts filtered in-Worker over the full base (accent-insensitive): supplier, CNPJ, year, number, object, labor

senado_contratacao_detalhe

Items, payments, guarantees, amendments or activations of a contract/ata/empenho

senado_licitacoes

Biddings by number or object text

senado_terceirizados

Outsourced collaborators by name, company or unit

senado_empresas_contratadas

Companies contracting with the Senate (requires name/CNPJ filter)

senado_contratacoes_lista

Price-registration atas, commitment notes, young apprentices

Group R — Suprimento de Fundos (1 tool)

Tool

Description

senado_suprimento_fundos

Petty-cash advances by year: recipients, concession acts, commitments, movements, card transactions; estatisticas=true (tipo transacoes/empenhos/atos-concessao) returns whole-set distribution stats (min/max/mean/median/percentiles) + top/bottom ranking, or a ranking by summed value via agruparPor (e.g. supplier), with contextual campo and topN

Group S — Orçamento do Senado (1 tool)

Tool

Description

senado_execucao_orcamentaria

Budget execution since 2013 (allocation, committed/settled/paid) and own revenues since 2012 (forecast vs collected) — aggregated by year, action, expense group, source or revenue origin; estatisticas=true returns whole-set distribution stats (min/max/mean/median/percentiles) + top/bottom ranking, or a group ranking by summed campo via agruparPor, with campo (default paid / collected) and topN

Group T — Estrutura Organizacional (1 tool)

Reads a bundled snapshot of the Senate's organizational tree (crawled from the institutional portal down to serviço level by npm run ingest:estrutura), since the open-data API only publishes units down to Secretaria and never links a leaf unit to its parent. Units the portal lists only by name, without a page of their own (the CONLEG/CONORF núcleos), are captured as synthetic nodes from the page's indented listing. Congress-wide bodies where the servant registry records lotações (CMO, CPCMS, CMMC) come from a curated complement (src/estrutura/complemento-cn.ts, public source: congressonacional.leg.br) under a separate Congresso Nacional root (CN) — never under the Senate tree, so subordinadasA: "DGER" excludes them while subordinadasA: "CN" counts them. Servants recorded under the situational pseudo-units "Servidores Afastados/em Trânsito - SF" are reported separately as afastadosOuEmTransito by senado_servidores.

Tool

Description

senado_estrutura_organizacional

Organizational chart (organograma) resolved for a unidade (sigla like DGER or name): returns its caminho (ancestors) and every subordinate unit (subordinadas[] — secretarias, coordenações, serviços, núcleos — with nivel). Pairs with senado_servidores's subordinadasA filter, which counts/lists all servants under a whole directorate (a servant sits in a leaf serviço, so filtering lotacao by the parent sigla returns 0).

Group U — Deep Research (2 tools)

The OpenAI Deep Research contract: the only two tools without the senado_ prefix, because the names are fixed by the contract. Registered through the same shim as the others (read-only annotations, permissive outputSchema, per-tool telemetry) and served on /mcp only — the curated ChatGPT app profile does not include them. The index (senators in office + active committees, ~300 documents) is built on first use from the same two list endpoints the senado_listar_* tools read, and kept for 24 h.

Tool

Description

search

Ranks the query (natural language or keywords, pt/en, accent-insensitive) against senators in office and active committees; returns up to 10 { id, title, url }sen:<código> with the public profile URL, com:<código> with the public committee page. Provenance of both lists in structuredContent/_meta.

fetch

Returns the document for an id from search as { id, title, text, url, metadata }: the senator's biography and mandates (same read as senado_obter_senador) or the committee's summary and board (same read as senado_obter_comissao), as Markdown, with that read's provenance. Unknown id → error.

Total: 69 tools

Prompts (4)

Reusable pt-BR workflow templates (MCP prompts capability), defined in src/prompts.ts:

Prompt

Args

What it guides

senado_gastos_senador

senador, ano

Resolve o senador e agrega/detalha despesas CEAPS.

senado_tramitacao_materia

sigla, numero, ano

Obtém situação atual + histórico de tramitação da matéria.

senado_votos_senador

senador, periodo?

Lista os votos nominais do senador no período.

senado_panorama_ecidadania

Consolida consultas (consenso/polarização), ideias e eventos populares.

Resources (5)

Static context documents/tables (MCP resources capability), defined in src/resources.ts:

URI

Type

Content

senado://guia

markdown

Visão geral e qual ferramenta usar por objetivo.

senado://catalogo

markdown

As 69 ferramentas agrupadas por domínio.

senado://glossario

markdown

Siglas e termos do Senado (PEC, CEAPS, CCJ, RCN…).

senado://tabelas/tipos-materia

json

Tipos de proposição (sigla/nome/descrição).

senado://tabelas/ufs

json

As 27 unidades federativas.

Project Structure

src/
├── index.ts              # Worker entrypoint (fetch handler + scheduled/Cron handler)
├── server.ts             # McpServer factory (creates per-request instance)
├── auth.ts               # Optional Bearer token auth (constant-time compare)
├── metrics.ts            # In-memory counters served at /metrics
├── types.ts              # Env, cache categories, safeguard constants
├── cache/
│   ├── l0-memory.ts      # In-memory Map cache with TTL + LRU eviction
│   ├── l1-cache-api.ts   # Cloudflare Cache API wrapper (synthetic GET keys)
│   └── manager.ts        # Cache orchestrator (L0 → L1 → upstream)
├── throttle/
│   ├── token-bucket.ts   # Token bucket rate limiter (global + per-client)
│   └── upstream.ts       # Upstream fetch with concurrency limit, retry, timeout
├── scraper/
│   ├── ecidadania.ts     # Isolated e-Cidadania scraper (REST lists + regex HTML detail; buildConsultaResumo)
│   ├── pipeline.ts       # 2h Cron: targeted highlight metric splice (consultas/eventos/ideias); corpora owned by the off-Worker jobs
│   ├── anomaly.ts        # Run classification (anomalous run never overwrites current)
│   └── store.ts          # D1 reads (resolveList + per-entity staleness, lastGoodRunAt) + detail write-through
├── instrument.ts         # Per-tool call telemetry (in-memory + Analytics Engine)
├── utils/
│   ├── logger.ts         # Structured JSON logging
│   └── validation.ts     # toolResult, toolError, errorFrom, buildParams, ensureArray helpers
└── tools/
    ├── referencia.ts        # Group H — 1 reference/metadata tool
    ├── senadores.ts         # Group A — 5 senator tools
    ├── materias.ts          # Group B — 2 bill/matter tools (v3 backend)
    ├── processos.ts         # Group C — 5 process tools
    ├── votacoes.ts          # Group D — 3 vote tools
    ├── comissoes.ts         # Group E — 7 committee tools
    ├── plenario.ts          # Group F — 7 plenary tools
    ├── ecidadania.ts        # Group G — 8 e-Cidadania tools (read from D1; see scraper/)
    ├── discursos.ts         # Group I — 3 speech tools
    ├── composicao.ts        # Group J — 4 bloc/leadership tools
    ├── orcamento.ts         # Group K — 1 budget tool
    ├── legislacao.ts        # Group L — 2 federal law tools
    ├── votacao-comissao.ts  # Group M — 1 committee voting tool
    ├── taquigrafia.ts       # Group N — 2 stenographic record tools
    ├── senadores-admin.ts   # Group O — 2 admin senator tools (CEAPS, housing)
    ├── servidores.ts        # Group P — 4 personnel tools
    ├── contratacoes.ts      # Group Q — 6 procurement tools
    ├── supridos.ts          # Group R — 1 petty-cash tool
    ├── orcamento-senado.ts  # Group S — 1 budget execution tool
    └── estrutura.ts         # Group T — 1 org-structure tool (reads src/data/ snapshot via src/estrutura/)
scripts/
└── ingest-ecidadania/    # Off-Worker full-corpus consultas ingestion (run via `npm run ingest:ecidadania`)
    ├── index.ts          # Orchestrator: crawl → status (/processo) → normalize → guards → out.sql
    ├── listing.ts        # Pure listing parser (parseConsultaListingPage, findLastPage)
    ├── status.ts         # tramitando=S set from /processo → aberta/encerrada (deriveStatus)
    ├── restatus.ts       # Linger fix: re-status stored rows by /processo membership (close zombies)
    ├── http.ts           # Polite fetch (retry/backoff) for the unattended crawl
    ├── d1.ts             # D1 pre-reads (existing meta, payloads, last good rows) via wrangler
    ├── verify.ts         # consultas_votos on-demand integrity-check verdict (verifyAcervoIntegrity)
    └── sql.ts            # out.sql generation (mirrors SQL.upsert/SQL.history; reuses SyncRecord)
.github/workflows/        # ingest-ecidadania.yml (daily D1 corpus load), verify-consultas-votos.yml
                          # (weekly frozen-acervo integrity check), publish-mcp.yml (registry),
                          # usage-report.yml (monthly Analytics report), deprecate-registry.yml
                          # (all pinned to current Node 24 action majors — see each YAML for exact versions)
migrations/               # D1 schema (0001 tables, 0002 indexes, 0003 comment level + detail cursor) for the e-Cidadania pipeline
tests/                    # Vitest unit tests mirroring src/ (parsers, cache, throttle, auth, scraper,
                          # pipeline/anomaly/store, listing/sql/highlights, plus e-Cidadania contract tests)

Environment Variables

Variable

Required

Default

Description

SENADO_BASE_URL

No

https://legis.senado.leg.br/dadosabertos

Legislative API base URL

SENADO_ADM_BASE_URL

No

https://adm.senado.gov.br/adm-dadosabertos

Administrative API base URL

ALLOWED_ORIGIN

No

*

CORS allowed origin

API_KEY

No (secret)

When set, requires Authorization: Bearer <key> on all requests except /health, /metrics, and CORS preflight

CACHE_KV

Yes (binding)

KV namespace for L2 cache

ECIDADANIA_DB

Yes (binding)

D1 database for the e-Cidadania pipeline (list persistence + history)

ECIDADANIA_CORPUS_STALE_MAX_MIN

No

14400

Staleness window (minutes, ~10d) for the off-Worker full corpora (all e-Cidadania entities) — served flagged, never collapsed to highlights

ECIDADANIA_CORPUS_MIN_PCT

No

80

Catastrophic floor for the off-Worker corpus jobs: a complete crawl/parse below this % of the last good corpus is rejected

CLOUDFLARE_API_TOKEN

No (secret)

GitHub Actions secret (D1 edit scope) for the corpus ingestion / integrity-check jobs; not used by the Worker

CLOUDFLARE_ACCOUNT_ID

No (Actions var)

GitHub Actions repo variable so wrangler skips /memberships account auto-discovery (a D1-scoped token can't read it); required alongside CLOUDFLARE_API_TOKEN in the ingestion job

SENADO_ANALYTICS

No (binding)

Analytics Engine dataset for per-tool call telemetry

Connecting MCP Clients

This is a remote server (Streamable HTTP, no install, open access) — point any MCP client at https://senado.sidneybissoli.com/mcp. Besides 69 tools, it exposes prompts (ready-made pt-BR workflows: senado_gastos_senador, senado_tramitacao_materia, senado_votos_senador, senado_panorama_ecidadania) and resources (senado://guia, senado://catalogo, senado://glossario, senado://tabelas/tipos-materia, senado://tabelas/ufs).

One-click (LobeHub)

Install from the LobeHub marketplace — open the server page and click Install (it pre-fills the remote endpoint, no config needed).

Claude Desktop / Claude Code

Add to your MCP configuration:

{
  "mcpServers": {
    "senado-br": {
      "url": "https://senado.sidneybissoli.com/mcp"
    }
  }
}

For command-based clients (or any client without native remote support), use the mcp-remote bridge:

{
  "mcpServers": {
    "senado-br": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://senado.sidneybissoli.com/mcp"]
    }
  }
}

MCP Inspector

npx @modelcontextprotocol/inspector https://senado.sidneybissoli.com/mcp

License

MIT

Credits

Icon: "Amanhecer no Congresso Nacional" — photograph of the Brazilian National Congress, used under a Creative Commons license. (If you are the author, open an issue so we can add full attribution / the license link.)

Available Tools

66 tools
senado_agenda_comissoesA
Read-onlyIdempotent
Inspect

Obtém a agenda de reuniões de todas as comissões numa data (data YYYYMMDD; padrão: hoje), com filtro opcional siglaComissao. Retorna { data, siglaComissao, count, reunioes }, cada reunião com codigo, comissao (sigla, nome), descricao, data, hora, local, tipo e situacao. Para o histórico de uma única comissão por período use senado_reunioes_comissao; para detalhes de uma reunião use senado_reuniao_comissao com o codigo.

ParametersJSON Schema
NameRequiredDescriptionDefault
dataNoData específica (YYYYMMDD)
siglaComissaoNoFiltrar por comissão específica

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the safety profile is clear. The description adds valuable behavioral context: the exact return structure (campos: data, siglaComissao, count, reunioes with nested fields) and the scope (date-based with optional committee filter). This goes beyond annotations and helps the agent understand what to expect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single compact paragraph that front-loads the core purpose and parameters, then lists the return format, and finally gives sibling guidance. Every sentence adds new value; there is no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has only two optional parameters, a provided output schema, and rich annotations, the description covers all necessary context: what the tool does, how to use it (defaults, filters), what it returns, and how it relates to similar tools. No gaps remain for the agent to infer.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already describes each parameter. However, the description adds meaning: it notes the default value for 'data' (padrão: hoje) and that 'siglaComissao' is optional. This extra context, especially the default, helps the agent know it can be omitted for today's agenda.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it obtains the agenda of all committee meetings on a date, with an optional committee filter. It lists the return fields and distinguishes itself from siblings (senado_reunioes_comissao and senado_reuniao_comissao), leaving no ambiguity about its function.

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

Usage Guidelines5/5

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

The description explicitly mentions the default date (today) and the optional filter. It provides clear guidance on when to use alternative tools: 'Para o histórico de uma única comissão por período use senado_reunioes_comissao; para detalhes de uma reunião use senado_reuniao_comissao com o codigo'. This covers both when to use this tool and when not to.

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

senado_agenda_plenarioA
Read-onlyIdempotent
Inspect

Obtém a agenda de sessões de plenário (Senado ou Congresso Nacional), por dia ou mês, com a pauta de matérias a votar. Retorna { data, escopo, count, sessoes }, onde cada sessão traz codigo, data, hora, tipo, situacao e pauta (matéria, ementa, relator). Use escopo dia/mes/cn; sem data assume hoje. Para o resultado já apreciado use senado_resultado_plenario; detalhes de uma sessão via senado_encontro_plenario.

ParametersJSON Schema
NameRequiredDescriptionDefault
dataNoData específica (YYYYMMDD; padrão: hoje)
escopoNodia = SF+CN no dia; mes = mês inteiro; cn = plenário do Congressodia
dataFimNoData fim para período do CN (YYYYMMDD; apenas escopo=cn)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is clear. The description adds value by detailing the return structure (data, escopo, count, sessoes) and session fields (codigo, data, hora, tipo, situacao, pauta), which goes beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is one dense paragraph that front-loads the purpose, then returns structure, then usage, then related tools. Every sentence earns its place with no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters, no required fields, and an output schema, the description fully explains the return structure, parameter behavior, and related tools. It is complete for effective use without needing additional context.

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

Parameters4/5

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

Schema coverage is 100%, providing baseline of 3. The description adds meaning by explaining the escopo enum values (dia, mes, cn), default for data (today), and that dataFim is only for escopo=cn. This contextualizes the schema beyond its minimal descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool obtains the agenda of plenary sessions for Senate or National Congress, with specific fields returned. It distinguishes itself from siblings like senado_encontro_plenario and senado_resultado_plenario by mentioning when to use those instead.

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

Usage Guidelines5/5

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

Explicitly tells when to use this tool versus alternatives (e.g., 'Para o resultado já apreciado use senado_resultado_plenario; detalhes de uma sessão via senado_encontro_plenario'). Also explains parameter defaults and scope behavior ('Use escopo dia/mes/cn; sem data assume hoje').

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

senado_autores_atuaisA
Read-onlyIdempotent
Inspect

Lista parlamentares autores de processos em tramitação, ordenados por produção (maior número de matérias primeiro). Retorna { count, total, autores }, cada autor com codigo, nome, tratamento, uf e quantidadeMaterias. Filtros opcionais uf e nome (busca parcial sem acento); limite padrão 50 (máx. 1000). Use o codigo em senado_obter_senador ou senado_search_processos (codigoParlamentarAutor).

ParametersJSON Schema
NameRequiredDescriptionDefault
ufNoFiltrar por UF (ex: SP)
nomeNoFiltrar por nome (busca parcial)
limiteNoMáximo de resultados (padrão: 50)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint, etc.), the description discloses the return structure, ordering, filters behavior (partial search without accents), and defaults/limits. It also explains that only authors with processes in tramitação are included. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: three sentences that front-load the purpose and ordering, then detail return structure and parameters. No extraneous information, every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that lists authors with filters and ordering, the description covers all necessary aspects: what it returns, filtering, ordering, limit constraints, and cross-reference to other tools. It is complete given the presence of an output schema (implied by the described return structure).

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

Parameters4/5

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

Schema description coverage is 100% (each parameter documented), but the description adds value by explaining that 'nome' is a partial search without accents, 'uf' is a 2-letter code, and 'limite' has a default of 50 and max 1000. This goes beyond the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists parliamentary authors of pending processes, ordered by production (most matters first). It distinguishes itself from siblings like senado_listar_senadores (which lists all senators) by specifying it only includes authors with active processes and providing a specific ordering.

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

Usage Guidelines4/5

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

The description provides usage guidance by stating the output 'codigo' can be used in 'senado_obter_senador' or 'senado_search_processos'. It does not explicitly mention when not to use it but the context is clear. A more explicit differentiation from senado_listar_senadores would improve it.

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

senado_buscar_legislacaoA
Read-onlyIdempotent
Inspect

Busca normas jurídicas federais (leis, decretos, etc.) por tipo, numero, ano ou data. Retorna { count, normas }, cada norma com codigo, tipo, numero, ano, data, ementa, situacao e url do texto. É obrigatório informar ao menos um parâmetro, senão retorna erro. Use o codigo retornado em senado_obter_legislacao para o detalhe; consulte os tipos válidos em senado_tabelas_referencia (tabela: "tipos-norma").

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno da norma
dataNoData da norma (YYYYMMDD)
tipoNoTipo da norma (ex: LEI, DEC, LCP, EMC)
numeroNoNúmero da norma

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false. The description adds behavioral context: returns structure { count, normas } with specific fields, and that it returns error if no parameters. No contradiction with annotations.

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?

Description is concise with 4 sentences, each adding value: main function, output, constraint, and links to related tools. No fluff, but could be slightly more streamlined.

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?

Given output schema exists, the description covers the return structure, required parameters, and related tools. It does not mention pagination or sorting, but for a query tool this is acceptable. Completeness is good.

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% with each parameter having a description. The description repeats the parameter names and adds the constraint that at least one is required, but does not add deeper semantic meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for federal legal norms by tipo, numero, ano, or data. It specifies the resource (normas jurídicas) and distinguishes from siblings by mentioning use of codigo for senado_obter_legislacao and valid types in senado_tabelas_referencia.

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

Usage Guidelines4/5

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

The description explicitly requires at least one parameter, else returns error. It provides context on when to use this tool vs. related tools, but does not explicitly state when not to use it. The reference to sibling tools for detail and reference adds guidance.

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

senado_buscar_materiasA
Read-onlyIdempotent
Inspect

Busca matérias legislativas por tipo (PEC, PL, PLP, MPV), número, ano, palavras-chave, autor, período de apresentação ou situação de tramitação; informe ao menos um critério. Para pedidos como 'matérias recentes sobre X', use palavraChave, ano ou dataInicioApresentacao/dataFimApresentacao, ordenarPor: 'dataApresentacao', ordem: 'desc' e limite baixo (ex: 10); não é necessário chamar detalhes para listar resultados. Retorna { count, total, materias[] }, cada item com codigo (codigoMateria), sigla, numero, ano, ementa, autor, situacao, dataApresentacao, url e tramitando. Use codigo em senado_obter_materia apenas quando o usuário pedir detalhe/tramitação/textos. limite padrão 100 (máx. 500); ao truncar inclui aviso.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno da matéria
ordemNoDireção da ordenação quando ordenarPor=dataApresentacaodesc
siglaNoTipo: PEC, PL, PLP, MPV, PDL, PRS, etc.
limiteNoMáximo de resultados (padrão: 100)
numeroNoNúmero da matéria
autorNomeNoNome do autor
ordenarPorNoOrdenação local; padrão dataApresentacao para favorecer pedidos recentesdataApresentacao
tramitandoNoApenas em tramitação
palavraChaveNoTermo livre buscado nas palavras-chave do processo
dataFimApresentacaoNoData final de apresentação (YYYYMMDD ou YYYY-MM-DD)
dataInicioApresentacaoNoData inicial de apresentação (YYYYMMDD ou YYYY-MM-DD)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Discloses read-only, idempotent, non-destructive behavior consistent with annotations. Adds details on return structure, pagination (default 100, max 500, truncation warning), default ordering, and the need for at least one criterion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single well-structured paragraph that front-loads core purpose, then provides examples, return format, sibling link, and limit details. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (11 optional parameters, output schema, many siblings), the description covers all necessary aspects: usage, parameter guidance, return structure, pagination, and cross-reference to sibling tool. No gaps.

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

Parameters5/5

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

Schema coverage is 100%, but description adds meaningful context beyond schema: explains when to use each parameter (e.g., for recent matters), notes default order, and provides usage patterns that integrate multiple parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Describes exactly what the tool does: search legislative matters by type, number, year, keywords, author, date range, or status, requiring at least one criterion. Clearly differentiates from sibling senado_obter_materia by specifying when to use each.

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

Usage Guidelines5/5

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

Provides explicit when-to-use examples like 'matérias recentes sobre X' with suggested parameters, and when-not-to-use by stating not to call details just to list results. Clearly directs to sibling for detailed lookup.

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

senado_ceapsA
Read-onlyIdempotent
Inspect

Despesas da Cota para Exercício da Atividade Parlamentar (CEAPS) dos senadores em um ano. Retorna { ano, modo, totalDespesas, valorTotal, ... }: nos modos agregados (por-senador/por-tipo/por-mes/por-fornecedor, padrão por-senador) traz agregado[] ordenado por total desc com chave, total e despesas (contagem); em modo='detalhe' traz despesas[] (mês, data, senador, tipoDespesa, fornecedor, cnpjCpf, valor). Filtre por mes, codSenador, nomeSenador, tipoDespesa ou fornecedor (busca parcial); limite cap 100 com aviso ao truncar. Obtenha codSenador via senado_listar_senadores.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoYesAno das despesas
mesNoFiltrar por mês
modoNoAgregação ou detalhe (padrão: por-senador)por-senador
limiteNoMáximo de linhas no resultado (padrão: 100)
codSenadorNoFiltrar por código do senador
fornecedorNoFiltrar por fornecedor (busca parcial)
nomeSenadorNoFiltrar por nome do senador (busca parcial)
tipoDespesaNoFiltrar por tipo de despesa (busca parcial)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Discloses behavioral details beyond annotations: aggregated vs detail mode, ordering, truncation with warning, and partial search filters. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise yet comprehensive. Front-loaded with purpose, then detailed return structure, filtering options, and a practical hint. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Fully covers the tool's complexity: all 8 parameters, return formats, filtering, truncation, and cross-reference to another tool. No gaps given the existing schema and annotations.

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

Parameters5/5

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

Adds meaning beyond the schema: explains default mode, limits, return shapes for different modes, and that filters support partial search. Schema coverage is 100% but description still enriches understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns CEAPS expenses for senators in a given year. It specifies the return structure and differentiates from other senado tools by focusing on parliamentary expense data.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use this tool, including hints to obtain codSenador via senado_listar_senadores and mentions the default aggregation mode.

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

senado_contratacao_detalheA
Read-onlyIdempotent
Inspect

Detalha uma seção específica de uma contratação. O tipo indica a natureza do registro: contratos (contrato firmado), atas_registro_preco (ata de registro de preço — compromisso de preços para compras futuras) ou notas_empenho (nota de empenho — reserva orçamentária do gasto). A secao escolhe o aspecto: itens, pagamentos, garantias, aditivos (só contratos) ou acionamentos (só atas_registro_preco). Retorna { id, tipo, secao, count, total, itens } com os registros brutos da seção (campos conforme a API administrativa), limitados a limite (padrão 100, máx 500); seção sem registros retorna count 0 e itens vazio. Obtenha o id antes via senado_contratos ou senado_contratacoes_lista; combinações de seção/tipo inválidas retornam erro.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesID da contratação (campo 'id' das listas de contratos/atas/empenhos)
tipoNoTipo da contrataçãocontratos
secaoYesaditivos: apenas contratos; acionamentos: apenas atas
limiteNoMáximo de itens (padrão: 100)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds behavioral details: it explains the return format, limits (default 100, max 500), and error conditions for invalid type-section combinations. No contradiction with annotations.

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 description is appropriately sized, with each sentence serving a purpose. It is well-structured: purpose first, then parameter details, return format, usage note, and error condition. No redundant or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (multiple parameters, type-section combinations, pagination via limite, output schema), the description covers all essential aspects: it explains the purpose, parameter meanings, return structure, limits, prerequisites, and error handling. The output schema exists but the description provides enough context on the return fields.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaning beyond the schema by explaining the semantics of each parameter: id is from lists, tipo enumerations with descriptions, secao with restrictions (aditivos only for contratos, acionamentos only for atas), and limite with default and max. This significantly aids understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool details a specific section of a contracting. It uses specific verbs and resource names, and distinguishes itself from sibling tools by noting that the id should be obtained from 'senado_contratos' or 'senado_contratacoes_lista'.

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

Usage Guidelines4/5

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

The description provides clear context on when to use the tool (to get details of a contracting section) and prerequisites (obtain id from list tools). It does not explicitly state when not to use, but the context is sufficient. No explicit alternatives are given, but the prerequisite hints at the workflow.

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

senado_contratacoes_listaA
Read-onlyIdempotent
Inspect

Lista, conforme tipo, atas de registro de preço, notas de empenho ou menores aprendizes do Senado, com filtro textual opcional aplicado no Worker sobre todos os campos. Retorna { tipo, count, total, registros }; para atas_registro_preco/notas_empenho cada registro segue o formato de contrato (id, numero, objeto, empresa, subEspecie, vigencia...), enquanto menores_aprendizes vêm como registros brutos da API (campos não normalizados). Limitado a limite (padrão 50, máx 500), com aviso ao truncar; tipo sem registros retorna lista vazia. Para aprofundar uma ata/empenho, use o id em senado_contratacao_detalhe.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoYesQual lista consultar
filtroNoFiltro textual (empresa, objeto, etc.)
limiteNoMáximo de resultados (padrão: 50)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already confirm readOnly, idempotent, not destructive. Description adds details: filter applied via Worker, return structure differences between tipos, limit truncation with aviso, and empty list behavior. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose, then details. No extraneous information. Efficient and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all key aspects: types, filtering, limit, empty lists, return structure, and cross-reference to sibling tool. Output schema exists but description still explains shape differences, making it complete.

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

Parameters4/5

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

Schema coverage is 100% with good parameter descriptions. Description adds extra context: filter applied to all fields via Worker, default limit, and truncated results. This enhances understanding beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it lists three types of contract records (atas de registro de preço, notas de empenho, menores aprendizes) from Senado, with optional text filter. It distinguishes from sibling senado_contratacao_detalhe, which is for deeper detail.

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

Usage Guidelines5/5

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

Explicitly says when to use (listing records) and when not to (for deepening a specific record, use senado_contratacao_detalhe). Also mentions behavior for empty lists, providing clear usage context.

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

senado_contratosA
Read-onlyIdempotent
Inspect

Busca contratos administrativos do Senado por fornecedor, CNPJ, ano, número, objeto ou mão de obra (filtros aplicados pela API upstream). Retorna { count, total, contratos }, onde cada item traz id, numero, objeto, empresa {nome, cnpj}, subEspecie, dataAssinatura, vigencia e unidadeGestora. Limitado a limite itens (padrão 50, máx 500), com aviso quando há truncamento. Use o id retornado em senado_contratacao_detalhe para itens, pagamentos, garantias ou aditivos.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno do contrato
cnpjNoCNPJ/CPF exato do fornecedor
limiteNoMáximo de resultados (padrão: 50)
numeroNoNúmero do contrato (busca parcial)
objetoNoTexto no objeto do contrato
maoDeObraNoApenas contratos com mão de obra residente
fornecedorNoNome do fornecedor (busca parcial)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive. The description adds value by specifying the limit behavior (default 50, max 500, truncation with `aviso`) and the structure of returned items (id, numero, objeto, empresa, etc.). No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise: three sentences cover purpose, return structure, and usage guidance. No filler. Front-loaded with the most important information. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers purpose, filters, return structure (top-level and item fields), limit behavior, and how to use the result for further detail. Output schema exists, so full return value documentation is not required. The description is complete for a search tool of this complexity.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds context by listing the filterable fields and noting that filters are applied upstream. It also explains the `limite` parameter with default and max. This provides additional meaning beyond the individual parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states 'Busca contratos administrativos do Senado por fornecedor, CNPJ, ano, número, objeto ou mão de obra', clearly identifying the tool's verb (search) and resource (administrative contracts). It distinguishes from sibling tools by directing the user to use the returned `id` with `senado_contratacao_detalhe` for more details.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use the tool (to search contracts with various filters) and when to use alternative (for detailed contract info, use `senado_contratacao_detalhe`). Also explains the limit parameter behavior with default and maximum, and the truncation warning via `aviso`.

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

senado_discursos_plenarioA
Read-onlyIdempotent
Inspect

Lista todos os discursos realizados em plenário num período de datas (dataInicio/dataFim obrigatórias, formato YYYYMMDD). Retorna { periodo, count, discursos }, cada item com codigo, data, casa, tipoUsoPalavra, resumo, url e nomeParlamentar. Para discursos de um parlamentar específico use senado_discursos_senador; obtenha o texto integral com senado_discurso_texto.

ParametersJSON Schema
NameRequiredDescriptionDefault
dataFimYesData fim (YYYYMMDD)
dataInicioYesData início (YYYYMMDD)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive hints. The description adds value by specifying the exact return structure with field names.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no extraneous content. The purpose is front-loaded, and the structure is clear and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, the description covers all necessary aspects: input parameters, output structure, and sibling references. Output schema exists, so description complements it well.

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 100% with descriptions and patterns. The description reinforces that both parameters are mandatory and provides the date format YYYYMMDD, but does not add substantial new meaning beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Lista todos os discursos realizados em plenário num período de datas' with specific verb, resource, and scope. It also distinguishes from sibling tools by explicitly naming alternatives for filtering by senator or getting full text.

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

Usage Guidelines5/5

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

Provides explicit when-to-use (listing all speeches in date range) and when-not-to-use (for specific parliamentarian use `senado_discursos_senador`). Naming alternatives gives clear guidance.

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

senado_discursos_senadorA
Read-onlyIdempotent
Inspect

Lista pronunciamentos de um senador, filtráveis por período e casa legislativa. O parâmetro tipo (padrão discursos) escolhe entre discursos (pronunciamentos próprios) e apartes (intervenções em discursos de outros parlamentares). Retorna { codigoSenador, tipo, count, discursos }, cada item com codigo, data, casa, tipoUsoPalavra, resumo, indexacao, url e nomeParlamentar (sem texto integral; para tipo: apartes os itens são apartes, com a mesma estrutura). Obtenha o codigoSenador via senado_listar_senadores; use o codigo do pronunciamento em senado_discurso_texto para o texto completo.

ParametersJSON Schema
NameRequiredDescriptionDefault
casaNoCasa legislativa (SF=Senado, CN=Congresso)
tipoNodiscursos (próprios) ou apartes (intervenções em discursos de outros)discursos
dataFimNoData fim (YYYYMMDD)
dataInicioNoData início (YYYYMMDD)
codigoSenadorYesCódigo único do senador

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint false. The description adds value by explaining the return structure (codigoSenador, tipo, count, discursos with fields), stating that no full text is provided, and clarifying behavior for different tipo values (discursos vs apartes). This goes beyond annotations.

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?

Description is a single coherent paragraph, front-loaded with purpose. Every sentence adds value: purpose, parameter explanation, output format, cross-tool references. Not overly long, but packed with information. Could be slightly more structured, but very efficient.

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?

Given the complexity (5 params, output schema described), the description is largely complete. It covers purpose, parameters, output, and cross-tool usage. Does not mention error handling or pagination, but for a list tool with annotations, it is adequate.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. Description adds meaning by explaining the tipo parameter choices and default, and clarifying that dataInicio/dataFim are for period filtering. It also mentions casa filter in the purpose sentence. Adds value beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists pronouncements of a senator, with filters. It distinguishes from siblings by referencing senado_listar_senadores for codigoSenador and senado_discurso_texto for full text, implying this tool is for listing per-senator speeches.

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

Usage Guidelines4/5

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

Provides clear context: use when you need pronouncements of a specific senator, filterable by period and house. Mentions alternative for full text (senado_discurso_texto) and prerequisite (senado_listar_senadores). Does not explicitly state when not to use, but the context is strong.

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

senado_discurso_textoA
Read-onlyIdempotent
Inspect

Obtém o texto integral de um pronunciamento/discurso específico. Retorna { codigoPronunciamento, texto }, onde texto é o conteúdo completo do discurso (string). Obtenha o codigoPronunciamento primeiro via senado_discursos_senador ou senado_discursos_plenario (campo codigo).

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoPronunciamentoYesCódigo do pronunciamento

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint as false. Description adds that it returns text, but does not elaborate on other behavioral aspects (e.g., rate limits). With annotations covering safety, a 3 is appropriate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core purpose and return type, followed by prerequisite guidance. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite tool simplicity, the description covers purpose, prerequisite steps, return format, and parameter source. Annotations and output schema cover the rest. No gaps.

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% and the parameter description ('Código do pronunciamento') is clear. The description adds context on where to get the parameter value, but does not add semantic detail beyond the schema. Baseline 3 is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it retrieves the full text of a specific speech, explicitly distinguishes from sibling tools that list speeches, and specifies the return structure.

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

Usage Guidelines4/5

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

Explicitly instructs to obtain the codigoPronunciamento first via sibling tools (senado_discursos_senador or senado_discursos_plenario). While it doesn't state when not to use, the guidance is clear and sufficient for this retrieval tool.

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

senado_distribuicao_materiasA
Read-onlyIdempotent
Inspect

Estatísticas de distribuição de matérias numa comissão (pela siglaComissao), por tipo: autoria (matérias por autor; padrão) ou relatoria (matérias relatadas); codigoParlamentar filtra apenas em autoria. Retorna { siglaComissao, tipo, count, parlamentares } ordenado por quantidade desc, cada item com codigo, nome, partido, uf e quantidade. Útil para medir carga de trabalho legislativo; obtenha a sigla via senado_listar_comissoes.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoNoautoria = matérias de autoria por parlamentar (padrão); relatoria = matérias relatadasautoria
siglaComissaoYesSigla da comissão (ex: CCJ, CAE)
codigoParlamentarNoFiltrar por parlamentar (apenas tipo=autoria)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, non-destructive. Description adds return structure, ordering, and constraints (codigoParlamentar only works with autoria). No contradiction.

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?

Description is front-loaded with purpose and return shape, medium length, no redundant phrasing. Could be slightly more concise but overall well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool is simple retrieval with clear parameters and output schema. Description covers all necessary behavioral aspects, return format, and usage context. Fully complete for an info tool.

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 100%; description adds context (e.g., codigoParlamentar only for autoria) but does not significantly extend schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it provides statistics on distribution of matters by committee, with type and optional filter. It distinguishes from sibling tools by mentioning the prerequisite tool senado_listar_comissoes.

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

Usage Guidelines4/5

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

Explicitly states usefulness for measuring legislative workload and that committee sigla should be obtained via senado_listar_comissoes. Lacks explicit when-not-to-use, but context is clear.

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

senado_ecidadania_consultas_analiseA
Read-onlyIdempotent
Inspect

Analisa o conjunto completo de consultas públicas abertas (matérias em tramitação) do e-Cidadania por grau de concordância cidadã, conforme modo: consenso → consultas com alta concentração de votos numa direção, ordenadas da maior para a menor concentração; usa percentualMinimo (padrão 85%). polarizada → consultas com votação equilibrada (~50/50), ordenadas da menor para a maior diferença sim/não; usa margemPolarizacao (padrão 15 pontos). Analisa por padrão consultas aberta (opinião pública atual). Quando a matéria sai de tramitação a consulta passa a encerrada, então status: "encerrada"/"todas" cobrem o conjunto que foi encerrado desde a ingestão (cresce com o tempo); fechadas antes da 1ª carga não são capturadas. Todos os modos aceitam minimoVotos (padrão 1000) e limite (padrão 10). Retorna { modo, criterio, count, consultas }. Para o detalhe de uma consulta use senado_ecidadania_obter_consulta.

ParametersJSON Schema
NameRequiredDescriptionDefault
modoNoconsenso (alta concordância) ou polarizada (~50/50)consenso
limiteNoNúmero máximo de resultados
statusNoRecorte do conjunto (padrão: aberta = opinião atual). encerrada cobre consultas que saíram de tramitação desde a ingestão (cresce com o tempo); fechadas antes da 1ª carga não são capturadas.aberta
minimoVotosNoMínimo de votos para considerar
percentualMinimoNoModo consenso: percentual mínimo numa direção
margemPolarizacaoNoModo polarizada: considera polarizado se diferença ≤ este percentual

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior5/5

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

Annotations indicate readOnlyHint=true, openWorldHint=true, idempotentHint=true. The description adds significant behavioral context: explains modes, status behavior (including the limitation on encerrada), ordering criteria, default values, and return format. No contradictions.

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 description is well-structured with clear sentences and front-loaded purpose. It is slightly verbose but each sentence adds value. Could be slightly more concise without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (6 parameters, modes, status nuances, defaults, limitations) and presence of output schema, the description covers all necessary aspects: modes, ordering, status, defaults, limitation, return format, and sibling tool reference. Complete for an analysis tool.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3. The description adds semantic detail beyond schema, e.g., explaining how percentualMinimo and margemPolarizacao work in each mode, and the meaning of the return object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool analyzes public consultations by agreement degree (consenso or polarizada), differentiating from sibling tools like senado_ecidadania_obter_consulta. It specifies the verb 'analisa' and the resource 'consultas públicas abertas (matérias em tramitação)'.

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

Usage Guidelines4/5

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

The description explains when to use each mode, the meaning of status options (aberta, encerrada, todas), and mentions the sibling tool for detail. It provides defaults and limitations (e.g., closed consultations before first load not captured), but lacks explicit when-not-to-use guidance.

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

senado_ecidadania_consultas_votosA
Read-onlyIdempotent
Inspect

Acervo histórico de votos das consultas públicas do e-Cidadania, com quebra por UF (fonte: CSV Arquimedes; ~15 mil matérias, atualizado semanalmente). Diferente de senado_ecidadania_listar_consultas (consultas em tramitação): aqui o conjunto é o arquivo de matérias já consultadas — status vem como Descontinuado no arquivo de origem, por isso é tratado como acervo, não como opinião atual. Retorna { count, referencePeriod, consultas }, cada item com id, materia, ementa, autoria, votosSim/votosNao/totalVotos, votosPorUf ({ UF: { sim, nao } }) e url. Use ordenarPor (total/sim/nao, padrão total) e ordem para ranking; uf para recortar e ranquear por aquele estado (só matérias com votos na UF, e cada item ganha recorteUf); materia para filtrar por código (numérico) ou trecho do nome/ementa; limite (padrão 20).

ParametersJSON Schema
NameRequiredDescriptionDefault
ufNoSigla da UF (ex.: SP) — filtra e ranqueia por votos daquele estado
ordemNoOrdem (padrão desc)desc
limiteNoNúmero máximo de resultados
materiaNoFiltro por código da matéria (numérico) ou trecho do nome/ementa
ordenarPorNoMétrica do ranking (padrão: total de votos)total

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. The description adds that data is updated weekly, treats status as historical, and returns specific structure (count, referencePeriod, consultas). No contradictions.

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?

Description is well-structured with bold keywords, uses bullet-like paragraphs, and is concise given the complexity. Could be slightly shorter but still efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (5 params, output schema present), the description fully covers purpose, usage, parameters, return structure, and behavioral traits. Output schema exists, so return value details are not needed in description.

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

Parameters4/5

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

All 5 parameters have descriptions in the input schema (100% coverage). The description adds explanatory context about 'ranquear por aquele estado' for 'uf', 'ranking' for 'ordenarPor'/'ordem', and clarifies 'materia' filter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly defines the tool as an archive of historical votes with breakdown by UF, and explicitly distinguishes it from the sibling 'senado_ecidadania_listar_consultas' which deals with current consultations.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use this tool (historical archive) vs. the sibling, explains the meaning of the 'status' field, and elaborates on parameter usage like 'uf' for filtering and ranking.

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

senado_ecidadania_listar_consultasA
Read-onlyIdempotent
Inspect

Lista consultas públicas do e-Cidadania (conjunto completo das abertas — toda matéria em tramitação, ~7,7 mil), em que cidadãos votam sim/não. Retorna { count, consultas }, cada consulta com id, materia, ementa, votosSim/votosNao/totalVotos, percentualSim/percentualNao, status e url. Toda consulta entra como aberta; quando a matéria sai de tramitação ela passa a encerrada (o conjunto encerrada/todas cresce com o tempo). Consultas encerradas antes da 1ª ingestão não são capturadas. Aceita limite (padrão 20). Para o detalhe de uma consulta chame senado_ecidadania_obter_consulta com o id; para recortes analíticos (consenso/polarização) use senado_ecidadania_consultas_analise.

ParametersJSON Schema
NameRequiredDescriptionDefault
limiteNoNúmero máximo de resultados
paginaNoPágina de resultados
statusNoFiltrar por status (padrão: aberta). encerrada lista consultas cuja matéria saiu de tramitação desde a ingestão (cresce com o tempo); fechadas antes da 1ª carga não são capturadas.aberta

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, destructiveHint. Description adds behavioral context: return format, status transitions, limitation that encerradas before first ingestion are not captured. No contradiction with annotations.

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?

Single paragraph packed with information, every sentence adds value. Could be slightly more structured but still appropriately sized and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (3 parameters, output schema present, many sibling tools), the description is complete. It explains return format, parameter meanings, limitations, and links to other tools. Output schema covers return fields.

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

Parameters4/5

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

Schema coverage is 100% so baseline 3. Description adds meaning beyond schema: explains default status 'aberta', describes encerrada/todas, and notes the limitation about encerradas before first ingestion. Adds context about status lifecycle.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the resource ('consultas públicas do e-Cidadania') and action ('Lista'), and distinguishes from sibling tools by mentioning alternatives for detail (obter_consulta) and analysis (consultas_analise).

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

Usage Guidelines5/5

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

Explicitly states when to use this tool vs alternatives: for a list of consultations, for detail call senado_ecidadania_obter_consulta, for analysis call senado_ecidadania_consultas_analise. Also explains default status and filtering options.

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

senado_ecidadania_listar_eventosA
Read-onlyIdempotent
Inspect

Lista eventos interativos do e-Cidadania (audiências públicas, sabatinas, lives) — conjunto completo (corpus persistido em D1, atualizado semanalmente; ~milhares de eventos, incluindo encerrados). Retorna { count, eventos }, cada evento com id, titulo, data, hora, comissao (sigla), comentarios, status (agendado/encerrado/cancelado) e url; aceita filtro por status, por comissao (sigla) e limite (padrão 20). Para um ranking dos mais comentados, ordene por comentários (ordenarPor: "comentarios", ordem: "desc"). Para o detalhe completo de um evento use senado_ecidadania_obter_evento.

ParametersJSON Schema
NameRequiredDescriptionDefault
ordemNoOrdem (padrão desc)desc
limiteNoNúmero máximo de resultados
statusNoFiltrar por status
comissaoNoSigla da comissão
ordenarPorNoOrdenar por data ou número de comentários

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Adds behavioral context beyond annotations: data persistence (corpus in D1), weekly updates, scale (thousands), inclusion of closed events, and return structure. No contradictions with readOnlyHint or idempotentHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single paragraph, front-loaded with core purpose, followed by return format, filters, and usage scenarios. Every sentence adds value; no superfluous content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all essential aspects: what is returned (count and eventos with fields), available filters (status, comissao, limite), ordering options (data, comentarios), update frequency, and hints for related actions (get event detail). Output schema exists but description still provides sufficient detail.

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

Parameters5/5

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

With 100% schema coverage, the description still adds value: default limit of 20, 'comissao' as abbreviation, default order for 'ordem', and concrete examples for ordering by comments via 'ordenarPor' and 'ordem'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it lists interactive events from e-Cidadania (audiências, sabatinas, lives) and distinguishes from sibling 'senado_ecidadania_obter_evento' for detailed retrieval. Provides context about the complete corpus and update frequency.

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

Usage Guidelines5/5

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

Explicitly describes when to use this tool (listing events) and directs to a specific sibling tool for detailed event info. Also explains how to use filtering and ordering, including a ranking use case.

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

senado_ecidadania_listar_ideiasA
Read-onlyIdempotent
Inspect

Lista ideias legislativas propostas por cidadãos no e-Cidadania — conjunto completo (corpus persistido em D1, atualizado semanalmente; ~150 mil ideias, incluindo encerradas e convertidas em proposição). Retorna { count, ideias }, cada ideia com id, titulo, apoios, status (aberta/encerrada/convertida) e url (autor e dataPublicacao só aparecem no detalhe, vêm null aqui). Aceita filtro por status e limite (padrão 20). Para um ranking das mais apoiadas, ordene por apoios (ordenarPor: "apoios", ordem: "desc"). Para o detalhe completo de uma ideia (texto, autor, se virou projeto de lei) chame senado_ecidadania_obter_ideia com o id.

ParametersJSON Schema
NameRequiredDescriptionDefault
ordemNoOrdem de ordenação
limiteNoNúmero máximo de resultados
paginaNoPágina de resultados
statusNoFiltrar por status
ordenarPorNoCampo para ordenação (apoios é o disponível no corpus; data/comentarios só no detalhe)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Adds behavioral context beyond annotations: describes the corpus size (~150k ideas), update frequency (weekly), inclusion of closed/converted ideas, and field restrictions (null for author/date in list). All consistent with readOnlyHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured: front-loaded purpose, then output details, filtering, ordering, and sibling reference. Each sentence provides essential information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists, the description covers return format (count, ideias with fields), corpus scope, update cadence, and limitations. No missing critical information for effective use.

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

Parameters5/5

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

All 5 parameters have descriptions in schema (100% coverage). Description adds extra meaning by clarifying default limit (20), recommending ordering by 'apoios' for ranking, and noting which ordering fields are available in the list vs. detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists legislative ideas from e-Cidadania, specifying the complete corpus and distinguishing itself from the detail tool (senado_ecidadania_obter_ideia) and other list tools like senado_ecidadania_listar_consultas.

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

Usage Guidelines5/5

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

Explicitly mentions when to use this tool (for listing), provides filtering and ordering guidance, and directs users to the sibling tool for full details. It also explains limitations (author and date are null in list).

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

senado_ecidadania_obter_consultaA
Read-onlyIdempotent
Inspect

Obtém o detalhe de uma consulta pública específica do e-Cidadania. Retorna um objeto com id, materia, ementa, votosSim/votosNao/totalVotos, percentualSim/percentualNao, status, autor, relator, comentarios, url (campos como comissao e datas podem vir null). Obtenha o id antes via senado_ecidadania_listar_consultas ou senado_ecidadania_consultas_analise.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesID da consulta pública

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds value by specifying the exact return fields and noting that some fields may be null. It does not discuss rate limits or authentication, but annotations cover the safety profile adequately.

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 description is a single paragraph that efficiently conveys purpose, parameters, and return format. It is front-loaded with the main action but could be broken into multiple sentences for improved readability. However, there is no superfluous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description explains the tool's return object fields, parameter source, and notes about nullable fields. For a simple retrieval tool, this covers all necessary context for correct invocation.

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

Parameters4/5

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

Schema coverage is 100% with a single required parameter 'id' described as 'ID da consulta pública'. The description adds context by explaining that the id comes from specific sibling tools, and also mentions the return structure, which helps infer the parameter's purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves details of a specific public consultation from e-Cidadania, with a specific verb ('Obtém') and resource. It lists the return fields, distinguishing it from sibling tools like senado_ecidadania_listar_consultas and senado_ecidadania_consultas_analise.

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

Usage Guidelines5/5

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

The description explicitly instructs to obtain the 'id' parameter via senado_ecidadania_listar_consultas or senado_ecidadania_consultas_analise, providing clear prerequisite guidance on when to use this tool.

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

senado_ecidadania_obter_eventoA
Read-onlyIdempotent
Inspect

Obtém o detalhe de um evento interativo do e-Cidadania. Retorna um objeto com id, titulo, descricao, data, hora, comissao e comissaoNomeCompleto, local, status, comentarios, url, além de pauta (até 15 itens), convidados e videoUrl (embed do YouTube, quando houver). Obtenha o id antes via senado_ecidadania_listar_eventos.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesID do evento

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint as true and destructiveHint as false. The description adds value by detailing the returned fields, including conditional fields like videoUrl ('quando houver'), and the maximum number of pauta items. This goes beyond the annotations and helps the agent understand what to expect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two concise sentences. The first sentence states the purpose and lists returns, the second provides a prerequisite. No unnecessary words, and the structure is front-loaded with the key action.

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?

Given the low complexity (single parameter, no enums), combined with rich annotations and an output schema, the description is complete enough. It covers the return fields and the prerequisite. Minor gaps like explaining status values are not critical for this simple retrieval tool.

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 100% with the parameter 'id' having a description 'ID do evento'. The description reinforces that the ID must be obtained first, but adds no new semantic meaning beyond the schema. Baseline score of 3 is appropriate since the schema already documents the parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Obtém o detalhe de um evento interativo do e-Cidadania', which is a specific verb+resource. It distinguishes from the sibling tool 'senado_ecidadania_listar_eventos' by mentioning that the ID should be obtained from that tool. The return fields are listed, making the purpose unambiguous.

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

Usage Guidelines4/5

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

The description explicitly tells the agent to obtain the ID via 'senado_ecidadania_listar_eventos' before using this tool, which is direct usage guidance. It does not mention when not to use it or provide alternatives, but the context is clear enough for appropriate selection.

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

senado_ecidadania_obter_ideiaA
Read-onlyIdempotent
Inspect

Obtém o detalhe de uma ideia legislativa do e-Cidadania. Retorna um objeto com id, titulo, descricao (texto completo, truncado em ~2000 caracteres), apoios, dataPublicacao, status, autor, comentarios, url e plConvertido (sigla/número quando virou projeto de lei). Obtenha o id antes via senado_ecidadania_listar_ideias.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesID da ideia legislativa

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false. The description adds valuable behavioral context beyond annotations, notably that the 'descricao' field is truncated to ~2000 characters and lists the returned fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no waste. The purpose and key usage instruction are front-loaded, making it easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one parameter, clear annotations, and an output schema), the description is complete: it explains the return fields, a behavioral nuance (truncation), and the prerequisite step. No gaps remain.

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 100% with a single parameter 'id' described as 'ID da ideia legislativa'. The description does not add significant extra meaning beyond the schema, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Obtém o detalhe de uma ideia legislativa do e-Cidadania' with a specific verb and resource. It distinguishes itself from the sibling tool 'senado_ecidadania_listar_ideias' by noting the prerequisite to obtain the ID first.

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

Usage Guidelines5/5

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

Explicitly instructs to obtain the ID via 'senado_ecidadania_listar_ideias' before using this tool, providing clear context on when to use this tool versus its sibling.

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

senado_ecidadania_sugerir_tema_enqueteA
Read-onlyIdempotent
Inspect

Sugere temas para uma enquete pública mensal (seleção de pauta): analisa o conjunto completo de consultas (abertas) e as ideias do e-Cidadania e elege as de maior engajamento cidadão, filtrando por polarização/consenso e participação mínima. Retorna { criteriosAplicados, totalAnalisados, count, sugestoes } (até 10), cada sugestão com tipo (consulta/ideia), id, titulo, motivo, metricas (participação/polarização) e url, ordenadas por participação. Critérios opcionais em criterios: evitarPolarizacao/evitarConsenso (padrão true), minimoParticipacao (padrão 500), apenasEmTramitacao (padrão true → considera só consultas abertas, com base no status real). Para investigar uma sugestão, use senado_ecidadania_obter_consulta ou senado_ecidadania_obter_ideia conforme o tipo.

ParametersJSON Schema
NameRequiredDescriptionDefault
criteriosNoCritérios de seleção do tema (polarização, consenso, participação mínima, tramitação)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate a read-only, idempotent, non-destructive operation. The description adds behavioral context by explaining internal filtering logic and output structure, enhancing transparency beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (5-6 sentences), well-structured with purpose first, then output format, then parameter details. Every sentence adds useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the tool's purpose, input parameters with defaults, return structure, and next steps. With an output schema available, it is fully complete for an AI agent to use correctly.

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

Parameters4/5

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

Despite 100% schema coverage, the description adds value by summarizing criteria, explaining defaults, and clarifying how parameters affect behavior (e.g., 'apenasEmTramitacao padrão true → considera só consultas abertas').

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool suggests topics for a monthly public poll, analyzing consultations and ideas, and filtering by engagement criteria. It distinguishes itself from sibling tools like senado_ecidadania_listar_consultas by focusing on selecting top suggestions.

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

Usage Guidelines4/5

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

The description provides explicit guidance on when to use the tool (to get suggestions) and what to do next (use senado_ecidadania_obter_consulta or senado_ecidadania_obter_ideia). It does not mention exclusions or when not to use it, but the context is clear.

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

senado_empresas_contratadasA
Read-onlyIdempotent
Inspect

Busca empresas que contratam com o Senado por nome (mín. 3 caracteres) ou CNPJ/CPF (busca parcial). Retorna { count, total, empresas }, cada item com id, nome, cnpj, contratos (até 30 números), totalContratos, totalAtas e totalNotasEmpenho. Exige nome ou cnpj (a base completa é grande); limitado a limite (padrão 20, máx 100). Use o id/número de contrato em senado_contratos ou senado_contratacao_detalhe para o detalhamento.

ParametersJSON Schema
NameRequiredDescriptionDefault
cnpjNoCNPJ/CPF (busca parcial)
nomeNoNome da empresa (busca parcial, mín. 3 caracteres)
limiteNoMáximo de empresas (padrão: 20)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint, so description adds value by detailing return structure (count, total, empresas with specific fields and max 30 contracts). No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two efficient sentences with all relevant information, front-loaded with action, no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given complexity, annotations, and output schema, the description covers search behavior, required parameters, return format, limit, and cross-references to other tools. No gaps.

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

Parameters4/5

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

Schema coverage is 100%, description adds context: min 3 chars for nome, partial search for cnpj, default and max for limite, and clarifies that one of nome/cnpj is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for companies contracting with the Senate by name or CNPJ/CPF, distinguishes from siblings by referencing detailed tools for further information.

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

Usage Guidelines5/5

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

Explicitly states that either nome or cnpj is required to avoid querying the full database, and suggests using the returned id with other tools for details. Provides clear when-to-use and when-to-use-alternatives guidance.

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

senado_encontro_plenarioA
Read-onlyIdempotent
Inspect

Detalhes de um encontro legislativo (sessão de plenário). Retorna { codigo, secao, encontro }, onde encontro é o objeto bruto da API (ou array, quando o upstream traz vários) cujos campos variam conforme a secao escolhida: detalhes (padrão) traz dados gerais da sessão (tipo, data, situação, presença); pauta traz as matérias previstas; resultado traz os itens apreciados e seus resultados; resumo traz uma síntese. encontro pode vir vazio se a seção não tiver dados, e a chamada retorna erro se o codigo não existir. Obtenha o codigo via senado_agenda_plenario ou senado_resultado_plenario.

ParametersJSON Schema
NameRequiredDescriptionDefault
secaoNoQual seção do encontro consultardetalhes
codigoYesCódigo do encontro/sessão

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. Description adds behavioral traits: encontro may be empty, error on nonexistent codigo, fields vary by secao. No contradiction.

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?

Description is detailed but front-loaded with purpose. Each sentence adds value. Slightly verbose but not excessively so.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists and context signals, description covers return structure, variations, error cases, and input source. Fully adequate for complex tool with many siblings.

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

Parameters5/5

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

Schema coverage is 100%. Description adds meaning beyond schema by explaining how secao values affect output and how codigo is obtained from sibling tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description specifies verb 'retorna' and resource 'encontro legislativo (sessão de plenário)'. It distinguishes from siblings by mentioning how to obtain codigo and listing secao options.

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

Usage Guidelines4/5

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

Explicitly states that codigo should be obtained from senado_agenda_plenario or senado_resultado_plenario, providing clear context. Lacks explicit when-not-to-use, but gives sufficient guidance.

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

senado_execucao_orcamentariaA
Read-onlyIdempotent
Inspect

Execução orçamentária do Senado: despesas (dotação, empenhado, liquidado, pago; desde 2013) ou receitas próprias (previstas e arrecadadas; desde 2012). Retorna { tipo, modo, ano, totalLinhas, ... }: nos modos agregados, agregado[] com { chave, ...valores } ordenado por valor; em detalhe, despesas[]/receitas[] limitado por limite (padrão 100, com aviso ao truncar). Use tipo=despesas com modo por-ano/por-acao/por-grupo/por-fonte e tipo=receitas com por-origem; filtre por ano para reduzir o volume antes de pedir detalhe. Única ferramenta de orçamento interno do Senado; não confundir com senado_orcamento_parlamentar (emendas/ofícios parlamentares ao orçamento da União).

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoFiltrar por exercício financeiro
modoNoAgregação (por-acao/por-grupo/por-fonte: despesas; por-origem: receitas) ou detalhepor-ano
tipoNodespesas = dotação e execução; receitas = receitas própriasdespesas
limiteNoMáximo de linhas (padrão: 100)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

Describes return structure (tipo, modo, ano, totalLinhas, agregado[] or despesas[]/receitas[]), truncation with aviso, and ordering. Annotations confirm read-only, safe behavior.

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?

Single dense paragraph with clear flow: purpose, return format, usage, differentiation. Efficient but could be more structured with bullets for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all key aspects: data scope, parameter interplay, result format, filtering advice, and sibling differentiation. Output schema likely fills remaining gaps.

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

Parameters4/5

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

Schema covers 100% of parameters, but description adds context: links modo to tipo, explains ano for volume reduction, and notes default limite.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it covers Senate budget execution (expenses and revenues), lists year ranges, and distinguishes from sibling tool senado_orcamento_parlamentar.

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

Usage Guidelines5/5

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

Explicitly instructs when to use each tipo with corresponding modos, recommends filtering by ano before detalhe, and warns against confusion with another tool.

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

senado_horas_extrasA
Read-onlyIdempotent
Inspect

Horas extras pagas a servidores do Senado em ano/mes de referência (a partir de 2013). Retorna { ano, mes, count, total, valorTotal, horasExtras[] }, onde valorTotal soma o gasto do mês e cada item traz nome, valorTotal, horasExtras, competencia e pagamento. Filtro opcional por nome (busca parcial) e limite (padrão 100, máx 500). Para a remuneração completa do servidor use senado_remuneracoes_servidores.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoYesAno de referência
mesYesMês de referência
nomeNoNome do servidor (busca parcial)
limiteNoMáximo de resultados (padrão: 100)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint false. Description adds that data is from 2013 onward and details the return structure, but does not contradict annotations. It provides useful context without overstating effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences that front-load the purpose and gradually add details. Every sentence is informative with no waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description fully explains the return structure (fields and meaning) and optional filters. It also mentions the starting year and relation to sibling tool, making it complete for an agent to understand the tool's behavior.

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 100% with clear descriptions for all 4 parameters. Description repeats the schema info (partial search for nome, default/max for limite) but adds no new meaning beyond a concise summary. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool returns overtime payments for Senate employees by year/month, with specific verb 'retorna' and resource 'horas extras pagas'. It distinguishes from sibling tool 'senado_remuneracoes_servidores' by explicitly directing users there for full compensation.

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

Usage Guidelines5/5

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

Provides explicit when-to-use (list overtime for a given month/year) and when-not-to-use (for full compensation, use sibling). Also mentions optional filters and defaults.

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

senado_licitacoesA
Read-onlyIdempotent
Inspect

Busca licitações do Senado por número exato (ex: 19/2018) ou texto do objeto. Retorna { count, total, licitacoes } com os registros brutos da API administrativa, limitados a limite (padrão 50, máx 500). Exige ao menos numero ou objeto (sem filtro retorna erro). Para o contrato resultante de uma licitação, use senado_contratos.

ParametersJSON Schema
NameRequiredDescriptionDefault
limiteNoMáximo de resultados (padrão: 50)
numeroNoNúmero exato da licitação (ex: 19/2018)
objetoNoTexto no objeto da licitação

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. The description adds behavioral details: returns raw records, default/max limit, and authentication implications (none mentioned, but no contradiction).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise: two sentences front-load purpose, include usage example, limit info, and sibling reference—no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists, the description fully covers behavior: return format, error condition, limit details, and relationship to sibling tool.

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

Parameters4/5

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

Schema has 100% coverage, and description adds value with format examples (e.g., '19/2018') and clarifies that at least one filter is required but both are optional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for Senate bidding processes by exact number or object text, explicitly differentiating from the sibling tool 'senado_contratos'.

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

Usage Guidelines5/5

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

Provides explicit when-to-use (by number or object text) and when-not (no filter returns error), plus an alternative for the resulting contract: use senado_contratos.

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

senado_liderancasA
Read-onlyIdempotent
Inspect

Lista as lideranças do Senado e do Congresso Nacional (líderes, vice-líderes etc.). Retorna { count, liderancas }, cada item com tipo, descricao, unidadeLideranca e parlamentar (codigo, nome, partido, uf). Filtre por casa (SF/CN), codigoParlamentar, vigente (S/N) ou siglaTipoLideranca; sem filtros retorna todas. Para a composição de blocos use senado_listar_blocos.

ParametersJSON Schema
NameRequiredDescriptionDefault
casaNoCasa legislativa (SF=Senado, CN=Congresso)
vigenteNoApenas vigentes (S/N)
codigoParlamentarNoCódigo do parlamentar
siglaTipoLiderancaNoTipo de liderança (ex: LIDER, VICE-LIDER)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds behavioral context by detailing the return structure ({count, liderancas}) and the fields within each item, which is beyond the annotations. There is no contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: two sentences, the first stating purpose and return format, the second giving filtering and alternative. It is front-loaded with the most important information and contains no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (4 parameters, optional filters) and the presence of annotations and output schema (implied by the return structure described), the description covers the essential aspects: purpose, filters, default behavior, return format, and alternative tool. It is complete for the agent to use correctly.

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

Parameters4/5

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

Schema description coverage is 100% with each parameter having a basic description. The description adds value by consolidating the filtering options and stating the default behavior (returns all without filters), which provides additional context beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: listing leadership roles in the Senate and National Congress. It specifies the verb 'list' and the resource 'lideranças', and distinguishes from the sibling tool 'senado_listar_blocos' by mentioning it is for blocos composition.

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

Usage Guidelines5/5

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

The description provides explicit filtering options (casa, codigoParlamentar, vigente, siglaTipoLideranca) and states that without filters it returns all. It also explicitly names an alternative tool ('senado_listar_blocos') for blocos composition, giving clear when-to-use guidance.

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

senado_listar_blocosA
Read-onlyIdempotent
Inspect

Lista todos os blocos parlamentares do Senado e seus partidos membros. Retorna { count, blocos }, onde cada bloco traz codigo, nome, nomeApelido, dataCriacao, dataExtincao e a lista partidos (cada um com sigla, nome, dataAdesao). Use para descobrir o codigo de um bloco e depois detalhá-lo via senado_obter_bloco; para lideranças use senado_liderancas.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. The description adds the return format and structure (count, blocos, each with nested partidos). This provides context beyond annotations, but no behavioral surprises.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: first states purpose and return structure, second gives usage guidance and links to sibling tools. No waste, front-loaded with key information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and existing output schema, the description fully covers what the tool does and how to use it. It also references related tools for next steps, making it contextually complete.

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

Parameters4/5

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

No parameters exist, so the description cannot add meaning to them. With zero parameters and 100% schema coverage, the baseline is 4. The description correctly states there are no inputs, so no further elaboration needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the tool lists all parliamentary blocs and their member parties. Explicitly mentions the return structure with fields like count, blocos, codigo, nome, etc. Differentiates from sibling tools by referencing senado_obter_bloco for detail and senado_liderancas for leadership.

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

Usage Guidelines5/5

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

Provides explicit guidance: use this tool to discover a bloc's codigo, then use senado_obter_bloco for details; for leadership, use senado_liderancas. This helps the agent decide when to call this tool versus alternatives.

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

senado_listar_comissoesA
Read-onlyIdempotent
Inspect

Lista comissões (colegiados) ativas do Senado, com filtros por tipo (permanente, temporaria, cpi, mista) e ativa. Retorna { count, comissoes }, cada item com codigo, sigla, nome, tipo, casa e ativa. O endpoint só traz comissões ativas, logo ativa=false resulta em lista vazia. Use para descobrir a sigla exigida por senado_obter_comissao e senado_reunioes_comissao.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoNoTipo: permanente, temporaria, cpi, mista
ativaNoApenas comissões ativas

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already indicate read-only and non-destructive behavior. The description adds that the endpoint only brings active commissions, regardless of the filter, and explains the return shape. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loaded with purpose and filters, then details return format and usage guidance. Every sentence is informative and concise, with no extraneous text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (two optional parameters, output schema exists, annotations cover safety), the description fully covers purpose, usage, and return structure. It also links to sibling tools, making it complete for an agent to select and invoke correctly.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for both parameters. The description adds context by stating that the endpoint only returns active commissions, implying that the ativa filter is redundant if set to true, and that false yields empty. This adds practical meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists active commissions with filters for tipo and ativa, and specifies the return structure with fields like codigo, sigla, nome, tipo, casa, and ativa. It distinguishes itself from siblings by noting it is used to discover the sigla required by senado_obter_comissao and senado_reunioes_comissao.

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

Usage Guidelines5/5

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

The description explicitly says to use this tool to discover the sigla needed by senado_obter_comissao and senado_reunioes_comissao, providing clear contextual guidance. It also warns that the endpoint only returns active commissions, so setting ativa=false results in an empty list, which helps correct usage.

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

senado_listar_senadoresA
Read-onlyIdempotent
Inspect

Use para pedidos como 'liste os senadores em exercício', 'senadores atuais', 'lista atual de senadores' ou filtros por UF/partido. Lista senadores em exercício ou de uma legislatura específica, com filtros opcionais por nome, uf e partido. Retorna { count, senadores }, cada item com codigo, nome, nomeCompleto, partido, uf, foto e emExercicio, mais proveniência oficial do endpoint /senador/lista/atual. Use emExercicio (padrão true) ou legislatura para escolher o conjunto; nome faz correspondência parcial ignorando acentos/maiúsculas (use quando você só tem o nome e precisa do codigo); uf/partido filtram localmente. Use o codigo em senado_obter_senador ou senado_votacoes_senador. Para senadores fora de exercício veja senado_senadores_afastados.

ParametersJSON Schema
NameRequiredDescriptionDefault
ufNoSigla do estado (ex: SP, RJ, MG)
nomeNoNome ou parte do nome (busca parcial, sem acento)
partidoNoSigla do partido (ex: PT, PL, MDB)
emExercicioNoFiltrar apenas senadores em exercício
legislaturaNoNúmero da legislatura (ex: 57 para 2023-2027)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive. The description adds behavioral details like default emExercicio=true, partial name matching ignoring accents, local filtering for UF/partido, and the return structure with count and senadores. This provides context beyond annotations.

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 description is concise but thorough, with front-loaded examples and structured sentences. It efficiently covers purpose, parameters, return format, and sibling references. Slightly lengthy but no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters and an output schema, the description explains the return structure, gives usage examples, cross-references sibling tools, and covers edge cases (afastados). It is fully comprehensive for an agent to use correctly.

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

Parameters5/5

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

With 100% schema coverage, baseline is 3. However, the description adds significant meaning: explains emExercicio default and alternative legislatura, describes nome's partial fuzzy matching, clarifies uf/partido are local filters, and gives usage context (e.g., use nome when you need codigo). This substantially enhances understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists senators in office or by legislature with optional filters. It includes specific usage examples and explicitly distinguishes from sibling tools like senado_senadores_afastados, making its purpose unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use the tool (listing senators, filtering by UF/party, getting codigo from name) and when not to (for afastados, recommending senado_senadores_afastados). It also suggests using codigo in other tools.

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

senado_mesaA
Read-onlyIdempotent
Inspect

Lista os membros da Mesa Diretora (presidente, vice-presidentes, secretários). O parâmetro casa (padrão senado) escolhe entre senado (Mesa do Senado Federal) e congresso (Mesa do Congresso Nacional). Retorna { casa, mesa, count, membros }, cada membro com cargo, codigo, nome, partido e uf. Para lideranças partidárias use senado_liderancas.

ParametersJSON Schema
NameRequiredDescriptionDefault
casaNosenado (Mesa do SF) ou congresso (Mesa do CN)senado

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations confirm read-only, idempotent, non-destructive behavior. The description adds the return format structure (casa, mesa, count, membros with fields), providing transparency beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences plus one on return format, all front-loaded with purpose. Every sentence is essential and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description completely covers a simple tool: parameter explanation, return format, and sibling differentiation. With no required params and output schema present, nothing is missing.

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

Parameters4/5

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

Schema coverage is 100% (one parameter). The description adds value by explaining the parameter's meaning and values more fully than the schema, which only gives abbreviated descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Lista' and the resource 'membros da Mesa Diretora', providing specific scope. It distinguishes from sibling tool 'senado_liderancas' by explicitly directing users to that tool for leadership details.

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

Usage Guidelines4/5

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

The description explains when to use this tool (to list mesa members) and provides an alternative for lideranças. It also explains the casa parameter options. No explicit when-not-to-use, but context is clear.

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

senado_notas_taquigraficasA
Read-onlyIdempotent
Inspect

Obtém as notas taquigráficas (transcrição oficial) de uma sessão plenária ou reunião de comissão. Retorna { id, tipo, sessao, data, totalBlocos, blocos }: no modo resumo (padrão) cada bloco traz sequencia, dataInicio/Fim, trecho (primeiros 200 chars), caracteres e linkAudio; no modo texto traz o texto integral de no máx. 20 blocos por chamada (controle a janela com sequenciaInicio/sequenciaFim) e inclui intervalo. Obtenha o id da sessão via senado_agenda_plenario/senado_resultado_plenario ou da reunião via senado_reuniao_comissao; use orador para filtrar blocos por nome e senado_videos_taquigrafia para a mídia.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesCódigo da sessão plenária ou da reunião de comissão
modoNoresumo = blocos com trecho inicial; texto = transcrição integral dos blocos selecionadosresumo
tipoNosessao = plenário (padrão); reuniao = comissãosessao
oradorNoFiltra blocos que mencionam este nome (busca no texto)
sequenciaFimNoÚltimo bloco a retornar no modo texto (máx. 20 blocos por chamada)
sequenciaInicioNoPrimeiro bloco (quarto) a retornar no modo texto (padrão: 1)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, covering safety. The description adds value by explaining pagination limits (max 20 blocks per call in text mode), return structure details per mode, and linkage to other tools for input. It does not disclose any potential side effects beyond the read operation, which aligns with annotations.

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 description is a single paragraph, front-loaded with the primary function. It packs substantial detail without being overly verbose; each sentence contributes necessary information (return structure, mode behavior, input sourcing, filtering). Minor improvement could be breaking into bullet points for readability, but current form is clear and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with six parameters, the description sufficiently covers all essential aspects: how to obtain the required id (via sibling tools), mode behavior, pagination with limits, filtering, and the return structure. The output schema exists, so explaining return fields is appropriate. Given the tool's complexity and the annotation coverage, the description provides complete contextual guidance.

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

Parameters4/5

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

Schema coverage is 100%, so each parameter has a basic description. The tool description enhances this by explaining the functional impact of parameters: e.g., modo differentiates between summary and full text, tipo selects session vs committee, sequenciaInicio/Fim control pagination, and orador filters by speaker. It also notes default values and the maximum block count in text mode, going beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool retrieves official transcriptions (notas taquigráficas) of plenary sessions or committee meetings. It distinguishes from siblings by instructing how to obtain the required id via senado_agenda_plenario or senado_reuniao_comissao, and points to senado_videos_taquigrafia for media, clearly differentiating its purpose.

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

Usage Guidelines4/5

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

Provides clear context for usage: obtaining transcripts of sessions/meetings and filtering by speaker. It explains modes (resumo vs texto) and pagination control. However, it does not explicitly state when NOT to use this tool (e.g., for other data types) or list alternatives beyond obtaining the id, though the sibling references imply appropriate contexts.

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

senado_obter_blocoA
Read-onlyIdempotent
Inspect

Obtém detalhes de um bloco parlamentar específico pelo seu código. Retorna um objeto com codigo, nome, nomeApelido, dataCriacao, dataExtincao e partidos (array com sigla, nome, dataAdesao); dataExtincao é null para blocos vigentes. Obtenha o parâmetro codigo primeiro via senado_listar_blocos; código inexistente retorna erro ("Bloco parlamentar não encontrado").

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoYesCódigo do bloco parlamentar

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already indicate readOnly, idempotent, and non-destructive. The description adds detail about the returned object structure (including null for extinct blocs) and error behavior, going beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, and every sentence provides essential information. No redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema (implied by the description of returned fields) and rich annotations, the description covers prerequisites, return structure, error case, and parameter source comprehensively.

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

Parameters4/5

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

Schema coverage is 100% with a short description for 'codigo'. The tool description adds context on how to obtain the parameter value (from listar_blocos), adding meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it obtains details of a specific parliamentary bloc by code. The verb 'Obtém' and resource 'bloco parlamentar' are specific, and it distinguishes from siblings like 'senado_listar_blocos' which lists all blocs.

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

Usage Guidelines5/5

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

Explicitly instructs to get the 'codigo' parameter via 'senado_listar_blocos' first, and warns that an inexistent code returns an error. This provides clear when-to-use and expected outcomes.

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

senado_obter_comissaoA
Read-onlyIdempotent
Inspect

Obtém dados de uma comissão pela sigla, conforme secao (padrão resumo): resumo{ codigo, sigla, nome, finalidade, presidente, vicePresidente, totalMembros, titulares, suplentes } (presidente/vice com nome/codigo/bancada). membros{ sigla, secao, count, membros }, cada membro com codigo, nome, tipoVaga (titular/suplente), ativo e dataInicio. A sigla é resolvida internamente para código numérico; descubra-a via senado_listar_comissoes.

ParametersJSON Schema
NameRequiredDescriptionDefault
secaoNoresumo (mesa/totais) ou membros (composição completa)resumo
siglaYesSigla da comissão (ex: CCJ, CAE)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint, idempotentHint, and destructiveHint false. The description adds value by disclosing the internal resolution of sigla to a numeric code and detailing the response structures for each section, providing behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-organized paragraph that efficiently conveys purpose, options, and cross-tool dependency. Every sentence serves a purpose without unnecessary verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (2 parameters, output schema exists), the description sufficiently explains what the tool does, what each parameter does, what the outputs look like, and how to prepare inputs (find sigla via sibling tool). It is complete for effective agent usage.

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

Parameters5/5

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

Both parameters have 100% schema coverage. The description adds significant meaning: examples for sigla (CCJ, CAE), explains the resolution process, and clarifies the section parameter's options and corresponding output structures, going well beyond the schema definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves commission data by sigla, with two section options. It differentiates itself from senado_listar_comissoes by noting that the sigla can be discovered via that sibling tool, making its purpose unambiguous.

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

Usage Guidelines4/5

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

The description provides explicit guidance on when to use this tool (to get commission details) and how to obtain the sigla via senado_listar_comissoes. It does not explicitly state when not to use it or compare with other similar tools like senado_reuniao_comissao, but the context is clear enough.

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

senado_obter_legislacaoA
Read-onlyIdempotent
Inspect

Obtém os detalhes de uma norma jurídica federal específica pelo seu codigo. Retorna um objeto com codigo, tipo, descricaoTipo, numero, ano, data, ementa, indexacao, situacao, origem, observacao e url do texto integral. Obtenha o codigo primeiro via senado_buscar_legislacao.

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoYesCódigo único da norma

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the tool's safety profile is clear. The description adds return field details and prerequisite linkage, which is useful but not critical beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no fluff. First sentence covers purpose and return, second gives prerequisite. Highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter, an output schema, and clear annotations, the description is fully complete: it explains what, returns, and prerequisite. No gaps.

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 100% and already describes the codigo parameter. The description adds value by indicating the source for the code (senado_buscar_legislacao), but doesn't add further semantic detail beyond what schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves details of a specific federal legal norm by its code, lists return fields, and distinguishes itself from senado_buscar_legislacao by specifying that the code comes from that search tool.

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

Usage Guidelines4/5

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

It explicitly instructs to obtain the code via senado_buscar_legislacao first, providing clear prerequisite and context. Could be strengthened by stating when not to use, but the guidance is strong.

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

senado_obter_materiaA
Read-onlyIdempotent
Inspect

Obtém dados de uma matéria pelo codigoMateria, conforme secao (padrão detalhe): detalhe → objeto com identificacao, apelido, ementa, autor, situacao, localAtual, dataApresentacao, indexacao, classificacoes[], tramitando, relator (nome/partido/uf/comissão), deliberacao e normaGerada. tramitacao → histórico de tramitação cronológico em tramitacoes[] (data, local, descricao), com count/total (mantém os mais recentes ao truncar). textos → documentos da matéria em textos[] (tipo, formato, identificacao, data, autoria, url), do mais recente ao mais antigo. limite aplica-se a tramitacao/textos (padrão 100 e 50; ao truncar inclui aviso). Obtenha o codigoMateria via senado_buscar_materias.

ParametersJSON Schema
NameRequiredDescriptionDefault
secaoNodetalhe (situação/relator), tramitacao (histórico) ou textos (documentos)detalhe
limiteNoMáximo de itens em tramitacao/textos (padrão: 100 tramitacao, 50 textos)
codigoMateriaYesCódigo único da matéria

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate readOnly, idempotent, non-destructive. The description adds valuable behavioral context: truncation behavior with aviso for tramitacao/textos, ordering (most recent first), and that 'limite' applies only to those sections. No contradiction with annotations.

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 description is structured and front-loaded with the core purpose. It then details each secao value in bullet-like form. While somewhat lengthy, every sentence adds value and it is well-organized for an agent to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema existing, the description complements it by explaining the structure for each secao, ordering, truncation behavior, and dependencies (getting codigoMateria from sibling tool). It covers all aspects needed for an agent to use the tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description goes beyond by detailing the return structure for each secao value, explaining default limits (100 for tramitacao, 50 for textos), and that codigoMateria is obtained via sibling tool. This adds significant meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool obtains data of a matter by codigoMateria, with optional secao parameter and default 'detalhe'. It explicitly references the sibling tool 'senado_buscar_materias' for obtaining the codigoMateria, distinguishing its purpose.

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

Usage Guidelines4/5

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

The description provides clear guidance on when to use each secao value (detalhe for full details, tramitacao for history, textos for documents) and mentions default limits. It does not explicitly state when not to use, but it explains the context for each section and references the alternative tool for searching.

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

senado_obter_processoA
Read-onlyIdempotent
Inspect

Obtém detalhes completos de um processo legislativo específico pelo seu id. Retorna um objeto com id, codigoMateria, identificacao, sigla, numero, ano, objetivo, ementa, tipoConteudo, dataApresentacao, autoria, indexacao, urlDocumento e tramitando. Obtenha o idProcesso antes via senado_search_processos ou senado_buscar_materias; para emendas, relatorias ou prazos use senado_processo_detalhe (parâmetro secao).

ParametersJSON Schema
NameRequiredDescriptionDefault
idProcessoYesID do processo legislativo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint, idempotentHint, non-destructive. Description adds context by listing returned fields, which is helpful despite existence of output schema. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: first states purpose and fields, second provides usage guidance and sibling differentiation. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool is simple with one parameter and rich annotations; description covers purpose, field list, source of id, and required alternatives. No gaps.

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

Parameters5/5

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

The only parameter idProcesso is described in schema with 100% coverage. Description adds extra guidance on sourcing the id from other tools, adding semantic value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Obtém detalhes completos de um processo legislativo específico pelo seu `id`', specifying the verb, resource, and identification method. It also distinguishes itself from sibling tools by referencing senado_search_processos and senado_processo_detalhe.

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

Usage Guidelines5/5

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

Explicitly states when to use (to get full details of a process) and when to use alternatives (senado_processo_detalhe for emendas, relatorias, prazos). Also instructs to obtain idProcesso from other tools.

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

senado_obter_senadorA
Read-onlyIdempotent
Inspect

Obtém o detalhe biográfico de um senador específico. Retorna um objeto com codigo, nome, nomeCompleto, nomeCivil, sexo, dataNascimento, naturalidade/ufNaturalidade, partido, uf, foto, email e a lista mandatos (legislatura, uf, participacao, dataInicio, dataFim). Requer codigoSenador — obtenha-o via senado_listar_senadores (filtro nome). Para filiações, profissões, licenças, comissões ou cargos use senado_senador_historico (parâmetro tipo).

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoSenadorYesCódigo único do senador no sistema do Senado

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive. The description adds detailed return structure beyond what annotations provide, enhancing transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: first covers purpose and return fields, second covers usage and alternatives. No redundancy, well-front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple tool (one param, output schema present, good annotations), the description covers all necessary context: purpose, return structure, parameter acquisition, and alternative tools.

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

Parameters4/5

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

Schema already covers parameter semantics with 100% coverage. Description adds practical guidance on how to obtain the parameter value, which adds value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'obtém' and the resource 'detalhe biográfico de um senador específico', distinguishing it from siblings by directing to senado_listar_senadores and senado_senador_historico.

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

Usage Guidelines5/5

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

Explicitly says when to use (to get biographical detail) and when not (use senado_senador_historico for other historical data), and how to obtain the required parameter.

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

senado_obter_votacaoA
Read-onlyIdempotent
Inspect

Obtém detalhes de uma votação pelo codigoVotacao (que é o codigoSessao da sessão plenária), incluindo votos nominais. Retorna o objeto da votação (placar, resultado, secreta) com votos[] (codigoSenador, nomeSenador, partido, uf, voto); se a sessão tiver várias votações, retorna { codigoSessao, count, votacoes }. Obtenha o codigoSessao via senado_search_votacoes antes de chamar.

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoVotacaoYesCódigo único da votação (codigoSessao da sessão plenária)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already provide readOnlyHint, openWorldHint, idempotentHint, and destructiveHint. The description adds useful behavioral context about return types (handling single vs multiple votings) and the relationship between codigoVotacao and codigoSessao, which goes beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: two sentences, front-loaded with the primary action, then a prerequisite. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the tool's simplicity, the description fully covers what the tool does, how to get input, what output to expect (including two formats), and the prerequisite step. It's complete for a single-parameter read tool with an output schema.

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

Parameters4/5

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

Schema coverage is 100% with a clear parameter description. The description adds semantic value by explaining that codigoVotacao equals codigoSessao, which aids understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to obtain details of a voting including nominal votes, using the codigoVotacao parameter. It distinguishes from sibling tools by mentioning that codigoVotacao is the same as codigoSessao and that codigoSessao should be obtained from senado_search_votacoes first.

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

Usage Guidelines5/5

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

The description explicitly instructs to obtain codigoSessao via senado_search_votacoes before calling this tool, providing clear when-to-use guidance and pointing to an alternative tool for searching.

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

senado_orcamento_parlamentarA
Read-onlyIdempotent
Inspect

Lista emendas parlamentares dos senadores ao orçamento da União (e os ofícios de apoio a elas), conforme tipo (padrão emendas). tipo: emendas{ tipo, count, emendas }, cada item com codigo, numero, ano, tipo, autor, valor e descricao. tipo: oficios{ tipo, count, oficios }, cada item com codigo, numero, data, tipo, descricao e situacao (ofícios de apoio às emendas). Não recebe outros parâmetros; count é 0 e a lista vem vazia quando não há registros. Use para as emendas dos parlamentares ao orçamento federal — para a execução do orçamento interno do próprio Senado (despesas/receitas) use senado_execucao_orcamentaria.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoNoemendas (lotes de emendas) ou oficios (ofícios de apoio)emendas

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds useful behavioral details: that no other parameters are accepted, and that count is 0 with an empty list when no records exist. It also details the output structure for each tipo, which goes beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph of five sentences. It front-loads the core purpose and resource, then concisely details the output formats and usage guidelines. Every sentence provides value with no repetition or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional parameter with enum, no required parameters, output schema implicitly documented in description), the description is fully complete. It covers purpose, parameter effect, output shapes, empty result behavior, and differentiation from a sibling tool.

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

Parameters5/5

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

Schema description coverage is 100% with the parameter 'tipo' having an enum and description. The description adds significant meaning by explaining how the output structure changes based on the parameter value ('tipo: emendas' vs 'tipo: oficios'), providing concrete JSON shapes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (Lista/List) and resource (emendas parlamentares/ofícios de apoio). It distinguishes from sibling tool 'senado_execucao_orcamentaria' by noting the different scope (federal budget vs. internal Senate budget).

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

Usage Guidelines5/5

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

The description explicitly tells when to use this tool (for parliamentary amendments to the federal budget) and when not (for internal Senate budget execution), naming the alternative tool 'senado_execucao_orcamentaria'.

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

senado_orientacao_bancadaA
Read-onlyIdempotent
Inspect

Orientação de bancada nas votações de plenário: como cada liderança partidária orientou o voto, com placar — essencial para análise de disciplina partidária. Retorna { count, votacoes }, com cada votação trazendo codigoVotacao, descricao, materia, dataInicio, sessao, totais (totalSim, totalNao, totalAbstencao, obstrucoes) e orientacoes (partido, voto). Informe data (um dia) ou o período dataInicio/dataFim. Para o resultado das sessões use senado_resultado_plenario.

ParametersJSON Schema
NameRequiredDescriptionDefault
dataNoData da sessão (YYYYMMDD)
dataFimNoData fim do período (YYYYMMDD)
dataInicioNoData início do período (YYYYMMDD)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. Description adds detailed return structure (count, votacoes with fields), which is beyond what annotations provide. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single paragraph, no fluff. First sentence states purpose, second describes output structure, third gives input guidance, fourth points to sibling. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Completeness is high: purpose, return format, input options, and alternative tool are all explained. Output schema exists, but description further details fields. Input parameters fully described in schema and clarified in description.

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

Parameters5/5

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

All 3 parameters are covered in schema (100% coverage). Description adds critical semantic guidance: input either 'data' (single day) OR the period 'dataInicio'/'dataFim', clarifying mutual exclusivity not present in schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool retrieves party leadership orientation in plenary votes with vote tallies, specifically for party discipline analysis. It distinguishes from sibling tool senado_resultado_plenario by mentioning that tool is for session results.

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

Usage Guidelines5/5

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

Explicitly states when to use (for orientation and placar) and when not to (for session results, use senado_resultado_plenario). Directly names an alternative tool, providing clear guidance.

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

senado_pessoal_tabelasA
Read-onlyIdempotent
Inspect

Tabelas de pessoal do Senado conforme o parâmetro tabela. Quantitativos agregados: pessoal (força de trabalho por classe/escolaridade), cargos-funcoes (cargos em comissão e funções de confiança), previsao-aposentadoria, senadores. Listas nominais: estagiarios (ativos), pensionistas, lotacoes (setores), cargos (nomes de cargos). Retorna { tabela, count, total, aviso?, registros[] } — registros agregados (nos quantitativos) ou nominais (nas listas), conforme a tabela, limitados por limite (padrão 100, máx 2000); count 0 e lista vazia quando a tabela não tem registros. O filtro textual opcional casa contra qualquer campo do registro. Para o cadastro nominal de servidores efetivos/comissionados use senado_servidores.

ParametersJSON Schema
NameRequiredDescriptionDefault
filtroNoFiltro textual (nome, curso, setor...)
limiteNoMáximo de registros (padrão: 100)
tabelaYesQual tabela de pessoal consultar (quantitativo agregado ou lista nominal)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds significant behavioral details: return format with fields like tabela, count, total, aviso, registros; explanation of empty results (count 0 and empty list); filtering behavior; and limit constraints (default 100, max 2000). No contradiction with annotations.

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 description is a dense single paragraph that efficiently packs all necessary information. While it is concise and avoids fluff, it could benefit from structured sections for readability. Nevertheless, it earns its place with every sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 parameters, one required with enum, output schema described), the description covers all aspects: tool purpose, all table values, return structure, edge cases (empty results), filtering, limit constraints, and cross-reference to sibling tool. The output schema existence reduces the need to detail return values, but the description still provides a clear summary.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds meaning beyond the schema by explaining the semantic categories of tabela (quantitative vs. lists), how they affect the response structure, and the purpose of filtro (textual match against any field) and limite (max records). This additional context helps the agent understand parameter usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool queries Senate personnel tables, listing all eight table values and distinguishing between quantitative aggregates and nominal lists. It also explicitly differentiates from a sibling tool (senado_servidores) by directing to it for a specific use case.

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

Usage Guidelines4/5

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

The description provides clear context on what each table value represents and when to use the tool. It includes an explicit exclusion: for nominal registration of servers, use senado_servidores. However, it does not explicitly state 'use this tool when you need X' but the purpose is well understood from the content.

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

senado_processo_detalheA
Read-onlyIdempotent
Inspect

Detalha um aspecto de processos legislativos conforme o parâmetro secao: emendas → emendas apresentadas (id, identificacao, numero, tipo, autoria, data, colegiado, descricao, decisoes, url; aceita filtro codigoParlamentarAutor); relatorias → relatorias designadas (idProcesso, processo, relator, partido, uf, tipoRelator, comissao, dataDesignacao, dataDestituicao, motivoEncerramento; aceita codigoParlamentar/codigoColegiado/dataReferencia); prazos → prazos regimentais/constitucionais (registros brutos da API; aceita dataReferencia). Todos aceitam idProcesso e/ou codigoMateria e período dataInicio/dataFim (YYYYMMDD ou ISO) — informe pelo menos um filtro. Retorna { secao, count, total, aviso?, itens }, limitado a limite (padrão 100, máx. 500). Obtenha o idProcesso via senado_search_processos; tipos de prazo via senado_tabelas_processo.

ParametersJSON Schema
NameRequiredDescriptionDefault
secaoYesQual aspecto detalhar: emendas, relatorias ou prazos
limiteNoMáximo de resultados (padrão: 100)
dataFimNoAté esta data (YYYYMMDD ou YYYY-MM-DD)
dataInicioNoA partir desta data (YYYYMMDD ou YYYY-MM-DD)
idProcessoNoID do processo
codigoMateriaNoCódigo legado da matéria
dataReferenciaNosecao=relatorias/prazos: vigentes nesta data (YYYYMMDD ou YYYY-MM-DD)
codigoColegiadoNosecao=relatorias: código do colegiado
codigoParlamentarNosecao=relatorias: código do parlamentar relator
codigoParlamentarAutorNosecao=emendas: código do parlamentar autor

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, indicating safe, idempotent reading. The description adds value by specifying the return structure ('{ secao, count, total, aviso?, itens }'), limit behavior (default 100, max 500), and raw API records for prazos. No contradictions with annotations.

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 description is a single paragraph but well-organized: main purpose first, then each section with its fields and filters, common parameters, return format, and prerequisite references. It is front-loaded and efficient, though slightly dense. Minor room for brevity, but every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (10 parameters, 3 sections, multiple conditional filters) and that an output schema exists, the description covers all essential aspects: purpose, each secao's fields and accepted filters, return structure, limit, and prerequisites. It does not explain field semantics in depth, but the output schema likely covers that. Complete for the tool's needs.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant meaning beyond the schema: it explains each secao's specific fields (e.g., emendas returns id, identificacao, etc.), optional filters per section (e.g., codigoParlamentarAutor for emendas), and date format (YYYYMMDD or ISO). This enriches the schema descriptions and helps select correct parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool details aspects of legislative processes ('Detalha um aspecto de processos legislativos') based on the 'secao' parameter, listing three specific sections (emendas, relatorias, prazos) with detailed fields. It distinguishes itself from siblings like senado_obter_processo (general process info) and senado_search_processos (search) by focusing on detailed sub-aspects.

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

Usage Guidelines4/5

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

The description provides explicit guidance: it tells users to obtain 'idProcesso' via 'senado_search_processos' and use 'senado_tabelas_processo' for prazo types. It states at least one filter is required and explains which filters apply per section. While it doesn't explicitly say when not to use it, the context implies it's for detailed aspect queries, effectively differentiating from sibling tools.

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

senado_remuneracoes_servidoresA
Read-onlyIdempotent
Inspect

Remunerações dos servidores do Senado em ano/mes de referência (a partir de 2013). modo=resumo (padrão) retorna { ano, mes, totalRegistros, resumo[] } agregado por tipoFolha com registros, totalBruto e mediaBruta; modo=detalhe retorna { count, total, remuneracoes[] } com a composição individual (remuneracaoBasica, vantagensPessoais, funcaoComissionada, horasExtras, bruto etc.), limitada por limite (padrão 50, máx 500) com aviso se truncado. Filtre por nome ou tipoFolha no detalhe para evitar listas longas. Para o cadastro de servidores use senado_servidores.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoYesAno de referência
mesYesMês de referência
modoNoresumo = totais por tipo de folha (padrão); detalhe = composição individualresumo
nomeNoNome do servidor (busca parcial)
limiteNoMáximo de linhas no modo detalhe (padrão: 50)
tipoFolhaNoFiltrar por tipo de folha (busca parcial)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety traits are already clear. The description adds behavioral details: explains the return structures for both modes (aggregated vs individual), mentions truncation with 'aviso' if limit exceeded, and specifies that results are limited by 'limite' (max 500), providing useful context beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single paragraph but well-structured: it starts with the core purpose, then details mode options with output structures, followed by filtering and pointing to a sibling tool. Every sentence adds value, no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (2 modes, multiple optional filters, limit parameter, and output schema), the description covers all aspects: it explains output structure for both modes, truncation behavior, how to avoid large result sets, and even cross-references the related tool for employee registry. It is fully self-contained for an agent to use correctly.

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

Parameters4/5

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

Schema coverage is 100% with descriptions for all 6 parameters, so the schema already documents them. However, the description adds value by explaining the effect of 'nome' and 'tipoFolha' filters, the default behavior of 'modo', and practical usage tips like filtering to avoid long lists, enhancing understanding beyond bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves remuneration data for Senate employees for a given year/month from 2013 onwards. It distinguishes from sibling tools by explicitly mentioning that for employee registry one should use 'senado_servidores'.

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

Usage Guidelines5/5

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

It explains when to use 'resumo' (default) vs 'detalhe' mode, advises filtering by 'nome' or 'tipoFolha' in detalhe to avoid long lists, and points to the alternative tool 'senado_servidores' for employee registry, providing clear guidance on when to use this tool vs alternatives.

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

senado_requerimentos_cpiA
Read-onlyIdempotent
Inspect

Lista requerimentos de uma CPI (Comissão Parlamentar de Inquérito) em atividade, pela siglaCpi, com paginação por pagina (índice baseado em 0, definido pelo upstream). Retorna { siglaCpi, pagina, count, requerimentos }, onde requerimentos é a lista de registros brutos da página (campos conforme a API: tipicamente número, data, ementa, autor e situação do requerimento). count é o tamanho da página; uma página além do total retorna count 0 — use isso para saber que as páginas acabaram. CPIs sem requerimentos retornam lista vazia. Descubra as siglas via senado_listar_comissoes com tipo=cpi.

ParametersJSON Schema
NameRequiredDescriptionDefault
paginaNoPágina da lista (padrão: 0)
siglaCpiYesSigla da CPI (ex: CPIVD, CPIPED)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already indicate safe read operation; description adds pagination termination condition (count=0), empty result behavior, and return structure. No contradictions.

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?

Single paragraph, front-loaded with purpose and key details. Efficient but could be slightly more structured; no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists, description adequately covers return keys and pagination logic. Also references sibling tool for discovering CPIs. Complete for agent to use independently.

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 covers both parameters with full descriptions (examples, min, default). Description adds pagination context but does not significantly enhance parameter meaning beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it lists requerimentos of a CPI, specifies parameters (siglaCpi, pagina), and explains output structure. It distinguishes from sibling senado_listar_comissoes by directing users to that tool for getting CPI siglas.

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

Usage Guidelines5/5

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

Explicitly tells when to use (to list requerimentos of a CPI), how to paginate (zero-based index, stop when count=0), and provides alternative for discovering siglas via sibling tool. No exclusion criteria needed.

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

senado_resultado_plenarioA
Read-onlyIdempotent
Inspect

Resultado das sessões plenárias numa data: itens de pauta apreciados, pareceres e resultados. Retorna { data, escopo, count, sessoes } (todas as sessões da data, sem paginação), com cada sessão trazendo codigoSessao, numeroSessao, data, hora, tipo, casa e itens (codigoMateria, identificacao, ementa, resultado, parecerresultado/parecer podem vir null em itens ainda não deliberados). Sem sessão na data, count é 0 e sessoes vem vazio. escopo: sf (Senado), cn (Congresso) ou mes (resumo do mês). Para a pauta prévia use senado_agenda_plenario; orientação de bancada via senado_orientacao_bancada.

ParametersJSON Schema
NameRequiredDescriptionDefault
dataYesData da sessão (YYYYMMDD); para escopo=mes, qualquer dia do mês
escopoNosf = Senado no dia; cn = Congresso no dia; mes = resumo do mêssf

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior5/5

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

Discloses return structure, pagination (none), null fields for undecided items, and edge case of no session (count=0, sessoes empty). Annotations already indicate read-only and idempotent, so description adds specific behavioral context.

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?

Description is well-structured with front-loaded purpose, then return details, edge case, and sibling references. Slightly long but every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema and annotations exist, the description covers return format, parameter details, edge cases, and distinguishes from siblings. No gaps.

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

Parameters4/5

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

Schema has 100% description coverage, but description adds meaning: date pattern YYYYMMDD and that escopo=mes accepts any day of the month. It also explains the three escopo values in Portuguese.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it returns results of plenary sessions on a date, listing items, opinions, and outcomes. It distinguishes from sibling tools like senado_agenda_plenario and senado_orientacao_bancada.

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

Usage Guidelines5/5

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

Explicitly tells when to use (results of plenary sessions) and when not to (use senado_agenda_plenario for agenda, senado_orientacao_bancada for bancada orientation). Also explains escopo parameter.

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

senado_resultado_vetoA
Read-onlyIdempotent
Inspect

Resultado da votação nominal de um veto presidencial. Retorna { codigo, tipo, resultado }, onde resultado é o objeto bruto da API (já sem wrappers), com campos variáveis conforme o veto — tipicamente identificação do veto, sessão/data, placar e situação da apreciação; pode vir objeto vazio quando o veto ainda não foi votado, e a chamada retorna erro se o codigo não existir. Informe codigo e tipo: veto (código do veto, padrão), materia (código do projeto vetado) ou dispositivo (dispositivo de veto parcial). Obtenha o código do veto via senado_vetos.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoNoveto = código do veto (padrão); materia = código do projeto vetado; dispositivo = dispositivo de veto parcialveto
codigoYesCódigo do veto, da matéria ou do dispositivo, conforme o tipo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. Description adds behavioral details: return format with empty object possibility, error condition, and parameter effects. No contradiction.

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?

Three sentences, front-loaded with purpose. Concise yet informative; no redundant information. One slight improvement could be combining error and empty object statements.

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?

Given the presence of an output schema (implied), the description covers key return behavior, edge cases (empty and error), and parameter context. Sufficient for a simple veto result tool.

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

Parameters4/5

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

Schema coverage is 100%. Description adds meaning beyond schema by explaining the 'tipo' enum values and the default behavior, plus how to obtain code via another tool. Adds value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Resultado da votação nominal de um veto presidencial' with specific verb and resource. It distinguishes from sibling tools like senado_vetos by focusing on the voting result itself.

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

Usage Guidelines4/5

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

Provides explicit context: returns empty object if not yet voted, error if code invalid, and directs to senado_vetos for obtaining the code. Does not explicitly state when not to use, but clear usage guidance is given.

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

senado_reuniao_comissaoA
Read-onlyIdempotent
Inspect

Detalha uma reunião de comissão pelo codigoReuniao. Retorna um objeto com codigo, titulo, comissao, data, hora, local, situacao, realizada, secreta, presidente, links urlPauta/urlResultado/urlAta e partes (cada parte com evento e itens apreciados: identificacao, ementa, relator, resultado). Obtenha o codigoReuniao em senado_agenda_comissoes ou senado_reunioes_comissao.

ParametersJSON Schema
NameRequiredDescriptionDefault
codigoReuniaoYesCódigo da reunião (campo 'codigo' na agenda de comissões)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. The description adds value by detailing the returned object structure (fields and nesting). No contradictions. No additional behavioral traits mentioned, but the tool is simple and read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action and structured enumeration of returned fields. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (single parameter, no enums, output schema present), the description fully explains the input source, output structure, and nesting. No gaps.

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

Parameters4/5

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

Schema coverage is 100% with a description for codigoReuniao. The description adds meaning by linking the parameter to values from other tools, which goes beyond the schema's basic description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb 'Detalha' and resource 'reunião de comissão', clearly stating it details a commission meeting by codigoReuniao. It lists the returned fields and distinguishes from siblings by indicating how to obtain the input code from senado_agenda_comissoes or senado_reunioes_comissao.

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

Usage Guidelines4/5

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

The description explicitly states to obtain codigoReuniao from two sibling tools, providing clear context for when to use this tool. It does not explicitly state when not to use, but the guidance is sufficient for the agent.

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

senado_reunioes_comissaoA
Read-onlyIdempotent
Inspect

Lista reuniões de uma comissão (pela sigla) num intervalo dataInicio/dataFim (YYYYMMDD); sem datas, usa os últimos 30 dias. Retorna { sigla, periodo, count, reunioes }, cada reunião com codigo, descricao, data, hora, local, tipo e situacao. Intervalos entre anos são divididos por ano internamente. Descubra a sigla via senado_listar_comissoes; use o codigo retornado em senado_reuniao_comissao para os detalhes da pauta.

ParametersJSON Schema
NameRequiredDescriptionDefault
siglaYesSigla da comissão
dataFimNoData fim (YYYYMMDD)
dataInicioNoData início (YYYYMMDD)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Annotations already indicate read-only and non-destructive behavior. The description adds beyond that: the 30-day default and internal splitting of year-spanning ranges. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (4 sentences), front-loaded with purpose, followed by output structure and usage notes. Every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given annotations and output schema, the description fully covers purpose, behavior, output structure, and tool chaining. It is complete for an agent to correctly select and invoke.

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

Parameters5/5

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

Schema coverage is 100% with descriptions. The description adds meaning by specifying date format (YYYYMMDD), clarifying 'sigla' usage, and explaining date range defaults and split behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Lista' (lists) and the resource 'reuniões de uma comissão' (committee meetings). It distinguishes from siblings by explicitly mentioning how to find the 'sigla' and how to get detailed agenda using related tools.

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

Usage Guidelines5/5

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

The description provides explicit context for when to use the tool (lists meetings by committee and date range), when not (use senado_listar_comissoes to find sigla, senado_reuniao_comissao for details), and explains the default behavior when dates are omitted.

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

senado_search_processosA
Read-onlyIdempotent
Inspect

Busca processos legislativos no endpoint v3 /processo (parâmetros complementares ao senado_buscar_materias). Retorna { count, processos }, cada item com id, codigoMateria, identificacao, ementa, tipoDocumento, dataApresentacao, autoria, tramitando e normaGerada. É obrigatório ao menos um filtro (sigla, número, ano, autor ou período; janela de datas máx. 1 ano). Use o id retornado em senado_obter_processo para detalhes.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno do processo
autorNoNome do autor
siglaNoSigla do tipo de processo (ex: PL, PEC)
numeroNoNúmero do processo
tramitandoNoEm tramitação (S/N)
dataFimApresentacaoNoData fim da apresentação (YYYYMMDD ou YYYY-MM-DD)
codigoParlamentarAutorNoCódigo do parlamentar autor
dataInicioApresentacaoNoData início da apresentação (YYYYMMDD ou YYYY-MM-DD; janela máxima de 1 ano)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. Description adds mandatory filter requirement and date window limit, plus return structure. No contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, includes constraints and return shape. No unnecessary words. Efficient and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with 8 parameters, 0 required, output schema, sibling link, and constraining rules, the description is fully informative. No gaps.

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 100%, so baseline is 3. Description mentions filter types (sigla, número, ano, autor, período) but doesn't detail each parameter beyond schema. Adequate but not exceptional.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it searches for legislative processes using endpoint v3 `/processo` and explicitly distinguishes from sibling `senado_buscar_materias` as complementary. Verb+resource+scope are specific.

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

Usage Guidelines5/5

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

Provides explicit when-to-use: 'É obrigatório ao menos um filtro...' and directs to sibling `senado_obter_processo` for details. Also states constraints like max 1-year date window.

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

senado_search_votacoesA
Read-onlyIdempotent
Inspect

Busca e lista votações do plenário combinando critérios opcionais. Janela temporal: informe dias (últimos N dias, 1-365) para atividade recente, OU dataInicio/dataFim (YYYYMMDD) para um período arbitrário — para um ano inteiro use dataInicio: "AAAA0101" e dataFim: "AAAA1231". Demais filtros: idProcesso, codigoMateria, sigla/numero/ano da matéria, codigoParlamentar e siglaVotoParlamentar. Retorna { count, votacoes } ordenadas da mais recente para a mais antiga; cada item traz codigoSessao, data, materia, codigoMateria, resultado e placar (totalSim/totalNao/totalAbstencao), sem votos nominais. Use senado_obter_votacao com o codigoSessao para os votos de cada senador.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno da matéria
diasNoJanela: votações dos últimos N dias (ignorado se dataInicio/dataFim forem informados)
siglaNoSigla do tipo de matéria
numeroNoNúmero da matéria
dataFimNoData fim (YYYYMMDD)
dataInicioNoData início (YYYYMMDD)
idProcessoNoID do processo legislativo
codigoMateriaNoCódigo da matéria
codigoParlamentarNoCódigo do parlamentar
siglaVotoParlamentarNoTipo de voto do parlamentar

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds that results are aggregated (no nominal votes), ordered from most recent, and return fields like codigoSessao, data, materia, etc. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single paragraph organized logically: purpose, temporal constraints, other filters, return format, sibling tool reference. Every sentence adds value, no redundancy. Very concise for the amount of information conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 10 optional parameters, no required, and the presence of an output schema (implied by context signals), the description covers all needed aspects: purpose, filtering options, output structure, ordering, and lacking details (nominal votes). It's complete for an agent to use this tool effectively.

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

Parameters4/5

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

Schema covers all 10 parameters with descriptions. The description adds value by explaining the interplay between 'dias' and date range parameters, and gives an example for a full year. It also lists the other filter types, enhancing understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Busca e lista votações do plenário combinando critérios opcionais' (searches and lists plenary votes with optional criteria). It distinguishes itself from siblings like senado_obter_votacao (which gets details for a specific session) and senado_votacoes_senador (votes per senator) by focusing on search and listing with multiple filters.

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

Usage Guidelines5/5

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

Provides explicit guidance on temporal filter exclusivity: use 'dias' for recent activity OR 'dataInicio'/'dataFim' for arbitrary periods, with an example for a full year. Also recommends senado_obter_votacao for nominal votes, giving a clear alternative.

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

senado_senadores_adminA
Read-onlyIdempotent
Inspect

Dados administrativos dos senadores conforme o parâmetro tipo: auxilio-moradia{ tipo, count, senadores } (nome, uf, partido, auxilioMoradia, imovelFuncional; legislatura atual). escritorios-apoio{ tipo, count, escritorios } (senador, uf, partido, setor, endereco, telefone). aposentados{ tipo, count, aposentados } ex-senadores aposentados pelos planos de previdência do Congresso (IPC e PSSC), com nome, tipo do plano, dataInicial, remuneracao. Filtros opcionais uf e nome (busca parcial) aplicam-se a auxilio-moradia e escritorios-apoio; nome também filtra aposentados. Cada tipo retorna count 0 e lista vazia quando não há registros. Para gastos de cota parlamentar use senado_ceaps.

ParametersJSON Schema
NameRequiredDescriptionDefault
ufNoFiltrar por estado (auxilio-moradia/escritorios-apoio)
nomeNoFiltrar por nome do senador (busca parcial)
tipoYesQual dado administrativo consultar

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive. Description adds edge-case behavior (empty lists with count 0) and detailed return structures, adding value beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficiently formatted with examples and structured explanation of three tipos. Every sentence is informative, no fluff. Front-loaded with purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given rich annotations, output schema, and three parameters, the description is complete: covers all tipos, filters, empty behavior, and cross-reference to related tool. No gaps.

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

Parameters4/5

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

Schema covers 100% of parameters. Description clarifies that uf/nome filters apply to specific tipos, and nome also filters aposentados. This goes beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it provides 'dados administrativos dos senadores' and lists three specific tipos with return structures. It distinguishes from sibling tool senado_ceaps by directing CEAPS queries elsewhere.

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

Usage Guidelines4/5

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

Explicitly mentions when to use alternative tool (senado_ceaps) for different data. Describes filter applicability and empty-result behavior. Could expand on relative to other siblings like senado_listar_senadores.

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

senado_senadores_afastadosA
Read-onlyIdempotent
Inspect

Lista os senadores atualmente afastados (fora de exercício). Retorna { count, senadores }, cada item com codigo, nome, nomeCompleto, partido, uf, foto e emExercicio (sempre false). Não requer parâmetros. Use codigo em senado_obter_senador para o detalhe; para os senadores em exercício (e busca por nome) use senado_listar_senadores.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint. Description adds value by detailing return structure and stating that emExercicio is always false, which is beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, then details. No redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters and an existing output schema, the description fully covers the tool's behavior, return structure, and usage context.

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

Parameters4/5

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

No parameters, so baseline is 4. Description adds no extra param info, but none is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verb 'Lista' and resource 'senadores atualmente afastados', clearly distinguishing it from siblings like senado_listar_senadores (for active senators).

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

Usage Guidelines5/5

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

Explicitly states no parameters needed and provides direct guidance on when to use alternatives: use senado_obter_senador for detail on a senator, and senado_listar_senadores for active senators or search by name.

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

senado_senador_historicoA
Read-onlyIdempotent
Inspect

Histórico funcional de um senador conforme o parâmetro tipo. Valores: licencas (itens com dataInicio/dataFim/descricao), comissoes (sigla/nome/casa/participacao/datas), cargos (comissao/cargo/datas), historico-academico (cursos, registros brutos da API), filiacoes (partido/nomePartido/dataFiliacao/dataDesfiliacao) e profissoes (nome). Retorna { codigoSenador, tipo, count, itens }, com a forma de cada item dependente do tipo; tipos sem registros para o senador retornam count 0 e itens vazio. Requer codigoSenador (obtenha via senado_listar_senadores). Para dados biográficos e mandatos use senado_obter_senador.

ParametersJSON Schema
NameRequiredDescriptionDefault
tipoYesQual histórico consultar
codigoSenadorYesCódigo único do senador

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive. The description adds behavioral details such as the response structure (`codigoSenador, tipo, count, itens`) and behavior for empty results (count 0, empty itens), which supplements the annotations effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise yet comprehensive, packing all essential information into a single paragraph. Sentences are front-loaded with the main purpose, and each subsequent clause adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of multiple `tipo` values and varying item structures, the description fully explains the response shape and edge cases (e.g., empty results). The presence of an output schema is inferred, and the description bridges any gaps, making the tool well-understood.

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

Parameters5/5

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

Schema coverage is 100%, and the description enriches each `tipo` value by describing the fields returned (e.g., for `licencas`: `dataInicio`, `dataFim`, `descricao`). It also clarifies that `historico-academico` returns raw API records, adding meaning beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description specifies the tool retrieves functional history of a senator based on the `tipo` parameter. It lists each value with its associated fields, effectively distinguishing it from siblings like `senado_obter_senador`, which handles biographical data and mandates.

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

Usage Guidelines5/5

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

The description explicitly states the prerequisite `codigoSenador` (obtained via `senado_listar_senadores`) and directs users to `senado_obter_senador` for biographical data and mandates, providing clear when-to-use and when-not-to-use guidance.

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

senado_servidoresA
Read-onlyIdempotent
Inspect

Lista servidores do Senado por situacao (ativos, efetivos, comissionados ou inativos), com filtros opcionais por nome, lotacao e cargo. Retorna { situacao, count, total, servidores[] }, cada item com nome, vinculo, situacao, cargo, funcao, lotacao, anoAdmissao etc. Aplica limite (padrão 50, máx 500) e inclui aviso quando há truncamento — refine os filtros. Para remuneração use senado_remuneracoes_servidores; para estagiários/pensionistas/quantitativos use senado_pessoal_tabelas.

ParametersJSON Schema
NameRequiredDescriptionDefault
nomeNoNome do servidor (busca parcial)
cargoNoCargo (busca parcial)
limiteNoMáximo de resultados (padrão: 50)
lotacaoNoLotação/setor (busca parcial, ex: SEGRAF)
situacaoNoQual lista consultar (padrão: ativos)ativos

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already confirm read-only and idempotent. Description adds concrete behavioral details: applies limit (default 50, max 500), includes truncation warning. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single, dense paragraph that efficiently conveys purpose, filters, return shape, limit behavior, and sibling references. No superfluous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With full schema coverage and output schema present, the description covers all essential aspects: main action, optional filters, return format, truncation handling, and alternative tools. No gaps.

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

Parameters4/5

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

Schema has 100% coverage, so baseline is 3. Description adds value by explaining parameter usage in context (e.g., 'busca parcial' for nome, lotacao, cargo) and clarifying return structure with count and total.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists servers by situation with optional filters. It specifies the return structure and distinguishes from sibling tools by pointing to alternatives for remuneration and interns/pensioners.

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

Usage Guidelines5/5

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

Provides explicit guidance on when to use (list servers by situation) and when to use alternatives (remuneration, interns/pensioners). It also advises refining filters when truncation occurs.

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

senado_suprimento_fundosA
Read-onlyIdempotent
Inspect

Suprimento de fundos do Senado (adiantamentos a supridos): relação anual de supridos, atos de concessão, empenhos, movimentações ou transações de cartão corporativo, conforme tipo. Retorna { ano, tipo, count, total, registros } (snake_case da API administrativa), filtrável por filtro textual e limitado por limite (padrão 100, máx 500); ao truncar, inclui aviso. Informe o ano (>=2010); use os mesmos códigos administrativos vistos em senado_contratacoes_lista ou senado_execucao_orcamentaria para cruzar gastos.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoYesAno de referência
tipoNoQual relação consultar (padrão: supridos)supridos
filtroNoFiltro textual (nome, unidade...)
limiteNoMáximo de resultados (padrão: 100)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already indicate safe, read-only, idempotent behavior. The description adds significant behavioral detail: return format {ano, tipo, count, total, registros}, filtering by filtro textual, pagination with limite (default 100, max 500), truncation resulting in aviso, and snake_case naming. This goes well beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that packs purpose, options, return format, filtering, and cross-reference hints without redundancy. Every part is essential and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters (100% schema coverage), rich annotations, and an output schema, the description adds the final missing pieces: output structure, truncation behavior, and cross-reference advice. It is fully complete for an agent to use correctly.

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

Parameters4/5

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

Schema covers all parameters (100% coverage). The description adds context: ano must be >=2010, tipo has specific options with default 'supridos', filtro is for textual search (ex: nome, unidade), and limite has default and max. It does not enumerate all tipo values, but the schema already does. The added value is moderate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool is for 'Suprimento de fundos do Senado' and lists specific data types (supridos, atos-concessao, etc.), matching the name precisely. It distinguishes itself from siblings by mentioning cross-referencing with senado_contratacoes_lista and senado_execucao_orcamentaria, providing context that this tool is for financial advances rather than procurement or budget execution.

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

Usage Guidelines4/5

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

The description specifies when to use the tool: for annual suprimento data with year >=2010, and recommends reusing administrative codes from sibling tools for cross-referencing. It does not explicitly state when not to use it or list alternatives, but the context is sufficient for an agent to choose this tool for the right scenario.

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

senado_tabelas_plenarioA
Read-onlyIdempotent
Inspect

Tabelas de referência do plenário para resolver códigos e domínios. Retorna { tabela, count, total, linhas } com as linhas da tabela escolhida em tabela: tipos-sessao, tipos-comparecimento ou legislaturas. filtro faz busca textual e limite corta o resultado (padrão 100). Use para interpretar campos como tipo retornados por senado_agenda_plenario e senado_resultado_plenario.

ParametersJSON Schema
NameRequiredDescriptionDefault
filtroNoFiltro textual
limiteNoMáximo de linhas (padrão: 100)
tabelaYesTabela de referência a consultar

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds value by specifying the return format (`{ tabela, count, total, linhas }`) and the behavior of `filtro` (text search) and `limite` (result cutoff with default 100). No contradictions.

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 description is concise (two sentences) and front-loaded with purpose, then details return format and parameter behavior. It covers all needed information without extraneous text.

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?

Given the tool's simplicity and the presence of a complete output schema (mentioned in context), the description adequately covers purpose, parameters, return format, and usage context. It could mention pagination if any, but for a reference table lookup it seems complete.

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

Parameters4/5

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

Schema coverage is 100% with descriptions, but the description adds operational context: 'filtro faz busca textual' and 'limite corta o resultado (padrão 100)', clarifying how they affect the query beyond the schema's basic descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it provides reference tables for the plenary to resolve codes and domains, explicitly listing the three tables (tipos-sessao, tipos-comparecimento, legislaturas) and mentioning its use to interpret fields like 'tipo' from sibling tools. This distinguishes it from other tools.

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

Usage Guidelines4/5

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

The description explicitly tells when to use it: 'Use para interpretar campos como `tipo` retornados por `senado_agenda_plenario` e `senado_resultado_plenario`.' It implies a consultative role but does not explicitly state when not to use it or provide alternatives, though the sibling context makes it clear.

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

senado_tabelas_processoA
Read-onlyIdempotent
Inspect

Consulta tabelas de referência do processo legislativo (parâmetro tabela): siglas, assuntos, classes, destinos, entes, tipos-situacao/decisao/autor/atualizacao/documento/conteudo-documento/prazo. Retorna { tabela, count, total, linhas } com as linhas brutas da tabela escolhida — cada linha traz tipicamente um código/sigla e a descrição do domínio (campos conforme a API). filtro textual opcional (sobre sigla/descrição) e limite padrão 200 (máx. 1000); count 0 quando o filtro não casa. Use para resolver códigos/siglas antes de filtrar em senado_search_processos e ferramentas afins.

ParametersJSON Schema
NameRequiredDescriptionDefault
filtroNoFiltro textual aplicado sobre sigla/descrição
limiteNoMáximo de linhas (padrão: 200)
tabelaYesTabela de referência a consultar

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate safe read-only behavior. Description adds key behavioral details: return format 'tabela, count, total, linhas', optional 'filtro' applied to sigla/description, default 'limite' of 200 (max 1000), and that 'count' is 0 when no match. No contradictions.

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?

Description is reasonably concise and well-structured: starts with purpose, then return format, then parameter details, then usage guidance. Could be slightly more compact, but no unnecessary sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given presence of output schema and annotations, the description covers all necessary aspects: what the tool returns, parameter constraints, usage context (resolving codes for search tools), and edge cases (count=0). Fully adequate for agent 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?

Input schema provides 100% coverage with descriptions for all three parameters. The description reinforces the purpose of 'filtro' (over sigla/description) and 'limite' (default 200, max 1000) but does not add significant new meaning beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool consults reference tables for legislative processes, enumerates the specific tables via 'tabela' parameter, and explicitly distinguishes from sibling tools by stating its purpose is to resolve codes before filtering in 'senado_search_processos' and related tools.

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

Usage Guidelines4/5

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

Provides explicit guidance on when to use the tool (resolve codes before filtering in 'senado_search_processos' and related tools) and mentions edge cases (count=0 when filter doesn't match). Does not explicitly state when not to use it or list alternatives, but the context is clear.

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

senado_tabelas_referenciaA
Read-onlyIdempotent
Inspect

Consulta tabelas de referência do Senado pelo parâmetro tabela. Valores: tipos-materia{ count, tipos } (sigla/nome/descricao dos tipos de proposição, p.ex. PEC, PL, MPV) — use para achar a sigla correta antes de senado_buscar_materias/senado_search_processos; partidos{ count, totalSenadores, partidos } (partidos com bancada atual, ordenados por nº de senadores); ufs{ count, totalSenadores, ufs } (as 27 UFs com a contagem de senadores em exercício); legislatura-atual{ numero, periodo, dataInicio, dataFim } da legislatura vigente; tipos-norma{ count, tipos } (sigla/descricao dos tipos de norma para senado_buscar_legislacao); tipos-uso-palavra{ count, tipos } (codigo/descricao para interpretar tipoUsoPalavra em senado_discursos_senador). Toda resposta inclui o campo tabela. Para a relação nominal de parlamentares use senado_listar_senadores.

ParametersJSON Schema
NameRequiredDescriptionDefault
tabelaYesQual tabela de referência consultar: tipos-materia, partidos, ufs, legislatura-atual, tipos-norma ou tipos-uso-palavra

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, etc. Description adds details about return structures (e.g., 'count, tipos', 'totalSenadores, partidos') and the constant 'tabela' field, providing context beyond annotations.

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?

Description is moderately long but well-organized with bullet-like structure using semicolons. Front-loaded with main verb. No redundant phrases, though it packs many details into a single paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple 1-parameter tool, description covers purpose, all parameter values, return structures, connections to other tools, and edge cases (e.g., 'Toda resposta inclui o campo tabela'). Highly complete.

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

Parameters4/5

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

Schema coverage is 100% with enum and description. The description adds detailed meaning for each enum value, including return shapes and usage context, which enhances understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Consulta tabelas de referência do Senado pelo parâmetro tabela', enumerates all possible values and their output structures. It distinguishes from sibling tools like senado_listar_senadores for parliamentarian lists.

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

Usage Guidelines5/5

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

Explicitly says when to use: to find correct sigla before senado_buscar_materias/senado_search_processos, and to interpret tipoUsoPalavra in senado_discursos_senador. Also directs to senado_listar_senadores for nominal list.

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

senado_terceirizadosA
Read-onlyIdempotent
Inspect

Lista colaboradores terceirizados do Senado, filtráveis (busca parcial, sem acento) por nome, empresa contratada ou lotação. Retorna { count, total, terceirizados }, cada item com nome, cpf, situacao, empresa, lotacao e numeroContrato. A lista completa é baixada e filtrada no Worker; resultados limitados a limite (padrão 50, máx 500), com aviso ao truncar. Para a empresa contratante e seus contratos, use senado_empresas_contratadas.

ParametersJSON Schema
NameRequiredDescriptionDefault
nomeNoNome do colaborador (busca parcial)
limiteNoMáximo de resultados (padrão: 50)
empresaNoNome da empresa contratada (busca parcial)
lotacaoNoLotação/setor (busca parcial)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds that the full list is downloaded and filtered in the Worker, and results are limited with a truncation warning, providing useful behavioral context beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words. First sentence covers purpose, filterability, and return structure. Second sentence adds technical details and sibling reference. Highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given annotations and output schema (though not shown in input, description lists fields), the description is complete for an AI agent to understand what the tool does, how to use it, and what to expect. Includes warning about truncation.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. The description adds that nome, empresa, lotacao are partial search without accents, and limits the resultado limit to limite with default and maximum. This adds meaningful value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists outsourced employees of the Senate, with filtering by name, company, or location. It distinguishes from the sibling tool 'senado_empresas_contratadas' by explicitly directing users to that tool for different needs.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool (to list outsourced employees with filtering) and when not (for empresa contratante, use 'senado_empresas_contratadas'). This provides clear guidance on alternatives.

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

senado_vetosA
Read-onlyIdempotent
Inspect

Lista vetos presidenciais em apreciação pelo Congresso Nacional, por ano ou por status de tramitação. Retorna { count, total, aviso?, vetos }, com cada veto trazendo codigo, identificacao, ementa, emTramitacao, materiaVetada e dataLimiteVotacao. limite controla o corte (padrão 100; aviso indica truncagem). Informe ano OU status (tramitando/antes-rcn/encerrados). Para o resultado da votação de um veto use senado_resultado_veto.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoVetos do ano informado
limiteNoMáximo de resultados (padrão: 100)
statusNotramitando = pós-RCN 1/2013 em tramitação (padrão); antes-rcn = anteriores à RCN; encerrados = tramitação encerrada

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A5/5.0
Behavior5/5

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

Annotations already indicate readOnly, openWorld, idempotent, non-destructive. Description adds that 'aviso' indicates truncation, and details return fields. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise, well-structured: first sentence states purpose, second explains return format, third provides usage guidelines. No wasted words; essential information front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists, description still adds value by explaining the structure and enums. Covers all relevant aspects: filtering, truncation, and alternative tool for different purpose.

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

Parameters5/5

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

All 3 parameters have descriptions in schema (100% coverage). Description adds default behavior for 'limite', clarifies 'ano' vs 'status' mutual exclusivity, and explains status enum values beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists presidential vetoes under consideration by the National Congress, by year or status, and specifies the return structure. It distinguishes from sibling tool 'senado_resultado_veto' used for voting results.

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

Usage Guidelines5/5

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

Explicit instructions: use 'ano' OR 'status' (with enum values explained), and 'limite' for truncation. Directs to 'senado_resultado_veto' for different use case. Provides clear context for when to use this tool.

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

senado_videos_taquigrafiaA
Read-onlyIdempotent
Inspect

Lista os vídeos e áudios (unidades descritivas) de uma sessão plenária ou reunião de comissão. Retorna { id, tipo, count, videos }, onde cada item traz codigo, data, descricao, orador, duracaoSegundos, e links urlVideo, urlAudio, urlThumbnail. Obtenha o id da sessão via senado_agenda_plenario/senado_resultado_plenario ou da reunião via senado_reuniao_comissao; use orador para filtrar pelo nome de quem fala e senado_notas_taquigraficas para a transcrição textual correspondente.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesCódigo da sessão plenária ou da reunião de comissão
tipoNosessao = plenário (padrão); reuniao = comissãosessao
oradorNoFiltra unidades por nome do orador

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

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

Annotations (readOnlyHint, idempotentHint, destructiveHint) are consistent. The description adds context about the source of the id and the output structure, which is transparent and non-contradictory.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (approximately 4-5 lines) with the main purpose front-loaded. It efficiently includes return details, parameter guidance, and links to sibling tools without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (3 parameters, clear output structure), the description fully covers how to use it, where to get the id, and how to complement with related tools. It is complete and actionable.

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 100% with descriptions for all parameters. The description reinforces the schema by explaining 'id' as a session/meeting code, 'tipo' default, and 'orador' filter. It adds marginal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists videos/audios from a session or committee meeting, specifies the return structure with fields, and distinguishes from sibling tools like senado_notas_taquigraficas that provide transcripts.

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

Usage Guidelines4/5

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

The description explains how to obtain the required 'id' parameter by referencing related tools (senado_agenda_plenario, senado_resultado_plenario, senado_reuniao_comissao) and suggests filtering by 'orador' and using senado_notas_taquigraficas for transcripts. It provides clear context but does not explicitly state when not to use the tool.

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

senado_votacao_comissaoA
Read-onlyIdempotent
Inspect

Lista votações em comissões. O parâmetro por (padrão comissao) define o eixo da consulta: por: comissao → exige siglaComissao; lista as votações daquela comissão. por: senador → exige codigoSenador; lista os votos do senador em comissões (filtro opcional comissao). por: materia → exige sigla, numero e ano (ex.: PL 2630/2020); lista as votações da proposição em comissões (filtro opcional comissao). Em todos os casos aceita período opcional dataInicio/dataFim (YYYYMMDD) e retorna { por, ...contexto, count, votacoes }, cada votação com codigo, data, comissao, materia, descricao, resultado, totais (totalSim/totalNao/totalAbstencao) e votos (senador, partido, voto). Sem paginação. Obtenha siglas via senado_listar_comissoes, codigoSenador via senado_listar_senadores; para votações no plenário use senado_votos_materia.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno da proposição (obrigatório quando por=materia)
porNoEixo da consulta: comissao, senador ou materiacomissao
siglaNoSigla do tipo da proposição (obrigatório quando por=materia; ex: PL, PEC)
numeroNoNúmero da proposição (obrigatório quando por=materia)
dataFimNoData fim (YYYYMMDD)
comissaoNoSigla da comissão para filtrar (por=senador ou por=materia)
dataInicioNoData início (YYYYMMDD)
codigoSenadorNoCódigo do senador (obrigatório quando por=senador)
siglaComissaoNoSigla da comissão (obrigatório quando por=comissao; ex: CCJ, CAE)

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.8/5.0
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds valuable context about the return format (fields like codigo, data, comissao, etc.), no pagination, and parameter interactions, going beyond what annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with an overview sentence, bullet-like explanation of each mode, output format details, and references to other tools. It is concise yet thorough, with no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with three modes, 9 parameters, and an output schema, the description covers all essential aspects: required parameters per mode, optional filters, output format, and how to obtain prerequisite data. It is fully complete given the complexity.

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

Parameters5/5

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

Although schema description coverage is 100%, the description adds significant meaning by explaining which parameters are required based on the 'por' value, and how optional filters like 'comissao' work. This contextual usage information is highly valuable beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Lista votações em comissões' and explains the three modes (comissao, senador, materia) with specific requirements. It distinguishes from sibling tool senado_votos_materia for plenary votes, meeting the high standard for purpose clarity.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use each mode, required parameters, and tells the user to obtain siglas from senado_listar_comissoes and codigoSenador from senado_listar_senadores. It also directs users to senado_votos_materia for plenary votes, offering clear alternatives.

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

senado_votacoes_senadorA
Read-onlyIdempotent
Inspect

Lista as votações nominais de um senador, mostrando como votou em cada matéria. Retorna { periodo, count, votos }, cada voto com codigoVotacao, data, materia, descricao, voto e resultado, ordenados da mais recente para a mais antiga. Sem período usa o ano corrente; informe ano ou o par dataInicio/dataFim (YYYYMMDD). Requer codigoSenador (obtenha via senado_listar_senadores); para detalhes de uma votação específica use senado_obter_votacao.

ParametersJSON Schema
NameRequiredDescriptionDefault
anoNoAno das votações
dataFimNoData fim (YYYYMMDD)
dataInicioNoData início (YYYYMMDD)
codigoSenadorYesCódigo único do senador

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it specifies the return structure (periodo, count, votos), each vote's fields, ordering from most recent to oldest, default period behavior (current year), and date format requirements. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured paragraph that front-loads the purpose, then covers return format, period options, prerequisites, and alternative tool. Every sentence adds value with no redundancy.

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 list tool with 4 parameters (1 required), rich annotations, and an output schema, the description is quite complete. It covers how to get the senator code, period specification, return structure, ordering, and alternative tool. Minor omission: no mention of pagination or error handling, but the output schema likely covers the return format.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaning by explaining the alternative period specification (ano or dataInicio/dataFim) and the date format (YYYYMMDD), as well as linking to senado_listar_senadores for codigoSenador.

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 clearly states it lists nominal votes of a senator with voting details. It references sibling tools for obtaining the senator code and for specific vote details, but does not explicitly differentiate from other vote-listing tools like senado_votos_materia.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool (to list a senator's votes), how to obtain the required parameter codigoSenador via senado_listar_senadores, and suggests senado_obter_votacao for detailed vote information. It also explains period options and defaults.

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

senado_votos_materiaA
Read-onlyIdempotent
Inspect

Obtém as votações de uma matéria pelo codigoMateria. Retorna { codigoMateria, count, votacoes }, cada item com data, descricao, resultado e placar (totalSim/totalNao/totalAbstencao); com incluirVotos: true (padrão false) acrescenta votos[] (nome, partido, uf e voto de cada senador). Obtenha o codigoMateria via senado_buscar_materias ou senado_obter_materia.

ParametersJSON Schema
NameRequiredDescriptionDefault
incluirVotosNoIncluir votos nominais de cada senador
codigoMateriaYesCódigo único da matéria

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint, idempotentHint, and non-destructive behavior. The description adds value by detailing the output structure (codigoMateria, count, votacoes with fields data, descricao, resultado, placar) and the effect of incluirVotos (adding votos[]), which is beyond the annotation scope.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact yet comprehensive: it states the purpose in one sentence, details the return structure, explains the optional parameter's effect, and provides prerequisite guidance. No redundant words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the two parameters, full annotation coverage, and presence of an output schema, the description sufficiently covers all relevant aspects: what the tool does, required input, optional parameter behavior, output format, and how to obtain the required parameter. No gaps.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description enhances understanding by explaining that incluirVotos (default false) adds a votos array with nome, partido, uf, voto for each senator, and that codigoMateria is the unique code, providing context beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Obtém as votações de uma matéria pelo codigoMateria', specifying the verb (obtém), resource (votações de uma matéria), and the required identifier (codigoMateria). It distinguishes from siblings like senado_buscar_materias (search) and senado_obter_materia (details) by focusing on voting data.

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

Usage Guidelines4/5

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

The description explicitly recommends obtaining codigoMateria via senado_buscar_materias or senado_obter_materia, providing clear prerequisite guidance. While it doesn't explicitly state when not to use the tool, the focused purpose implies the context.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 66 tool updatesv3.3.3
    • Changedsenado_agenda_comissoes2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_agenda_plenario2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_autores_atuais2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_buscar_legislacao4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / numero / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / numero / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_buscar_materias7 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / dataFimApresentacao
        Added value: +{
        +  "description": "Data final de apresentação (YYYYMMDD ou YYYY-MM-DD)",
        +  "pattern": "^(\\d{8}|\\d{4}-\\d{2}-\\d{2})$",
        +  "type": "string"
        +}
      • addedInput schema / properties / dataInicioApresentacao
        Added value: +{
        +  "description": "Data inicial de apresentação (YYYYMMDD ou YYYY-MM-DD)",
        +  "pattern": "^(\\d{8}|\\d{4}-\\d{2}-\\d{2})$",
        +  "type": "string"
        +}
      • addedInput schema / properties / numero / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / ordem
        Added value: +{
        +  "default": "desc",
        +  "description": "Direção da ordenação quando ordenarPor=dataApresentacao",
        +  "enum": [
        +    "asc",
        +    "desc"
        +  ],
        +  "type": "string"
        +}
      • addedInput schema / properties / ordenarPor
        Added value: +{
        +  "default": "dataApresentacao",
        +  "description": "Ordenação local; padrão dataApresentacao para favorecer pedidos recentes",
        +  "enum": [
        +    "relevancia",
        +    "dataApresentacao"
        +  ],
        +  "type": "string"
        +}
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ceaps4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codSenador / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codSenador / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_contratacao_detalhe3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_contratacoes_lista2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_contratos2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_discurso_texto3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoPronunciamento / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_discursos_plenario2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_discursos_senador3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoSenador / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_distribuicao_materias4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoParlamentar / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentar / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_consultas_analise3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / minimoVotos / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_consultas_votos2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_listar_consultas3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / pagina / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_listar_eventos2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_listar_ideias3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / pagina / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_obter_consulta3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_obter_evento3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_obter_ideia3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_ecidadania_sugerir_tema_enquete4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • removedInput schema / properties / criterios / additionalProperties
        Removed value: -false
      • addedInput schema / properties / criterios / properties / minimoParticipacao / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_empresas_contratadas2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_encontro_plenario3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigo / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_execucao_orcamentaria2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_horas_extras2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_licitacoes2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_liderancas4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoParlamentar / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentar / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_listar_blocos1 field changed
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_listar_comissoes2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_listar_senadores3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / legislatura / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_mesa2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_notas_taquigraficas5 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / sequenciaFim / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / sequenciaInicio / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_bloco3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigo / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_comissao2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_legislacao3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigo / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_materia3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoMateria / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_processo3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / idProcesso / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_senador3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoSenador / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_obter_votacao3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoVotacao / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_orcamento_parlamentar2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_orientacao_bancada2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_pessoal_tabelas2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_processo_detalhe10 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoColegiado / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoColegiado / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / codigoMateria / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentar / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentar / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / codigoParlamentarAutor / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentarAutor / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / idProcesso / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_remuneracoes_servidores2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_requerimentos_cpi3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / pagina / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_resultado_plenario2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_resultado_veto3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigo / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_reuniao_comissao3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoReuniao / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_reunioes_comissao2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_search_processos8 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / ano / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / ano / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / codigoParlamentarAutor / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentarAutor / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / numero / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / numero / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_search_votacoes12 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / ano / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / ano / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / codigoMateria / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoMateria / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / codigoParlamentar / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / codigoParlamentar / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / idProcesso / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / idProcesso / minimum
        Added value: +-9007199254740991
      • addedInput schema / properties / numero / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / numero / minimum
        Added value: +-9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_senador_historico3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoSenador / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_senadores_admin2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_senadores_afastados1 field changed
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_servidores2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_suprimento_fundos2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_tabelas_plenario2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_tabelas_processo2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_tabelas_referencia2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_terceirizados2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_vetos2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_videos_taquigrafia3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / id / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_votacao_comissao4 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoSenador / maximum
        Added value: +9007199254740991
      • addedInput schema / properties / numero / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_votacoes_senador3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoSenador / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
    • Changedsenado_votos_materia3 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • addedInput schema / properties / codigoMateria / maximum
        Added value: +9007199254740991
      • changedOutput schema / additionalProperties
        Previous value: -trueNew value: +{}
  2. 66 tool updatesv3.3.1
    • First observedsenado_agenda_comissoes
    • First observedsenado_agenda_plenario
    • First observedsenado_autores_atuais
    • First observedsenado_buscar_legislacao
    • First observedsenado_buscar_materias
    • First observedsenado_ceaps
    • First observedsenado_contratacao_detalhe
    • First observedsenado_contratacoes_lista
    • First observedsenado_contratos
    • First observedsenado_discurso_texto
    • First observedsenado_discursos_plenario
    • First observedsenado_discursos_senador
    • First observedsenado_distribuicao_materias
    • First observedsenado_ecidadania_consultas_analise
    • First observedsenado_ecidadania_consultas_votos
    • First observedsenado_ecidadania_listar_consultas
    • First observedsenado_ecidadania_listar_eventos
    • First observedsenado_ecidadania_listar_ideias
    • First observedsenado_ecidadania_obter_consulta
    • First observedsenado_ecidadania_obter_evento
    • First observedsenado_ecidadania_obter_ideia
    • First observedsenado_ecidadania_sugerir_tema_enquete
    • First observedsenado_empresas_contratadas
    • First observedsenado_encontro_plenario
    • First observedsenado_execucao_orcamentaria
    • First observedsenado_horas_extras
    • First observedsenado_licitacoes
    • First observedsenado_liderancas
    • First observedsenado_listar_blocos
    • First observedsenado_listar_comissoes
    • First observedsenado_listar_senadores
    • First observedsenado_mesa
    • First observedsenado_notas_taquigraficas
    • First observedsenado_obter_bloco
    • First observedsenado_obter_comissao
    • First observedsenado_obter_legislacao
    • First observedsenado_obter_materia
    • First observedsenado_obter_processo
    • First observedsenado_obter_senador
    • First observedsenado_obter_votacao
    • First observedsenado_orcamento_parlamentar
    • First observedsenado_orientacao_bancada
    • First observedsenado_pessoal_tabelas
    • First observedsenado_processo_detalhe
    • First observedsenado_remuneracoes_servidores
    • First observedsenado_requerimentos_cpi
    • First observedsenado_resultado_plenario
    • First observedsenado_resultado_veto
    • First observedsenado_reuniao_comissao
    • First observedsenado_reunioes_comissao
    • First observedsenado_search_processos
    • First observedsenado_search_votacoes
    • First observedsenado_senador_historico
    • First observedsenado_senadores_admin
    • First observedsenado_senadores_afastados
    • First observedsenado_servidores
    • First observedsenado_suprimento_fundos
    • First observedsenado_tabelas_plenario
    • First observedsenado_tabelas_processo
    • First observedsenado_tabelas_referencia
    • First observedsenado_terceirizados
    • First observedsenado_vetos
    • First observedsenado_videos_taquigrafia
    • First observedsenado_votacao_comissao
    • First observedsenado_votacoes_senador
    • First observedsenado_votos_materia

TDQS

A4.2/5.0
Disambiguation4/5

Most tools have clearly distinct purposes due to detailed descriptions, but some overlap exists between tools like `senado_buscar_materias` and `senado_search_processos`, and `senado_contratacoes_lista` vs `senado_contratos`. Descriptions help agents differentiate, but subtle differences may cause misselection.

Naming Consistency4/5

Tool names consistently use the `senado_` prefix and snake_case, with a verb-noun pattern. However, verbs mix English and Portuguese (e.g., `buscar`, `listar`, `obter`, `search`), and some are not verbs (e.g., `senado_ceaps`). The pattern is recognizable but not perfectly uniform.

Tool Count2/5

With 66 tools, the server far exceeds the typical well-scoped range of 3-15 tools. The high granularity (e.g., separate tools for each e-Cidadania detail) creates unnecessary complexity. Many tools could be consolidated into fewer, more general endpoints.

Completeness5/5

The tool surface is remarkably comprehensive, covering legislative tracking, voting, e-Cidadania, contracts, personnel, and administrative data. It covers most anticipated queries for the Brazilian Senate domain, with no obvious gaps.

Maintenance

ActivityActive
ResponsivenessSlow

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    Not graded
    maintenance
    Enables interaction with the Brazilian Chamber of Deputies Open Data API, providing access to information about legislators, legislative proposals, voting records, events, committees, and parliamentary activities through 57 typed and validated tools.
    63
    -
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides access to the Brazilian Chamber of Deputies open data API. It enables users to search for deputies, track their expenses, and query legislative information such as bills and API endpoints.
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to query Brazilian Senate data including senators, bills, voting records, committees, and plenary sessions through natural language.
    25
    6
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SidneyBissoli/senado-br-mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server