Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SRI_AMBIENTENoEnvironment to use: `pruebas` or `produccion`. Defaults to `pruebas`.pruebas
SRI_P12_PATHNoPath to your electronic signature `.p12` / `.pfx` file (BCE, Security Data, Uanataca…). Without a certificate everything works except signing and issuing.
SRI_P12_PASSWORDNoPassword of the `.p12` certificate. Read from environment variables and never passed through the model.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sri_generar_clave_accesoB

Genera la clave de acceso de 49 dígitos (con dígito verificador módulo 11) de un comprobante electrónico del SRI.

sri_validar_clave_accesoB

Verifica el dígito verificador de una clave de acceso y la desglosa en sus campos.

sri_validar_identificacionA

Valida una cédula (10 dígitos) o RUC (13 dígitos) ecuatoriano con los algoritmos módulo 10/11 e indica el tipo de contribuyente.

sri_generar_factura_xmlB

Construye el XML de una factura electrónica (versión 1.1.0) con totales e IVA calculados, sin firmar ni enviar. Útil para revisar antes de emitir.

sri_consultar_autorizacionB

Consulta en el SRI el estado de autorización de un comprobante por su clave de acceso.

sri_info_certificadoA

Muestra el titular, emisor y vigencia del certificado .p12 configurado (SRI_P12_PATH). No expone la clave.

sri_firmar_comprobanteA

Firma con XAdES-BES un XML de comprobante (raíz con id="comprobante") usando el certificado configurado. Devuelve el XML firmado; no lo envía.

sri_emitir_facturaA

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.

sri_enviar_comprobanteA

Envía un XML YA FIRMADO (XAdES-BES) al web service de recepción del SRI y devuelve el estado (RECIBIDA/DEVUELTA) y mensajes.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct purposes (generate vs validate key, sign vs send, query authorization, inspect certificate). The main overlap is sri_emitir_factura, which composites generar_factura_xml + firmar_comprobante + enviar_comprobante, so an agent must decide between full-flow and step-by-step tools.

Naming Consistency4/5

All tools use a consistent sri_ prefix and snake_case naming, mostly following a verb_noun Spanish pattern. sri_info_certificado is a minor deviation because 'info' is a noun rather than a verb, but the set remains highly readable.

Tool Count5/5

Nine tools is well-scoped for an SRI electronic invoicing server. Each tool covers a meaningful operation or lifecycle step, and the set avoids unnecessary duplication.

Completeness4/5

The core factura electrónica lifecycle is covered: access-key generation/validation, ID validation, XML construction, signing, sending, authorization query, certificate inspection, and an all-in-one emit flow. Missing support for other comprobante types (notas de crédito/débito, retenciones) and cancellation/annulment keeps it from full coverage.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues