Skip to main content
Glama

SRI Ecuador — Facturación electrónica

Validar cédula o RUC

sri_validar_identificacion
Read-only

Valida una cédula (10 dígitos) o RUC (13 dígitos) ecuatoriano con los algoritmos módulo 10/11 e indica el tipo de contribuyente.

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": {
      "identificacion": "<identificacion>"
    },
    "name": "sri_validar_identificacion"
  }
}

Input Schema

NameRequiredDescriptionDefault
identificacionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 validation operation, and the description usefully adds the validation algorithm and the fact that the taxpayer type is reported. However, it does not disclose the response shape (boolean, status string, error?) or how malformed input such as a 12-digit string is handled.

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 well-formed sentence that front-loads the core action and embeds the format constraints and algorithm without any redundant restatement of the title.

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

Completeness4/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 validator with no output schema, the definition covers purpose, accepted input formats and validation method adequately. The remaining gap is the exact form of the returned taxpayer-type indicator, which an agent would have to discover at runtime.

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

Parameters4/5

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

Schema coverage is 0% and the single parameter is documented only as a bare string with maxLength 20, so the description carries the load. It does so well by specifying accepted lengths (10 digits for cédula, 13 for RUC), which is precisely the semantic detail the schema lacks; only the slight mismatch with the 20-character schema cap is unaddressed.

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 names a specific verb (valida) and resource (cédula ecuatoriana de 10 dígitos o RUC de 13 dígitos), and states the algorithm used (módulo 10/11). It implicitly separates itself from siblings like sri_validar_clave_acceso by naming the exact identifier formats it handles, though it never names an alternative explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this tool is for checking the structural validity of an Ecuadorian ID or RUC before further processing. There is no explicit guidance on when to prefer it over the sibling validators, nor any note on prerequisites or what to do when validation fails.

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.