Skip to main content
Glama

Dados Abertos Senado BR MCP

Tabelas de referência do plenário

senado_tabelas_plenario
Read-onlyIdempotent

Consulta tabelas de referência do plenário para resolver códigos/domínios, conforme tabela: tipos-sessao (espécies de sessão plenária), tipos-comparecimento (situações de presença) ou legislaturas (períodos legislativos com datas). Retorna { tabela, count, total, linhas } — count é o nº após o corte por limite e total o disponível; count < total indica truncagem (aumente limite); count 0 quando o filtro não casa. Cada linha traz o código/sigla e a descrição do domínio (campos conforme a API). Use para interpretar campos como tipo de senado_agenda_plenario/senado_resultado_plenario. Para tabelas do processo legislativo (assuntos, classes, situações) use senado_tabelas_processo. Ex.: { tabela: 'legislaturas' } ou { tabela: 'tipos-sessao', filtro: 'deliberativa' }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtroNoBusca textual sobre qualquer campo da linha; count 0 se nada casar
limiteNoMáximo de linhas (padrão 100, máx 500); count < total sinaliza corte
tabelaYesDomínio a consultar: tipos-sessao (espécies de sessão); tipos-comparecimento (situações de presença); legislaturas (períodos com datas)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed3 schema fields changed
    • changedInput schema / properties / filtro / description
      Previous value: -"Filtro textual"New value: +"Busca textual sobre qualquer campo da linha; count 0 se nada casar"
    • changedInput schema / properties / limite / description
      Previous value: -"Máximo de linhas (padrão: 100)"New value: +"Máximo de linhas (padrão 100, máx 500); count < total sinaliza corte"
    • changedInput schema / properties / tabela / description
      Previous value: -"Tabela de referência a consultar"New value: +"Domínio a consultar: tipos-sessao (espécies de sessão); tipos-comparecimento (situações de presença); legislaturas (períodos com datas)"
  4. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {},
      +  "type": "object"
      +}
  6. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the return shape, truncation signal (`count < total` means increase `limite`), and the empty-result condition (`count` 0 when `filtro` doesn't match). It omits any note on error handling or the raw API field variability, keeping it short of a 5.

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 purpose, then return shape, then usage routing, then examples — a logical order with no filler sentences. It does repeat the enum meanings that already appear in the schema, which is mild redundancy rather than 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?

An output schema exists, yet the description still clarifies the `count`/`total`/truncation semantics that matter for correct interpretation, and it supplies the cross-tool routing. Nothing an agent needs to call and interpret this tool 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 description coverage is 100%, so the baseline is 3, but the description earns extra by explaining the domain meanings of `tabela` and the interaction between `filtro`, `limite`, `count`, and `total` in a way the schema does not. Examples like `{ tabela: 'tipos-sessao', filtro: 'deliberativa' }` clarify intended usage further.

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?

States a specific verb and resource ('Consulta tabelas de referência do plenário'), names the three enumerable domains with their meanings, and explicitly distinguishes itself from the sibling 'senado_tabelas_processo'. An agent can identify exactly what it does and does not cover without opening the schema.

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 routes the agent: 'Use para interpretar campos como `tipo` de `senado_agenda_plenario`/`senado_resultado_plenario`' and 'Para tabelas do processo legislativo ... use `senado_tabelas_processo`'. It gives both the when-to-use and the concrete alternative with the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.