Skip to main content
Glama
mcp-sienge

mcp-sienge

by Miranda-F

Listar pedidos de compra

sienge_pedidos_compra
Read-onlyIdempotent

List purchase orders filtered by period, status, approval, supplier, project, or buyer, and return totals by status and supplier to support procurement reporting and analysis.

Instructions

Lista pedidos de compra por período (data do pedido), situação, autorização, fornecedor, obra ou comprador, com total por situação e por fornecedor.

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": "sienge_pedidos_compra"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo
obra_idNo
data_fimNo
situacaoNoPENDING=pendente, PARTIALLY_DELIVERED=parcialmente entregue, FULLY_DELIVERED=totalmente atendido, CANCELED=cancelado
aprovacaoNo
compradorNoId do comprador (usuário do Sienge)
autorizadoNo
data_inicioNo
fornecedor_idNo
max_registrosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value by disclosing that results carry totals grouped by situação and fornecedor, but says nothing about pagination, record limits, or result ordering.

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?

A single front-loaded sentence with no filler, and the aggregation capability is stated up front rather than buried. It would read better split into scope and output sentences, and it omits the pagination caveat entirely.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, zero-required list tool with no output schema and low schema coverage, the description covers filter semantics and the shape of the aggregate result — the two things an agent most needs. Missing pieces are pagination behavior (offset, max_registros default 200 / cap 2000) and the aprovacao/autorizado distinction, which leaves real gaps.

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

Parameters4/5

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

With only 20% schema coverage, the description must compensate, and it does: it clarifies that the period refers to the order date ('data do pedido') rather than delivery date, and names the semantic role of situação, autorização, fornecedor, obra and comprador. It stops short of disambiguating 'aprovacao' vs 'autorizado' and never mentions offset/max_registros.

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?

States a specific verb and resource ('Lista pedidos de compra') and enumerates the filterable dimensions plus the aggregation ('total por situação e por fornecedor'). The list-vs-detail distinction from sienge_pedido_compra_detalhe is only implicit in the verb, not called out explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not guidance, no mention of prerequisites, and no routing to the detail tool for single-record lookups. The filtering phrase implies the intended use but never states it as guidance.

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