Skip to main content
Glama

Validar CUI / DPI

validar_cui

Validate a 13-digit Guatemalan DPI/CUI by checking its verifier digit and deriving the department and municipality.

Instructions

Valida el CUI de 13 dígitos del DPI guatemalteco (RENAP): dígito verificador, departamento y municipio.

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": {
      "cui": "<cui>"
    },
    "name": "validar_cui"
  }
}

Input Schema

NameRequiredDescriptionDefault
cuiYesCUI del DPI, con o sin espacios

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the checks performed but not what happens on an invalid or malformed CUI (error vs. false result), whether the call is purely side-effect-free, or what the caller receives back; for a validation tool with zero annotation coverage these are meaningful gaps.

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 front-loaded sentence with no padding; the resource and the validation scope come first and nothing is repeated from the schema or title.

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 annotations and no output schema, the description should clarify the return shape, since 'dígito verificador, departamento y municipio' could describe either the internal checks or the returned fields. Adequate for a one-parameter tool but ambiguous about outcome.

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 100% and the schema already says 'con o sin espacios', so the baseline is 3. The description adds a real constraint the schema does not state: the CUI must be 13 digits, which tells the agent what input shape is acceptable.

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?

Names a specific verb ('Valida') and a specific resource ('CUI de 13 dígitos del DPI guatemalteco (RENAP)'), and enumerates the checks performed (check digit, department, municipality). The resource is inherently distinct from the sibling validar_nit, though the description never explicitly contrasts them.

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?

There is no explicit statement of when to call this versus alternatives, nor prerequisites or exclusions. Usage is only implied by the domain (validating a Guatemalan DPI identifier), so an agent must infer the context.

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