Skip to main content
Glama
SidneyBissoli

Senado BR — Brazilian Federal Senate Open Data

Discursos de um senador

senado_discursos_senador
Read-onlyIdempotent

List a Brazilian senator's speeches and apartes filtered by date and house, returning metadata. Specify a start/end date to get full speech history; apartes include complete history.

Instructions

Lista pronunciamentos de um senador, filtráveis por período e casa. tipo (padrão discursos) alterna entre discursos (falas próprias) e apartes (intervenções em falas de outros) — muda a fonte upstream e o conteúdo, mantendo a mesma estrutura. Retorna { codigoSenador, tipo, count, discursos } sem paginação (count 0 e lista vazia quando não há pronunciamentos no período), cada item com codigo, data, casa, tipoUsoPalavra, resumo, indexacao, url e nomeParlamentar — sem o texto integral. ATENÇÃO: para tipo=discursos, omitir dataInicio/dataFim faz a fonte retornar SOMENTE os últimos 30 dias (frequentemente vazio) — para o histórico, informe o período explícito (ex.: desde o início do mandato); apenas apartes traz o histórico completo sem período. Obtenha o codigoSenador via senado_listar_senadores e o texto completo em senado_discurso_texto (campo codigo). Para discursos de todos os senadores num período use senado_discursos_plenario, não esta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
casaNoRestringe à casa: SF (Senado Federal) ou CN (Congresso Nacional); vazio traz ambas
tipoNodiscursos = pronunciamentos próprios (padrão); apartes = intervenções em discursos de outros — altera a fonte e o conteúdo retornadodiscursos
dataFimNoFim do período (YYYYMMDD); para tipo=discursos, omitir o período limita a resposta aos últimos 30 dias
dataInicioNoInício do período (YYYYMMDD); use junto com dataFim. Para tipo=discursos, sem período a fonte retorna só os últimos 30 dias
codigoSenadorYesCódigo único do senador

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv3.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / casa / description
      Previous value: -"Casa legislativa (SF=Senado, CN=Congresso)"New value: +"Restringe à casa: SF (Senado Federal) ou CN (Congresso Nacional); vazio traz ambas"
    • changedInput schema / properties / dataFim / description
      Previous value: -"Data fim (YYYYMMDD)"New value: +"Fim do período (YYYYMMDD); para tipo=discursos, omitir o período limita a resposta aos últimos 30 dias"
    • changedInput schema / properties / dataInicio / description
      Previous value: -"Data início (YYYYMMDD)"New value: +"Início do período (YYYYMMDD); use junto com dataFim. Para tipo=discursos, sem período a fonte retorna só os últimos 30 dias"
    • changedInput schema / properties / tipo / description
      Previous value: -"discursos (próprios) ou apartes (intervenções em discursos de outros)"New value: +"discursos = pronunciamentos próprios (padrão); apartes = intervenções em discursos de outros — altera a fonte e o conteúdo retornado"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changedv3.3.3
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / codigoSenador / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  3. First observedv3.3.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover readOnly/idempotent/openWorld safety, which says nothing about the operational behavior disclosed here: tipo swaps the upstream source, results are unpaginated, empty periods yield count 0 with an empty list, and the return omits the integral text. The 30-day default window for tipo=discursos is a critical non-obvious gotcha that no annotation or schema field conveys on its own.

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?

Front-loaded with the core summary, then the return shape, then the period caveat and routing hints — a sensible order. It is a dense single block and the 30-day warning is partially duplicated between prose and schema, but nearly every sentence carries distinct operational 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 5 params, an enum, an output schema, and a crowded sibling namespace, the description supplies everything an agent needs: data source, return shape, non-pagination behavior, the period pitfall, prerequisite tool for the senator code, and follow-up tool for the full text.

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 baseline is 3, and individual param docs are largely mirrored here. Above baseline because the description explains the cross-parameter interaction (tipo silently changes what dataInicio/dataFim mean and which upstream source is queried), which per-field schema descriptions do not capture.

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?

Specific verb+resource (lista pronunciamentos de um senador) with explicit scope modifiers (período, casa). It also names the exact siblings it is not: senado_discursos_plenario for all senators and senado_discurso_texto for full text, so an agent can route without opening schemas.

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 when-to-use chain: get codigoSenador via senado_listar_senadores, get full text via senado_discurso_texto, use senado_discursos_plenario for all senators in a period. It also states the when-not condition (this tool is only for one senator's own pronunciamentos).

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

Deploy Server

Other Tools