Skip to main content
Glama
pncp-mcp

pncp-mcp

by wallaceluis

Licitações publicadas num período

buscar_licitacoes_publicadas
Read-onlyIdempotent

Search published Brazilian public procurement notices by date range and tender modality, including closed processes, to identify relevant opportunities and results.

Instructions

Contratações (licitações, dispensas, inexigibilidades...) publicadas no PNCP entre duas datas, de uma modalidade. Inclui as já encerradas. Modalidades: 1 = Leilão eletrônico, 2 = Diálogo competitivo, 3 = Concurso, 4 = Concorrência eletrônica, 5 = Concorrência presencial, 6 = Pregão eletrônico, 7 = Pregão presencial, 8 = Dispensa de licitação, 9 = Inexigibilidade, 10 = Manifestação de interesse, 11 = Pré-qualificação, 12 = Credenciamento, 13 = Leilão presencial.

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": {
      "de": "<de>",
      "ate": "<ate>",
      "modalidade": "<modalidade>"
    },
    "name": "buscar_licitacoes_publicadas"
  }
}

Input Schema

NameRequiredDescriptionDefault
deYesPublicadas a partir de (AAAA-MM-DD)
ufNoSigla da UF, ex.: SP
ateYesPublicadas até (AAAA-MM-DD)
cnpjNoCNPJ do órgão (com ou sem pontuação)
textoNoPalavras que devem aparecer no objeto (sem diferenciar acento e maiúsculas). A API não busca por texto: o servidor percorre as páginas e filtra.
limiteNoQuantos registros devolver (padrão 20, máximo 50)
paginaNoPágina (só quando não há `texto`)
maxPaginasNoCom `texto`: quantas páginas de 50 percorrer no máximo
modalidadeYesCódigo ou nome da modalidade (a API exige uma), ex.: 8 ou "dispensa"
codigoMunicipioIbgeNoCódigo IBGE do município (7 dígitos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered. The description adds the useful fact that closed contratações are included in results, but says nothing about result volume, pagination behaviour, or server-side filtering limits beyond what the schema states.

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?

Purpose and scope are front-loaded in the first sentence, and the modality enumeration, while long, is reference data that cannot be compressed without losing the code mappings. No filler or restatement of the title.

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 10-parameter read-only search with no output schema, the description covers what the tool returns (contratações of one modality in a date window, closed ones included) and fully resolves the ambiguous required modality parameter. What is missing — return shape and the interaction between texto/maxPaginas and pagina — is largely addressed inside the schema itself.

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 baseline would be 3, but the description goes beyond the schema by supplying the full 1–13 modality code table — the schema's 'modalidade' field has no enum and only says 'Código ou nome', leaving the codes otherwise undiscoverable. This is genuine added meaning for a required parameter.

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 resource (contratações/licitações, dispensas, inexigibilidades) and an explicit scope: published in the PNCP between two dates for a single modality, including already-closed ones. This implicitly separates it from buscar_licitacoes_abertas, though that sibling is not named, so the differentiation is achieved by scope rather than by routing.

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?

Usage context is implied by the scope statement ('publicadas ... entre duas datas', 'inclui as já encerradas'), which tells the agent this is the historical/window-based query rather than an active-only one. There is no explicit when-to-use vs. when-not guidance and no sibling tool is named as the alternative.

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