Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Firmar comprobante (XAdES-BES)

sri_firmar_comprobante
Read-only

Signs an Ecuadorian SRI comprobante XML with XAdES-BES using the configured certificate and returns the signed XML without submitting it.

Instructions

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.

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_firmar_comprobante"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real context beyond that: it names the signing standard, states it relies on the already-configured certificate (an implicit prerequisite), and clarifies there is no network side effect. It does not describe failure behavior when the input root id is not "comprobante" or when no certificate is configured.

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 short sentences, front-loaded with the operation and followed by the return/no-send contract; no filler and nothing repeated from the schema or title.

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 a one-parameter tool with no output schema, the description covers what it does, what it returns, what it does not do, and the input shape constraint. Only error and prerequisite-failure behavior is left unaddressed.

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 0% for the single `xml` parameter, so the description must carry the meaning, and it does qualify the expected payload (comprobante XML whose root carries id="comprobante"). It stops short of stating encoding, whether it is raw XML text, or whether the input can be a path.

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 (firma), a specific resource (XML de comprobante), an explicit standard (XAdES-BES) and an explicit non-action ("no lo envía"), which separates it from sri_enviar_comprobante without naming it.

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 clause "no lo envía" implies this is the signing step that must precede sending via the sibling send tool, but no when-to-use or when-not-to-use guidance is stated explicitly and no alternative is named.

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