Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Enviar comprobante firmado al SRI

sri_enviar_comprobante
Destructive

Submits an already signed XAdES-BES XML to Ecuador's SRI reception web service and returns the submission status (RECIBIDA/DEVUELTA) with error messages so you can confirm acceptance.

Instructions

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

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": {
      "xmlFirmado": "<xmlFirmado>"
    },
    "name": "sri_enviar_comprobante"
  }
}

Input Schema

NameRequiredDescriptionDefault
ambienteNoAmbiente del SRI. Por defecto: el configurado en SRI_AMBIENTE o 'pruebas'.
xmlFirmadoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true and destructiveHint=true; the description adds the return values (RECIBIDA/DEVUELTA plus messages), which is useful since there is no output schema. It does not explain why the call is destructive (irreversible submission to a tax authority), nor mention certificate/auth requirements or behavior on rejection.

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?

A single front-loaded sentence with the key precondition first and the return values last; no filler or redundancy.

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?

Return values are covered in lieu of an output schema, and the signing precondition is clear. However, for a destructive, open-world submission to a government service with one undocumented parameter, the description omits failure modes, credential prerequisites, and re-submission semantics.

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 coverage is 50%: ambiente is documented in the schema, xmlFirmado is not. The description partially compensates by specifying the expected signing standard (XAdES-BES), which adds real meaning to the undocumented parameter, but gives no size, encoding, or content constraints.

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?

States a specific verb and resource: sends an already-signed XAdES-BES XML to the SRI reception web service. The emphasis on 'YA FIRMADO' implicitly separates it from sri_firmar_comprobante, though that sibling is not named.

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?

The precondition (XML must already be signed) is stated, which implies when to use it, but there is no explicit when-not guidance or named alternative such as the signing tool. The agent must infer the workflow ordering itself.

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