Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Generar clave de acceso

sri_generar_clave_acceso
Read-only

Generates the 49-digit SRI access key for Ecuadorian electronic vouchers, including the modulo 11 check digit, from emission date, RUC, and sequential.

Instructions

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

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>",
      "ruc": "<ruc>",
      "secuencial": "<secuencial>"
    },
    "name": "sri_generar_clave_acceso"
  }
}

Input Schema

NameRequiredDescriptionDefault
rucYesRUC del emisor (13 dígitos)
ambienteNoAmbiente del SRI. Por defecto: el configurado en SRI_AMBIENTE o 'pruebas'.
secuencialYesSecuencial del comprobante, hasta 9 dígitos
fechaEmisionYesFecha de emisión en formato aaaa-mm-dd o dd/mm/aaaa
puntoEmisionNo001
codigoNumericoNo8 dígitos; si se omite se genera al azar
establecimientoNo001
tipoComprobanteNofactura

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

The readOnlyHint=true annotation is consistent with a pure key-generation operation, so the safety profile is already covered. The description adds useful output detail (49 digits, módulo 11 check digit) but omits behavior an agent would care about: whether the result is deterministic for the same inputs and what happens when codigoNumerico is omitted.

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 sentence that front-loads the verb and the defining characteristic of the output. No filler or redundant restatement 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?

With no output schema, the description does correctly convey the return value's shape (a 49-digit string). However, for an 8-parameter tool it leaves the optional environmental parameters and the determinism of the result unexplained, which is a meaningful gap.

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 63%, and the description adds no parameter-level meaning beyond stating the resource being built. The three required parameters are documented in the schema, but puntoEmision and establecimiento carry defaults with no description in either place, and the random-generation behavior of codigoNumerico is only in the schema.

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 ("Genera") and a precisely characterized resource ("clave de acceso de 49 dígitos con dígito verificador módulo 11"). An agent knows exactly what is produced, though the description never names the complementary sibling sri_validar_clave_acceso to draw the boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites (e.g., that it is a pure computation that can run before firmar/enviar), and no mention of alternatives such as sri_validar_clave_acceso. Usage is only inferable from the tool name and purpose sentence.

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