Skip to main content
Glama

Contratações publicadas por um órgão

contratacoes_do_orgao
Read-onlyIdempotent

Licitações e compras diretas que um órgão público publicou no período, de uma modalidade: objeto, valor estimado e homologado, situação e link no PNCP. Use para conhecer o histórico de compras de um órgão. Fonte: PNCP, filtrado pela data de publicação. NÃO cobre: compras fora do PNCP (órgãos que ainda não publicam lá), fornecedores vencedores (veja contratos_do_orgao) nem busca por texto. A modalidade é obrigatória no PNCP. Lista vazia só significa 'nada publicado' quando fontes[0].status é ok.

Input Schema

NameRequiredDescriptionDefault
paginaNoPágina (20 itens por página); veja total_paginas na resposta.
cnpj_orgaoYesCNPJ do órgão comprador (14 dígitos, com ou sem máscara).
data_finalNoAAAA-MM-DD. Padrão: hoje. Janela máxima de 366 dias.
modalidadeYesCódigo da modalidade: 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, 9 Inexigibilidade, 10 Manifestação de interesse, 11 Pré-qualificação, 12 Credenciamento, 13 Leilão presencial.
data_inicialNoAAAA-MM-DD. Padrão: 30 dias antes de data_final.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), yet the description adds real operational context: filtering by data de publicação, mandatory modalidade at PNCP, and the crucial caveat that an empty list only means 'nada publicado' when fontes[0].status is ok. It does not describe pagination behavior beyond what the schema already documents.

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?

Front-loaded with what the tool returns, then caveats and exclusions; every clause carries information. It is dense and slightly run-on, but there is no filler or restated boilerplate.

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?

Given an output schema exists (return values need not be explained) and annotations cover safety, what remains for the description is source, filter semantics, mandatory params, non-coverage and empty-result interpretation — all present. An agent has everything needed to call this correctly or pick the sibling instead.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains pagina, cnpj_orgao, date window/366-day limit and the full modalidade code table. The description reinforces that modalidade is obligatory but adds no syntax or format detail beyond the schema, which is exactly the baseline-3 case.

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?

States a specific resource and scope: licitações e compras diretas publicadas por um órgão, com os campos retornados (objeto, valor estimado/homologado, situação, link). It also names the sibling it is not (contratos_do_orgao) and the source of truth (PNCP), so an agent can distinguish it from contratacoes_abertas and contratos_do_orgao without opening any schema.

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?

Explicit when to use ('Use para conhecer o histórico de compras de um órgão') plus explicit exclusions ('NÃO cobre: compras fora do PNCP, fornecedores vencedores (veja `contratos_do_orgao`), nem busca por texto'). It even routes to the correct sibling by name, which is the strongest form of alternative guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources