Skip to main content
Glama

pncp_licitacoes

Search and filter Brazilian public procurement notices from PNCP by modality, publication dates, contracting agency CNPJ, or keyword to find relevant tenders.

Instructions

Browse published procurement notices via the PNCP (Portal Nacional de Contratações Públicas). To filter notices, pass modalidade_id, both publication dates, optional cnpj_orgao, and query as an empty string. For the legacy portal keyword search, provide query without modalidade_id. No API key required.

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": {
      "query": "<query>"
    },
    "name": "pncp_licitacoes"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesPortal search term, or empty string for filtered publications
paginaNoPage number (default: 1)
cnpj_orgaoNoContracting body's CNPJ (optional)
data_finalNoPublication end date (YYYY-MM-DD, DD/MM/YYYY or YYYYMMDD), required with modalidade_id
data_inicialNoPublication start date (YYYY-MM-DD, DD/MM/YYYY or YYYYMMDD), required with modalidade_id
modalidade_idNoPNCP contracting modality ID, e.g. 6 for Pregão Eletrônico

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that the tool browses published notices and requires no API key, and it explains the two query modes, but it omits rate limits, pagination behavior beyond the schema, error conditions, and result characteristics. Adequate but with clear gaps.

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 front-loaded with the purpose and then gives operational mode rules in a few tight sentences. Every sentence adds value, including the no-API-key note, with no redundant restatement of schema fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no annotations and no output schema, the description covers the essential invocation logic: purpose, two modes, required combinations, and authentication requirement. However, it does not describe pagination behavior, result shape, or failure behavior, leaving some contextual gaps for an agent calling the tool.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful conditional semantics beyond the schema: query must be an empty string when filtering, and omitting modalidade_id selects legacy portal keyword search. This clarifies the relationship among modalidade_id, the date parameters, cnpj_orgao, and query.

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?

States a specific verb and resource: 'Browse published procurement notices via PNCP.' It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools such as transparencia_lookup or querido_diario, which prevents a 5.

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?

Gives explicit two-mode usage: filtered notices require modalidade_id, both publication dates, optional cnpj_orgao, and query as an empty string; legacy keyword search uses query without modalidade_id. It does not explain when to choose this over sibling procurement or transparency sources, so not a 5.

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