Skip to main content
Glama

Formato de cédula colombiana

co-cedula-format
Read-onlyIdempotent

Verifica la SINTAXIS de una cédula colombiana (3 a 10 dígitos) y la formatea con puntos. La cédula no tiene dígito de control. Cuándo: hay que aplicar con exactitud una regla colombiana (DIAN, festivos de la Ley Emiliani, montos en COP, IVA, GMF, UVT), p. ej. al facturar o cobrar. No para: calcular el dígito de verificación (co-nit). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Checks the SYNTAX of a Colombian cédula de ciudadanía number (digits only, 3-10 digits, no leading zero) and formats it with dot separators. Cédulas have no check digit, so validity cannot be confirmed offline. When: a Colombian rule (DIAN, Ley Emiliani holidays, COP amounts, IVA, GMF, UVT) has to be applied exactly, e.g. in invoicing or payment flows. Not for: computing the DIAN verification digit (co-nit). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
cedulaYesCédula number (string; required; up to 20 chars).

Output Schema

NameRequiredDescriptionDefault
noteNo
cedulaNo
digitsNo
formattedNo
valid_syntaxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cedula / examples
      Added value: +[
      +  "CC 1.020.304.050"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Checks the SYNTAX of a Colombian cédula de ciudadanía number (digits only, 3-10 digits, no leading zero) and formats it with dot separators. Cédulas have no check digit, so validity cannot be confirmed offline. When: a Colombian rule (DIAN, Ley Emiliani holidays, COP amounts, IVA, GMF, UVT) has to be applied exactly, e.g. in invoicing or payment flows. Not for: computing the DIAN verification digit (co-nit). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent and closed-world, so repeating "sin efectos secundarios / determinista" earns no credit. What does add value is the caveat that cédulas have no check digit and validity cannot be confirmed offline, plus concrete operational limits (64 KB input, 1 s per call, 1 MB result) that the annotations do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded well, but the entire text is duplicated in Spanish and English, roughly doubling length for the same information, and the side-effects/determinism sentences only restate annotations. The generic Colombian-rules enumeration is filler for this particular tool.

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?

An output schema exists so return values need not be explained, and the description covers syntax rules, the no-check-digit limitation, determinism and resource limits. The one real gap is input normalization behavior (prefixes, dots, whitespace) given the schema's contradictory example.

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?

With one parameter and 100% schema coverage the baseline is 3, but the description supplies constraints the schema lacks: digits only, 3-10 digits, no leading zero. It does not resolve the mismatch between the schema example "CC 1.020.304.050" (which carries a prefix and dots) and the stated digits-only rule, leaving ambiguity about whether such input is accepted or normalized.

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 ("Verifica la SINTAXIS ... y la formatea con puntos") plus the resource and the acceptance range (3-10 digits, no leading zero), which is enough to distinguish it from the co-nit sibling it explicitly names. An agent knows exactly what it gets without opening 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 Guidelines4/5

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

The "Cuándo / Not for: computing the DIAN verification digit (co-nit)" pair gives an explicit exclusion and names the alternative, which is the main routing risk. The positive "when" clause, however, is generic family-level boilerplate (DIAN, Ley Emiliani, COP, IVA, GMF, UVT) that has little to do with formatting a cédula, so it guides less than it appears to.

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