Skip to main content
Glama
sii-boletas-mcp

sii-boletas-mcp

Revisar boleta (sin emitir)

sii_previsualizar_boleta
Read-only

Preview and validate a Chilean SII receipt against the issuer's real data before issuance, showing what would be issued without emitting anything.

Instructions

Valida una boleta contra los datos reales del emisor en el SII y muestra qué se emitiría. NO emite nada. Úsala siempre antes de sii_emitir_boleta y muéstrale el resumen al usuario.

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": {
      "medioPago": "<medioPago>",
      "lineas": "<lineas>"
    },
    "name": "sii_previsualizar_boleta"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNo39 = boleta afecta (con IVA, lo normal); 41 = boleta exenta.
totalNoTotal esperado en pesos, para validar la suma de las líneas.
lineasYes
receptorNoSolo si el cliente pide boleta con su RUT. Si se omite, va al RUT genérico 66666666-6.
sucursalNoCódigo de sucursal del SII, solo si la empresa tiene más de una.
medioPagoYesEF efectivo, TC tarjeta/pago electrónico, PE transferencia, CH cheque, OT otro.
rutEmpresaNoRUT de la empresa que emite (ej. 76123456-7). Si se omite, se usa SII_EMPRESA.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

readOnlyHint=true already declares the safe-read profile, and the description reinforces it with 'NO emite nada'. It adds genuinely new behavioral context: the validation runs against real SII emitter data, implying a remote call before anything is emitted. Auth requirements and rate limits are not mentioned, 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?

Three short sentences, front-loaded with what the tool does, followed by the critical non-emission guarantee and the usage rule. Every sentence carries distinct information with no repetition.

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 7-parameter tool with nested objects and no output schema, the description covers purpose, safety and the fact that a summary is returned. It doesn't say what the summary contains or how validation failures surface, which would be useful for an agent handling errors.

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 86%, so the schema already explains tipo, total, receptor, medioPago, sucursal and rutEmpresa. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

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 ('Valida'), a specific resource ('una boleta') and the scope ('contra los datos reales del emisor en el SII'), plus what it returns ('muestra qué se emitiría'). The explicit 'NO emite nada' makes it unmistakably distinct from sii_emitir_boleta.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ('Úsala siempre antes de sii_emitir_boleta') naming the sibling alternative, plus how the agent should handle the result ('muéstrale el resumen al usuario'). Nothing is left to inference.

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