Skip to main content
Glama

Revisar el formato de una cédula de Costa Rica

validar_cedula
Read-onlyIdempotent

Revisa si un número de identificación de Costa Rica tiene un formato válido para comprobantes electrónicos y qué tipo puede ser: cédula física (9 dígitos), cédula jurídica (10), DIMEX (11 o 12) o NITE (10). Solo revisa el formato según los Anexos v4.4; no consulta a Hacienda ni confirma que el número exista o esté inscrito.

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": {
      "numero": "<numero>"
    },
    "name": "validar_cedula"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNoTipo esperado si se conoce: 01 física, 02 jurídica, 03 DIMEX, 04 NITE, 05 extranjero no domiciliado, 06 no contribuyente.
numeroYesEl número, con o sin guiones. Ejemplo: 3-101-123456

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds substantive context beyond that: the validation authority (Anexos v4.4) and the hard limit that no Hacienda lookup or existence check occurs. It does not describe the response shape (valid flag, detected type), which keeps it from a 5.

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?

Two tightly packed sentences: the first states the capability and enumerates types, the second states the scope limit. No redundancy, and the most decision-relevant information (what it checks) is front-loaded.

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 two-parameter validator with no output schema, the description covers what is checked, against which standard, and what is explicitly out of scope. The main residual gap is the return contract — whether it returns a boolean plus detected type, or an error message for invalid input — which matters given there is no output schema.

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%, so the baseline would be 3, but the description adds real semantics by mapping each type to its expected digit length (física 9, jurídica 10, DIMEX 11 or 12, NITE 10). It omits the two enum values 05 (extranjero no domiciliado) and 06 (no contribuyente), which the schema covers but the description's type list silently drops.

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?

"Revisa si un número de identificación de Costa Rica tiene un formato válido" names a specific verb (validate) and resource (Costa Rican ID number), then enumerates the four supported types with their digit counts. An agent can immediately separate this from consultar_contribuyente, which looks up a taxpayer rather than checking syntax.

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

Usage Guidelines4/5

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

The closing sentence gives an explicit exclusion: it only checks format per Anexos v4.4 and does not query Hacienda or confirm the number exists or is registered. That tells the agent when not to use it, but it never names the sibling (consultar_contribuyente) that would handle the existence/registration case, so the routing is left partly to inference.

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.

Resources