Skip to main content
Glama

Dígito de verificación del NIT

co-nit
Read-onlyIdempotent

Calcula el dígito de verificación (DV) de un NIT con el método mod 11 publicado por la DIAN, valida el DV dado y formatea (900.373.913-4); práctica estándar en facturación. Cuándo: hay que comprobar o formatear un NIT con su dígito de verificación DIAN, p. ej. antes de emitir una factura. No para: verificar la SINTAXIS de una cédula colombiana (co-cedula-format). 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: Computes the DIAN verification digit (DV) of a Colombian NIT business tax ID with DIAN's published mod-11 method, validates a given DV and formats it (900.373.913-4). DV computation is standard practice in invoicing. When: a Colombian NIT has to be checked or formatted with its DIAN verification digit, e.g. before issuing an invoice. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
dvNoVerification digit, if separate (string; optional; pattern ^\d$).
nitYesNIT with or without DV (dots, dashes ok) (string; required; up to 30 chars).

Output Schema

NameRequiredDescriptionDefault
dvNo
nitNo
validNo
formattedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / nit / examples
      Added value: +[
      +  "800197268"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Computes the DIAN verification digit (DV) of a Colombian NIT business tax ID with DIAN's published mod-11 method, validates a given DV and formats it (900.373.913-4). DV computation is standard practice in invoicing. When: a Colombian NIT has to be checked or formatted with its DIAN verification digit, e.g. before issuing an invoice. Not for: checking the SYNTAX of a Colombian cédula de ciudadanía number (co-cedula-format). 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 readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the 'sin efectos secundarios / solo lectura / sin red' and 'determinista' sentences largely restate them. What is genuinely additive are the operational limits (64 KB JSON input, 1 s per call, 1 MB result), which the annotations do not convey.

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 and logically ordered (what → when → not-for → side effects → limits), but the same material is presented in full Spanish and then again in English, and the schema's description field repeats the English block verbatim. That bilingual duplication costs space without adding information for the caller.

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 the remaining gaps an agent would care about: determinism, no network, size/time limits, and the sibling boundary. Only the handling of already-formatted NITs with embedded DV is left to the schema.

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 100% and both parameters (nit, dv) are documented in the schema, so the baseline is 3. The description clarifies that the DV is validated when supplied and shows the expected formatted output, but it adds no format or edge-case detail for `dv` or for NITs supplied with dots/dashes beyond what the schema already states.

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 precise verb+resource (computes the DIAN verification digit of a Colombian NIT), names the algorithm (mod 11 published by DIAN), and covers the validation/formatting facets plus an output example. It also explicitly separates itself from the sibling that could be confused with it (co-cedula-format).

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

Usage Guidelines5/5

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

Gives an explicit 'Cuándo' with a concrete trigger (checking/formatting a NIT with its DV, e.g. before issuing an invoice) and an explicit 'No para' naming the alternative tool (co-cedula-format) for cédula syntax checks. Both the use case and the exclusion are stated, not inferred.

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