Skip to main content
Glama
sii-boletas-mcp

sii-boletas-mcp

Emitir boleta en el SII

sii_emitir_boleta
Destructive

Issues a real Chilean SII electronic receipt (boleta 39/41) only after preview and explicit confirmation; undo requires a credit note, not deletion.

Instructions

EMITE una boleta electrónica REAL en el SII (no se puede deshacer; se anula solo con nota de crédito). Antes, usa sii_previsualizar_boleta y obtén la confirmación explícita del usuario con el total. Si falla con 'No se sabe si la boleta se emitió', NO reintentes: pide al usuario revisar eboleta.sii.cl.

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>",
      "confirmado": "<confirmado>"
    },
    "name": "sii_emitir_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.
confirmadoYestrue solo si el usuario confirmó la emisión.
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?

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial context on top: the action cannot be undone, the only reversal path is a credit note, and there is a documented partial-failure state that must not be retried. It does not say what the successful response contains (e.g., folio), which keeps it below a 5 for a money-moving mutation.

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 the irreversibility warning, then the prerequisite, then the failure branch. No filler; each clause carries an operational instruction.

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 an 8-parameter, nested-object, irreversible mutation with no output schema, the description covers risk, prerequisites and failure handling well. The main remaining gap is that it never indicates what a successful emission returns (folio/timbre), which an agent would want before reporting back to the user.

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 88%, so the schema already documents tipo, total, lineas, receptor, medioPago and confirmado thoroughly. The description only reinforces that confirmation must include the total, which duplicates the schema's own note on confirmado and total, so it adds little new parameter meaning.

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?

Opens with a specific verb and resource ("EMITE una boleta electrónica REAL en el SII") and immediately distinguishes itself from the preview sibling by stressing REAL and irreversible. An agent knows exactly what this does and how it differs from sii_previsualizar_boleta without reading either schema.

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 prerequisite sequence (use sii_previsualizar_boleta first, obtain explicit user confirmation including the total) and an explicit when-not / do-not-retry rule for the ambiguous "No se sabe si la boleta se emitió" failure, with the recovery action named. This is textbook when-to-use vs. what-to-do-instead guidance.

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