Skip to main content
Glama

SRI Ecuador — Facturación electrónica

Consultar autorización

sri_consultar_autorizacion
Read-only

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 observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the agent knows this is a safe read against an external service. The description adds that the target is the SRI's authorization state, but says nothing about network dependence, latency, rate limits, or what happens when the clave is unknown. With annotations covering the safety profile, a 3 is appropriate.

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 and no redundancy. It is tight, though the space saved is not reinvested in usage or behavioral detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should convey what an authorization status looks like (authorized / not authorized / rejected / not found) and whether the call can fail on network or SRI-side errors. Neither is covered, leaving the agent without a picture of the result.

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 in the schema, but 'claveAcceso' carries only pattern/length constraints. The description partially compensates by framing claveAcceso as the comprobante's access key, but adds no format, sourcing, or defaulting detail beyond that. Baseline 3 given the schema does half the work.

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?

The description states a specific verb (consulta), resource (estado de autorización) and lookup key (clave de acceso), which is enough to distinguish it from siblings like sri_generar_clave_acceso or sri_validar_clave_acceso. It stops short of explicitly contrasting itself with those siblings, so it lands at 4 rather than 5.

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: nothing says this should be called after generating/signing a comprobante, nor when to prefer it over sri_validar_clave_acceso. The only implied context is that a clave de acceso must already exist.

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.