Skip to main content
Glama

transparencia_lookup

Query Brazil’s Federal Government Transparency Portal by CNPJ or CPF to retrieve contracts, bids, agreements, public servant records, and sanctions for due diligence and compliance checks.

Instructions

Query the Brazilian Federal Government Transparency Portal (Portal da Transparência).

Available queries: contratos, licitacoes, convenios, servidores, sancoes. Requires a free API key from portaldatransparencia.gov.br.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cnpj": "<cnpj>",
      "tipo": "<tipo>"
    },
    "name": "transparencia_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYesCNPJ or CPF to search
tipoYesQuery type
paginaNoPage number (default: 1)
dataFimNoEnd date (DD/MM/YYYY, optional)
dataInicioNoStart date (DD/MM/YYYY, optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the authentication requirement, which is valuable context an agent cannot get from the schema. It does not state that the operation is a read-only lookup, nor does it mention rate limits, result caps, or what the returned records look like, leaving the behavioral profile only half-covered.

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 short lines, front-loaded with the resource identity, followed by the supported query set and the auth prerequisite. Nothing is padded, though the query list largely restates the enum rather than earning its space.

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

Completeness3/5

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

For a five-parameter, two-required lookup tool with no output schema and no annotations, the description covers identity, scope, and auth but not return shape, pagination behavior, or date-range semantics. An agent could call it correctly but could not predict what comes back or how results are bounded.

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%, so the baseline is 3; the schema already documents tipo's enum, date formats, and the page bound. The description duplicates the query-type list without adding format or edge-case meaning, notably omitting when the 'cnpj' field may legitimately hold a CPF, which the schema hints at but does not resolve.

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 names a specific verb ('Query') and a specific resource ('Brazilian Federal Government Transparency Portal'), then enumerates the five query domains, so an agent knows exactly what data surface it reaches. It stops short of differentiating itself from adjacent siblings such as pncp_licitacoes or ceis_cnep_lookup, so the sibling boundary is left implicit.

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

Usage Guidelines3/5

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

It gives a genuine prerequisite ('Requires a free API key from portaldatransparencia.gov.br') and implies usage through the enumerated query types. However, it never says when to choose this tool over the sibling licensing/sanctions tools, nor does it state any exclusions or conditions that would route an agent elsewhere.

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