Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Consultar autorización

sri_consultar_autorizacion
Read-only

Check an Ecuadorian SRI comprobante's authorization status using its access key via the SRI web service, so you can confirm whether an invoice was authorized, rejected, or is still pending.

Instructions

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

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": {
      "claveAcceso": "<claveAcceso>"
    },
    "name": "sri_consultar_autorizacion"
  }
}

Input Schema

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

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 annotations already declare readOnlyHint=true and openWorldHint=true, and the description is consistent with both by describing a read-only query against the external SRI service. However, it adds no further behavioral detail such as latency, failure conditions, or what authorization states can come back, so it adds only modest value at the lower bar set by the annotations.

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?

One front-loaded sentence with the resource and the key named immediately, and no filler or repetition. Nothing in it is extraneous.

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 would ideally indicate what the returned authorization state looks like (e.g. autorizado, no autorizado, devuelta) since that is the only thing an agent gains from calling it. As written it is adequate for invocation but leaves the response shape entirely undocumented.

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 50%: 'ambiente' is documented (default from SRI_AMBIENTE or 'pruebas') while 'claveAcceso' has no schema description at all. The description correctly identifies the clave de acceso as the lookup key, but gives no format or length guidance for it, leaving the undocumented parameter only partially compensated for.

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 ('Consulta') and resource ('estado de autorización de un comprobante') with the lookup key ('por su clave de acceso'), which cleanly separates it from siblings like sri_enviar_comprobante or sri_firmar_comprobante. It stops short of naming an alternative, so it does not fully reach the sibling-differentiation bar.

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, and no mention of alternatives such as sri_validar_clave_acceso. The intended moment of use (checking the SRI's authorization verdict after a comprobante has been sent) is only inferable from the tool's purpose.

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