Skip to main content
Glama
mcp-sienge

mcp-sienge

by Miranda-F

Exportar consulta para CSV

sienge_exportar_csv
Read-onlyIdempotent

Exports complete ERP catalog data to a semicolon-separated CSV file for Excel using REST or Bulk GET queries, and returns the saved file path and record total.

Instructions

Executa uma consulta GET do catálogo (REST ou Bulk) buscando todos os registros até max_registros e grava um arquivo CSV (separador ';', abre no Excel) no computador local. Devolve o caminho do arquivo e o total. Use quando o usuário pedir a lista completa.

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_exportar_csv"
  }
}

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.
caminhoYes
parametrosNoParâmetros de query exatamente como documentados na rota (ex.: {"startDate":"2025-01-01"})
nome_arquivoNo
max_registrosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld, yet the description adds genuinely new behavior: it writes a file to the local machine, uses ';' as separator so it opens in Excel, and reports back the path and total. That local-write side effect is invisible in the annotations and is the most important thing for an agent to know. It does not state what happens on truncation at max_registros or on route errors.

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?

Three short sentences, front-loaded with what happens and followed by the return values and the usage trigger; nothing is padded. The Excel parenthetical arguably earns its place because it explains the separator choice, though it could be dropped without loss.

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?

With no output schema, the description correctly states the return shape (file path plus total row count), which is the key missing piece elsewhere. However, for a 6-parameter tool with a nested free-form 'parametros' object and two undocumented parameters, it leaves open which catalog route is queried, what 'catálogo' refers to, and what occurs when max_registros truncates the result.

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 50%: base, campos, parametros and max_registros are documented in the schema, while caminho (the only required parameter) and nome_arquivo carry no description at all, and the description does not fill that gap. The description does add real meaning for max_registros (it bounds the fetch) and implicitly explains that parametros must match the catalog route, but says nothing about how caminho or nome_arquivo are interpreted or whether the file is overwritten.

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 chain (executa GET do catálogo, busca registros, grava CSV) and the concrete artifact produced, plus what it returns (caminho e total). It distinguishes itself implicitly from a paginated query tool via 'buscando todos os registros até max_registros' and 'lista completa', but never names a sibling, so the differentiation must be inferred.

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?

'Use quando o usuário pedir a lista completa' gives a clear usage trigger tied to a user intent, which is exactly the kind of cue an agent needs. There is no explicit when-not, no mention of sienge_consultar or sienge_bulk as alternatives for partial/paged reads, and no guidance on choosing base='v1' vs 'bulk'.

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