Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Emitir factura electrónica

sri_emitir_factura
Destructive

Generates, signs, and submits an Ecuadorian SRI invoice XML, then waits for authorization; in production it issues a real tax document and confirms data before sending.

Instructions

Flujo completo: genera el XML de la factura, lo firma, lo envía al SRI y espera la autorización. En 'produccion' emite un comprobante tributario real: confirma los datos con el usuario antes de llamar.

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": {
      "fechaEmision": "<fechaEmision>",
      "secuencial": "<secuencial>",
      "emisor": "<emisor>",
      "comprador": "<comprador>",
      "items": "<items>"
    },
    "name": "sri_emitir_factura"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
pagosNo
emisorYes
propinaNo
ambienteNoAmbiente del SRI. Por defecto: el configurado en SRI_AMBIENTE o 'pruebas'.
compradorYes
secuencialYes
fechaEmisionYesaaaa-mm-dd o dd/mm/aaaa
puntoEmisionNo001
infoAdicionalNoCampos adicionales, p. ej. { Email: '...' }
codigoNumericoNo
establecimientoNo001
intentosAutorizacionNoConsultas de autorización antes de rendirse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true; the description earns credit by clarifying that irreversibility applies specifically to the 'produccion' ambiente (versus 'pruebas') and that the call blocks waiting for SRI authorization. It still omits what happens on rejection or timeout and how intentosAutorizacion retries behave.

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?

Two sentences, both earning their place: the pipeline is stated first, the production risk warning second. No filler or repetition of the title.

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 13-parameter nested tool with no output schema, the description covers the flow and the production risk but never indicates what is returned (authorization state, número de autorización, clave de acceso) or what failure looks like. Adequate to call it, insufficient to interpret the result.

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

Parameters2/5

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

Schema description coverage is only 31% across 13 parameters with nested emisor/comprador/items objects, so the description carries a heavy burden and adds essentially nothing. Beyond echoing the 'produccion' value of the ambiente enum, no parameter meaning, defaults, or framing is explained in prose.

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?

Names a specific multi-step verb sequence (genera el XML, lo firma, lo envía al SRI, espera la autorización) for a concrete resource: an electronic invoice. The enumerated steps map onto the sibling tools (sri_generar_factura_xml, sri_firmar_comprobante, sri_enviar_comprobante, sri_consultar_autorizacion), letting an agent infer this is the end-to-end wrapper rather than a single-step tool, though it never states that contrast explicitly.

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

Usage Guidelines3/5

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

Provides a real operational precondition: in 'produccion' it issues a genuine tax document, so the user must confirm the data before calling. It does not state when to use this full pipeline versus the individual step tools, nor any exclusions or prerequisites such as certificate configuration, leaving the choice to inference.

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