Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_obter_prompt

Renders a guided script that instructs an LLM to execute procurement workflows—such as contract analysis, supplier due diligence, or opportunity searches—by calling Compras.gov.br tools.

Instructions

Renderiza um MCP Prompt e devolve o texto pronto.

O texto retornado é o conteúdo da PromptMessage[0] — tipicamente um roteiro que orienta o LLM a executar um fluxo usando as tools deste servidor. Depois de obter o texto, o LLM normalmente segue as instruções dele, chamando outras tools conforme indicado.

Retorno: { "nome": str, "texto": str, # conteúdo renderizado pronto para usar "argumentos_usados": dict, }

Se o prompt não existir ou faltar argumento obrigatório, retorna _erro com diagnóstico em vez de propagar exception.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nomeYesNome do prompt a renderizar. Use `compras_listar_prompts` para descobrir nomes disponíveis. Exemplos: `analisar_contratacao_pncp`, `dossie_due_diligence_fornecedor`, `oportunidades_carona_arp`.
argumentosNoMapa de argumentos exigidos pelo prompt. Os nomes e tipos vêm de `compras_listar_prompts`. Ex.: {"cnpj_orgao": "00394460000141", "ano": 2025, "sequencial": 12345}.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns the content of PromptMessage[0], describes error handling (returns '_erro' with diagnostic instead of exception), and specifies the return structure. Though it does not mention side effects or idempotency, the description covers the essential behavioral traits for a prompt-rendering tool.

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 concise at about five sentences, with the primary purpose stated first. Every sentence adds value: purpose, return content explanation, return structure, and error handling. No superfluous information.

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 the tool's simplicity (rendering a prompt) and the presence of an output schema described in the description, the information is complete. It covers what the tool does, how to use it (including referencing the sibling listing tool), the return format, and error behavior. The sibling list is large, but the description provides sufficient context for an agent to decide when to invoke this tool.

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 baseline is 3. The tool description does not add additional meaning beyond the schema's parameter descriptions. The schema already provides examples, references to list_prompts, and type constraints. The description's role is fulfilled by the schema, so no extra credit.

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?

The description clearly states 'Renderiza um MCP Prompt e devolve o texto pronto.' This is a specific verb+resource pair. It further explains the returned text is a script that guides the LLM to call other tools, distinguishing it from data-retrieval tools. The sibling list includes compras_listar_prompts, but this tool's purpose of rendering a specific prompt is distinct.

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?

The description explains that after obtaining the prompt text, the LLM typically follows its instructions to call other tools. It also advises using compras_listar_prompts to discover available prompt names. However, it does not explicitly state when not to use this tool or list alternatives, leaving a minor gap in exclusion guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opedrosoares/MCP_Compras'

If you have feedback or need assistance with the MCP directory API, please join our Discord server