Skip to main content
Glama

Dados Abertos Senado BR MCP

Empresas contratadas

senado_empresas_contratadas
Read-onlyIdempotent

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) e totalContratos. 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.

Input Schema

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

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. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {},
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), so the bar is lower. The description still adds operational context beyond them: the one-of-nome/cnpj requirement despite zero required params, the 30-contract cap per item, and the default 20 / max 100 limit — all useful for calling it correctly.

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?

Front-loads purpose, then return shape/fields, then input constraints, then routing to siblings — a logical order. Every sentence carries distinct information with no padding.

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 so return values need not be re-described, yet the description usefully summarizes the envelope and per-item fields and caps. Combined with the constraint and routing notes, it is complete for a 3-param, read-only lookup 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%, so the per-field meanings (nome minimum length, partial search, limite default) are already documented and the baseline is 3. The description adds genuine meaning the schema does not encode: that at least one of nome or cnpj must be supplied, preventing a param-less call the schema would otherwise permit.

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 ("Busca") and resource ("empresas que contratam com o Senado") and narrows the search keys (nome mín. 3 caracteres ou CNPJ/CPF). It also names the siblings that own the detail view (senado_contratos, senado_contratacao_detalhe), so an agent can distinguish this list/lookup tool from them 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?

Explicitly states the selection condition ("Exige nome ou cnpj") and routes the agent to senado_contratos / senado_contratacao_detalhe for contract-level detail. It explains why the input is required ("a base completa é grande"), giving the agent a clear when-to-use and when-to-go-elsewhere rule.

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.