Skip to main content
Glama
mcp-sienge

mcp-sienge

by Miranda-F

Consulta genérica (GET) no Sienge

sienge_consultar
Read-onlyIdempotent

Executes any cataloged GET query against the Sienge ERP API, replacing path parameters with concrete IDs and auto-paginating routes up to a record limit. Use it to retrieve financial, purchasing, inventory, or registration data.

Instructions

Executa qualquer consulta GET do catálogo (veja sienge_rotas). Informe o caminho concreto, com os ids no lugar dos {parâmetros}, ex.: '/purchase-orders/123/items'. Rotas paginadas são percorridas automaticamente até max_registros. Prefira as ferramentas específicas quando existirem.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "caminho": "<caminho>"
    },
    "name": "sienge_consultar"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNo"v1" para a API REST, "bulk" para Bulk Datav1
camposNoCampos a manter em cada item (ex.: ["id","name"]). Aceita ponto para campos internos.
offsetNo
caminhoYesCaminho da rota, ex.: /bills ou /enterprises/5
parametrosNoParâmetros de query exatamente como documentados na rota (ex.: {"startDate":"2025-01-01"})
max_registrosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds two non-obvious traits the annotations do not carry: paginated routes are auto-traversed up to max_registros, and the path must be concrete with ids substituted rather than templated. It does not mention error behavior or rate limits, keeping it short of a 5.

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?

Four short sentences, each carrying distinct information: what it does, how to build the path, pagination behavior, and the sibling preference. The path requirement and example are front-loaded right after the purpose statement, with no redundant restatement of the title.

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 generic open-world proxy with 6 parameters, nested objects, and no output schema, the description covers the highest-risk failure modes (templated paths, unpaginated expectations). Remaining gaps — response shape, how campos interacts with pagination, bulk vs v1 differences — are partially mitigated by schema-level descriptions, so it is complete enough without being exhaustive.

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 coverage is 67%, so the schema already documents most fields. The description adds real meaning for two of them — concrete path construction with ids replacing {parâmetros}, and max_registros acting as the auto-pagination ceiling — but says nothing about base (v1 vs bulk), campos projection, offset, or parametros encoding beyond the schema text.

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?

States a specific verb and resource ('executa qualquer consulta GET do catálogo') and positions itself as the generic escape hatch, pointing to sienge_rotas for the route catalog and naming the sibling category ('ferramentas específicas') it defers to. An agent can immediately tell this apart from the typed siblings like sienge_pedidos_compra or sienge_clientes.

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?

Gives clear selection guidance: use this for any catalog GET route, consult sienge_rotas to find the path, and prefer dedicated tools when they exist. It lacks an explicit when-not clause (e.g., what to do if a specific tool returns partial data), but the preference rule covers the main routing decision.

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