Skip to main content
Glama
pncp-mcp

pncp-mcp

by wallaceluis

Licitações com propostas abertas

buscar_licitacoes_abertas
Read-onlyIdempotent

Search Brazil's open public procurement tenders receiving proposals now, filtered by state, municipality, agency, modality, object keywords, or closing date.

Instructions

Licitações que estão recebendo propostas agora, com encerramento até ate. Filtre por UF, município, órgão, modalidade e palavras do objeto. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "buscar_licitacoes_abertas"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF, ex.: SP
ateNoEncerramento das propostas até esta data. Padrão: daqui a 30 dias (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
modalidadeNoCódigo ou nome da modalidade, ex.: 6 ou "pregão eletrônico"
codigoMunicipioIbgeNoCódigo IBGE do município (7 dígitos)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent and openWorld, so the safety profile is covered. The description adds the 'open for proposals now' liveness framing, but omits behavior the agent would care about, such as the server-side paging cost of text filtering and what a returned record contains (that detail lives only in the schema).

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?

Two sentences, front-loaded with the scope before the filtering options. The long code list is dense but every entry is load-bearing because the schema provides no enum for modalidade.

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 nine-parameter, zero-required read tool with no output schema, the definition plus the richly described schema cover nearly everything needed to call it correctly. The interrelation between `texto`, `pagina` and `maxPaginas` is only in the schema, and no return shape is sketched, leaving a small gap.

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 the baseline would be 3, but the description goes further by enumerating all 13 modalidade codes with meanings — critical since the schema declares no enum and only shows '6' as an example. The other eight parameters are left to the schema.

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 first clause states a specific resource and a precise temporal scope: licitações recebendo propostas agora, encerrando até `ate`. This implicitly separates it from buscar_licitacoes_publicadas (already published), though no sibling is named explicitly.

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 tells the agent which dimensions can be filtered (UF, município, órgão, modalidade, palavras do objeto), which implies when the tool fits. However, it never states when to prefer buscar_licitacoes_publicadas or detalhar_licitacao, and gives no exclusions or prerequisites.

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