Skip to main content
Glama

Dados Abertos Senado BR MCP

Estrutura organizacional

senado_estrutura_organizacional
Read-onlyIdempotent

Estrutura organizacional (organograma) do Senado Federal até o nível de serviço. Dada uma unidade (sigla como 'DGER' ou nome como 'Diretoria-Geral'), retorna { unidade, caminho[], totalSubordinadas, subordinadas[] }: caminho são os órgãos superiores (da cúpula até o superior imediato) e subordinadas são TODAS as unidades da subárvore (secretarias, coordenações, serviços e núcleos), cada uma com sigla, nome e nivel (profundidade relativa). Use para responder 'o que está sob a DGER', 'quais secretarias/serviços pertencem a X' ou para entender a hierarquia administrativa. Para CONTAR ou LISTAR servidores sob uma unidade, use senado_servidores com subordinadasA. Fonte: portal institucional (a API de dados abertos não publica a árvore completa).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limiteNoMáximo de subordinadas listadas (padrão: 200)
unidadeYesSigla (ex.: 'DGER', 'SEGRAF') ou nome (ex.: 'Diretoria-Geral') da unidade

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, openWorld, idempotent, and non-destructive behavior, so the description only needs to add context. It adds useful behavior: the return object shape, the meaning of `caminho` and `nivel`, and the data source limitation (portal institucional, since the open-data API does not publish the full tree). It does not contradict annotations, though the prose 'TODAS as unidades' is slightly at odds with the schema's `limite` cap without an explicit truncation note.

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 dense but every segment earns its place: definition, input/output behavior, example use cases, the explicit alternative, and the source caveat. It front-loads the core purpose so an agent scanning the first sentence already knows what the tool does. There is no filler or unnecessary repetition of the title.

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

Completeness4/5

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

For a two-parameter, read-only lookup with a present output schema, the description is nearly complete: it explains input format, output fields, depth semantics, typical use cases, and the alternative tool. It does not clarify behavior for unknown units or what happens when the subtree exceeds `limite` (whether `totalSubordinadas` reflects the true total), which an agent might need for correct interpretation. Overall it is sufficient for selection and basic invocation.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3. The schema already documents that `unidade` accepts a sigla or name and that `limite` is an integer from 1 to 1000 defaulting to 200. The description mostly mirrors this and adds only the relationship between `unidade` and the resulting subárvore, without extra formats, constraints, or edge-case guidance.

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 opens with a specific definition—organizational structure/organograma of the Senado Federal down to service level—and states exactly what is returned for a given `unidade`: `caminho`, `totalSubordinadas`, and all `subordinadas`. It also distinguishes itself from `senado_servidores` by clarifying that this tool is for hierarchy, not for counting/listando 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 gives concrete query intents ('o que está sob a DGER', 'quais secretarias/serviços pertencem a X') and explicitly says when not to use it: 'Para CONTAR ou LISTAR servidores sob uma unidade, use `senado_servidores` com `subordinadasA`.' This explicit when-to-use/when-not-to-use guidance is stronger than most sibling comparisons.

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.

TDQS

A4.1/5.0
Disambiguation2/5

Several tools perform overlapping functions (e.g., senado_buscar_materias vs senado_search_processos, senado_contratos vs senado_contratacoes_lista, and three e-cidadania consultation tools). Although descriptions are detailed, an agent can easily select the wrong one without deep inspection.

Naming Consistency3/5

All tools share the 'senado_' prefix, but the pattern is inconsistent: some use Portuguese verbs (buscar, listar, obter), others English 'search', and some are bare nouns (senado_ceaps, senado_mesa, senado_vetos). This mixed convention reduces predictability.

Tool Count2/5

67 tools is far above the 25 threshold, indicating an overgrown surface. While each tool may serve a niche endpoint, the sheer number makes it difficult for an agent to choose efficiently, and many tools could be consolidated.

Completeness4/5

The toolset covers nearly every aspect of Senate open data (legislative, senatorial, committee, administrative, financial, e-cidadania) with list/detail/searches. Minor gaps exist, such as no direct consolidated contract search, but most workflows can be achieved.