Skip to main content
Glama
mcp-sri-ecuador

mcp-sri-ecuador

Validar cédula o RUC

sri_validar_identificacion
Read-only

Validate Ecuadorian cédula (10 digits) or RUC (13 digits) with modulo 10/11 algorithms and return the taxpayer type for SRI electronic invoicing.

Instructions

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 observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds useful behavior beyond that — the specific validation algorithms and that a taxpayer type is returned — but does not say what happens on an invalid input (error vs. boolean result), which matters for a validator.

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?

One sentence, front-loaded with the verb and the resource, and every clause carries information (formats, algorithm, return classification). Slight density from packing return semantics into the same sentence, but no waste.

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 description covers input formats and what the result conveys (tipo de contribuyente). The remaining gap is failure behavior on malformed or checksum-invalid input.

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 coverage is 0% and the single property is just 'identificacion: string', so the description carries format meaning: cédula must be 10 digits, RUC 13. That is genuine added constraint, but it omits whether separators/hyphens or leading zeros are accepted, so it is not fully compensating.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (valida) and precise resource (cédula de 10 dígitos o RUC de 13 dígitos ecuatoriano), plus the algorithm used (módulo 10/11) and the returned classification (tipo de contribuyente). The explicit digit lengths make it clearly distinct from sri_validar_clave_acceso without needing to open the schema.

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 when-to-use guidance is given: nothing says to call this before emitting a factura, nor when to prefer it over sri_validar_clave_acceso. The only precondition supplied is the input length, which is a format constraint rather than usage routing.

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