Skip to main content
Glama

SRI Ecuador — Facturación electrónica

Generar RIDE (PDF)

sri_generar_ride
Read-only

Genera el RIDE (representación impresa en PDF) de una factura, nota de crédito o comprobante de retención a partir de su XML: el comprobante firmado o la respuesta de autorización del SRI (de ahí toma el número y la fecha de autorización). Incluye el código de barras de la clave de acceso, el detalle o las retenciones, los totales y la información adicional. Devuelve el PDF dentro de la respuesta.

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": {
      "xml": "<xml>"
    },
    "name": "sri_generar_ride"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesXML del comprobante (firmado o no) o la respuesta de autorización del SRI
logoBase64NoLogo del emisor en PNG o JPG, en base64
fechaAutorizacionNoFecha y hora de autorización devuelta por el SRI
numeroAutorizacionNoSi se omite: el de la respuesta del SRI o la clave de acceso

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / xml / description
      Previous value: -"XML de la factura (firmada o no) o la respuesta de autorización del SRI"New value: +"XML del comprobante (firmado o no) o la respuesta de autorización del SRI"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond the readOnlyHint annotation by describing what the generated document contains (barcode of the access key, line detail or withholdings, totals, additional info) and how the result is delivered ('Devuelve el PDF dentro de la respuesta'). The only gap is that the encoding/format of the returned PDF is not specified.

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 sentences, each carrying distinct information: what is produced, what the source document contributes, and what the output includes and how it is returned. Front-loaded and free of 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?

With no output schema, the description does the work of explaining the return value as a PDF embedded in the response. It stops short of saying whether that PDF is base64 or another encoding, which is the one detail an agent might still need.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that the XML also supplies the authorization number and date, and the schema notes for numeroAutorizacion confirm the fallback order (SRI response, then access key). This clarifies parameter interdependence beyond the field descriptions.

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 ('Genera el RIDE ... en PDF') and names the three document types it covers. The phrase 'a partir de su XML' implicitly distinguishes it from the sibling XML-generation tools, so an agent can tell it is the XML-to-PDF renderer.

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?

Usage is implied rather than stated: it accepts the signed voucher XML or the SRI authorization response, which signals it is a post-authorization step. There is no explicit 'use this after sri_generar_factura_xml' or any when-not guidance pointing at alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.