Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_pncp_modalidades

Read-onlyIdempotent

Get official PNCP contracting modality codes (Law 14.133) to identify and map modalidadeIdPncp values across Compras.gov.br procurement tools.

Instructions

Cheat sheet local: códigos de modalidade de contratação do PNCP.

Tool local (não chama upstream). Fonte: tabela oficial PNCP (Lei 14.133).

ATENÇÃO — duas tabelas em circulação no ecossistema Compras:

  • codigo aqui (PNCP) é o usado em TODAS as tools compras_pncp_* e em modalidadeIdPncp no payload de retorno.

  • O Dados Abertos / SIASG usa uma enumeração diferente em compras_contratacoes_14133_listar(codigo_modalidade_dados_abertos): campo equivalente_dados_abertos abaixo, ou None se a modalidade não estiver disponível naquele endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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.9/5.0
Behavior5/5

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

Annotations already mark this as readOnly, idempotent, and non-destructive, but the description adds genuinely useful behavioral context: it is a local tool that does not call upstream, its source is the official PNCP table, and there is a critical ecosystem-wide distinction between two modality-code tables. This helps an agent understand edge cases around data equivalence without needing external knowledge.

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 compact and well-structured: the core purpose is stated first, followed by the local/source facts, then the crucial disambiguation warning. Every sentence adds value, and the warning about the two tables is essential, not filler.

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 zero-parameter reference tool with an output schema present, the description provides all necessary context: what the data is, where it comes from, how it relates to other tools, and how to handle the Dados Abertos enum discrepancy. Nothing important is missing for an agent to use the tool correctly.

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 tool has zero parameters, so the empty input schema carries no burden. The description appropriately focuses on what the returned codes mean rather than parameter details, which is the relevant semantic context for a parameterless reference tool.

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 clearly identifies the tool as a local cheat sheet for PNCP contracting modality codes, with a specific scope and source (official PNCP table from Lei 14.133). It distinguishes itself from related tools by explicitly warning that its `codigo` is the PNCP enumeration used across all `compras_pncp_*` tools, whereas Dados Abertos/SIASG uses a different enumeration.

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?

The description gives explicit guidance on when this tool's codes apply and names the alternative endpoint (`compras_contratacoes_14133_listar`) for the different Dados Abertos/SIASG enumeration. It also explains the `equivalente_dados_abertos` field and its `None` value, which helps an agent choose correctly between the two encodings.

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