Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_uasg_consultar

Read-onlyIdempotent

Look up a specific UASG by numeric code to obtain its name, acronym, linked CNPJ, superior body, and address. Use it to resolve an unknown UASG code before filtering procurement queries.

Instructions

Consulta uma UASG específica pelo código.

Devolve nome, sigla, CNPJ vinculado, órgão superior e endereço. Útil para resolver codigo_uasg antes de consultas filtradas.

✅ Restaurada em 2026-08-05 — ver compras_uasg_listar para o diagnóstico do 404 que afetava toda a família /modulo-uasg/*.

Busca primeiro entre as ativas; se não achar, repete entre as inativas (o upstream exige statusUasg e não aceita "ambas"), devolvendo ativa: false para UASGs extintas.

Cache 24h.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codigo_uasgYesCódigo numérico da UASG.

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

A4.1/5.0
Behavior5/5

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

The annotations already declare read-only, open-world, idempotent, and non-destructive behavior. The description adds valuable context beyond those hints: active-then-inactive fallback lookup, `ativa: false` for extinct UASGs, the upstream `statusUasg` limitation, and 24h cache behavior.

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?

The description is front-loaded with the core purpose, return fields, and primary use case, with edge-case behavior following. The restoration announcement adds some time-sensitive tangential information, but it does not obscure the invocation-relevant content.

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 has a single well-documented parameter and an output schema, the description is complete: it covers what the tool returns, when to use it, the extinct-UASG edge case, upstream limitations, and cache behavior. Nothing needed for correct selection and invocation is missing.

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%, and the schema already documents `codigo_uasg` as the numeric UASG code. The description's phrases 'pelo código' and 'resolver codigo_uasg' add no new format or semantic detail beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource ('Consulta uma UASG específica pelo código') and lists the returned fields. It does not explicitly differentiate from siblings like compras_uasg_buscar or compras_uasg_listar, but the by-code lookup scope is clear.

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?

It explicitly says the tool is useful for resolving `codigo_uasg` before filtered queries, which provides a clear use case. It does not provide explicit exclusions or name alternatives for when to use a different tool.

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