Skip to main content
Glama

SRI Ecuador — Facturación electrónica

Generar clave de acceso

sri_generar_clave_acceso
Read-only

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 observed

TDQS

B3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a pure read/computation with no side effects, so the description does not need to argue safety. It usefully discloses the output shape (49 digits, módulo 11 check digit) in the absence of an output schema, but says nothing about determinism (a random codigoNumerico makes output vary) or whether anything is persisted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or repetition, and the key output detail is placed immediately after the verb. It is efficient, though so terse that it leaves the tool under-explained for its 8-parameter surface.

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?

Because no output schema exists, stating the 49-digit format with check digit is a genuine completeness win. However, for an 8-parameter tool it omits workflow context — how ambiente interacts with the rest of the SRI flow, and whether the generated key is meant to be fed into sri_generar_factura_xml or sri_validar_clave_acceso.

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

Parameters2/5

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

The description adds zero meaning beyond what the input schema provides; all of its content concerns the returned key, not the inputs. With schema coverage at 63%, two parameters (puntoEmision, establecimiento) have only defaults and no description anywhere, and the description offers no compensation for that gap.

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 ('Genera la clave de acceso de 49 dígitos') plus the algorithmic detail (dígito verificador módulo 11) and scope ('de un comprobante electrónico del SRI'). An agent can tell this apart from sri_validar_clave_acceso by the verb, though the description never explicitly contrasts them.

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 when-to-use guidance, no prerequisite chain (e.g., that the key is needed before signing/generating the XML or consulting authorization), and no explicit exclusion of the sibling validator. The only directional signal is implicit in the verb 'generar'.

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.