Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_arp_consultar

Read-onlyIdempotent

Retrieves a Brazilian price registration agreement (ARP) by PNCP identifier, returning validity, modality, managing unit, and values. Flags when a purchase identifier is mistakenly used.

Instructions

Consulta uma ARP específica pelo identificador PNCP.

Endpoint Dados Abertos /modulo-arp/1.1_consultarARP_Id. Devolve o cabeçalho completo da ata (vigência, modalidade, gerenciadora, valores).

Quando o numero_controle_pncp_ata vem no formato de compra (sem o sufixo -NNNNNN que numera a ata), a tool detecta e devolve diagnóstico explícito em vez de propagar encontrada=false silencioso.

Cache 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numero_controle_pncp_ataYesIdentificador PNCP da **ata** (formato `cnpj14-1-sequencial/ano-NNNNNN`, onde NNNNNN numera a ata dentro da compra — compras SRP multi-fornecedor geram várias atas). Exemplo: `00394452000103-1-004729/2024-000006`. Retornado em `compras_arp_por_fim_vigencia` no campo `numeroControlePncpAta`. NÃO confundir com `numeroControlePncpCompra` (formato sem o sufixo).

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

A4.7/5.0
Behavior5/5

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

Read-only and idempotent hints already cover the safety profile, and the description adds non-obvious behavior: malformed purchase-format IDs produce an explicit diagnostic instead of a silent `encontrada=false`, and results are cached for 15 minutes. These are meaningful behavioral details not available from annotations.

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 paragraphs with no filler: purpose, endpoint, output, edge-case behavior, and cache policy. Each sentence earns its place, and the most important information is front-loaded.

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?

For a single-parameter read-only lookup, the description plus the rich schema and output schema cover everything needed: what it returns, how the input is identified, what happens on misuse, and caching behavior. Nothing required for correct invocation 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?

The schema already documents the single parameter with format, example, source field, and a warning about confusing purchase/ata IDs. The tool description adds further semantic value by explaining the failure behavior when the identifier uses the purchase-format, reinforcing why the `-NNNNNN` suffix matters.

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 states a specific verb and resource: 'Consulta uma ARP específica pelo identificador PNCP' and clarifies that it returns the complete ata header. The word 'específica' plus the PNCP identifier distinguishes it from the sibling list/search tools without ambiguity.

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

Usage Guidelines4/5

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

The description gives clear context for when to use this tool: to fetch one specific ARP by its PNCP ata identifier. The schema adds guidance on where the identifier comes from (compras_arp_por_fim_vigencia) and warns against confusing it with numeroControlePncpCompra, though it does not explicitly enumerate sibling alternatives.

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