Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_pncp_contrato_por_orgao

Read-onlyIdempotent

Retrieve a specific Brazilian public procurement contract from PNCP using the organization's CNPJ, contract year, and sequential number. Supports contract analysis and price research.

Instructions

Consulta um contrato específico no PNCP.

Endpoint /v1/orgaos/{cnpj}/contratos/{ano}/{sequencial}. Cache 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anoYesAno do contrato.
cnpjYesCNPJ do órgão.
sequencialYesSequencial do contrato.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.14

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint=true, idempotentHint=true, and destructiveHint=false, the description goes beyond annotations by disclosing the concrete REST endpoint and the 15-minute cache behavior. This gives useful context about data freshness and network behavior without any contradiction.

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?

Three short, purposeful sentences: the operation, the endpoint, and the cache TTL. Every sentence earns its place with no filler or repetition.

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 single-record lookup with an output schema and safety annotations, the description is nearly complete, adding endpoint path and cache duration. It only lacks explicit routing against the many sibling contract tools, which is already penalized under usage guidelines.

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 endpoint template reinforces how each parameter maps to the URL path, but the description adds no new meaning about formats, ranges, or validation beyond what the schema already specifies.

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 states a specific verb ('Consulta') and resource ('um contrato específico no PNCP'), and the endpoint path defines exactly which contract is retrieved. It does not explicitly contrast with sibling list/consult tools, but the unique identifiers (cnpj, ano, sequencial) make the single-record lookup clear.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives such as compras_pncp_contratos_listar, compras_pncp_contratacao_por_orgao, or compras_contratos_consultar. The only added context is the endpoint and cache TTL, which do not help with tool selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opedrosoares/MCP_Compras'

If you have feedback or need assistance with the MCP directory API, please join our Discord server