Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_orgao_consultar

Read-onlyIdempotent

Look up a Brazilian government agency by code to obtain its name, acronym, CNPJ, sphere, power, and quantities. Supports procurement planning and analysis.

Instructions

Consulta um órgão específico pelo código.

Devolve nome, sigla, CNPJ, esfera, poder e quantitativos. Cache 24h.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codigo_orgaoYesCódigo numérico do órgão (4-6 dígitos).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.14

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds value by disclosing the 24-hour cache and summarizing the returned data, which complements rather than contradicts the annotations.

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?

Three short sentences, all informative and front-loaded. The purpose, return content, and caching behavior are stated with no filler or redundancy.

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 low-complexity, single-parameter read-only lookup with a full output schema, the description is sufficient: it states what is queried, what is returned, and a behavioral caveat (cache). It does not need to restate return structure since the output schema exists.

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?

The input schema fully documents codigo_orgao as an integer with a 4-6 digit description, so the baseline is 3. The description only restates 'pelo código' and adds no new meaning beyond what the schema already provides.

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 description clearly states the verb 'Consulta' and the resource 'órgão específico pelo código', and lists returned fields. It is specific enough to distinguish from listing tools like compras_orgao_listar, though it never explicitly contrasts it with siblings.

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?

Usage is implied: use this tool when you have a specific órgão code. There is no explicit statement of when not to use it or what alternative to prefer if the code is unknown or if listing is required.

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