Skip to main content
Glama

SRI Ecuador — Facturación electrónica

Validar clave de acceso

sri_validar_clave_acceso
Read-only

Verifica el dígito verificador de una clave de acceso y la desglosa en sus campos.

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

Input Schema

NameRequiredDescriptionDefault
claveAccesoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 safe read, so the description's added value is the disclosure that the call not only validates the check digit but also decomposes the key into its component fields. It does not say what happens when the check digit is invalid (error vs. a false flag), which is the main behavioral question an agent will have.

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; both the validation and the decomposition outcome are packed in. It is arguably too terse for the gaps it leaves, but nothing in it is wasted.

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?

For a one-parameter, read-only tool this is close to adequate, but with no output schema the description should say what 'sus campos' means and what an invalid check digit yields. Those are the only real omissions, which keeps it at a solid-but-incomplete 3.

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%, so the schema only supplies the name claveAcceso, type string, and maxLength 49. The description echoes the concept but adds no format details (e.g. 49 numeric digits), no mention of trimming or handling of malformed input, so it barely improves on 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 concrete verb (verifica el dígito verificador) plus a secondary effect (desglosa en campos) on the specific resource 'clave de acceso'. That distinguishes it from sri_validar_identificacion and sri_generar_clave_acceso, though it never names those alternatives explicitly.

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?

No explicit when-to-use or when-not guidance: nothing says whether this should be called before sri_consultar_autorizacion, or whether it is only a pre-flight check. Usage is only implied by the verb 'verifica', with no prerequisites or exclusions stated.

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.