list_licitacao_arquivos
List all files attached to a Brazilian public procurement (licitação) on PNCP, including PDFs, attachments, and terms of reference, returning metadata and direct URLs without downloading content.
Instructions
List the files (edital PDFs, attachments, terms of reference) attached to a licitação on PNCP. Returns metadata and direct URLs — does not download the file content.
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": "list_licitacao_arquivos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numeroControlePNCP | No | ||
| orgaoCnpj | No | ||
| ano | No | ||
| sequencial | No |
Implementation Reference
- src/schemas/pncp.ts:129-143 (schema)ArquivoSchema: Zod schema defining the shape of each file/attachment returned by the API.
export const ArquivoSchema = z .object({ sequencialDocumento: z.number(), titulo: z.string().nullable().optional(), tipoDocumentoNome: z.string().nullable().optional(), url: z.string().nullable().optional(), uri: z.string().nullable().optional(), dataPublicacaoPncp: z.string().nullable().optional(), cnpj: z.string().nullable().optional(), anoCompra: z.number().nullable().optional(), sequencialCompra: z.number().nullable().optional(), }) .passthrough(); export type Arquivo = z.infer<typeof ArquivoSchema>;