Skip to main content
Glama

Validar un NSS

validar_nss

Valida un NSS (numero de seguro social): formato y digito Luhn. Incluido con saldo de paquete. No confirma afiliacion ante el IMSS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nssYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nssNo
validaNo
detalleNo
advertenciaNo
operacion_idNo
anio_registroNo
subdelegacionNo
digito_verificador_okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "utilidad_nss — 1 muestra(s), 8 campos.",
      +  "properties": {
      +    "advertencia": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Advertencia"
      +    },
      +    "anio_registro": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Anio Registro"
      +    },
      +    "detalle": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Detalle"
      +    },
      +    "digito_verificador_ok": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Digito Verificador Ok"
      +    },
      +    "nss": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Nss"
      +    },
      +    "operacion_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Operacion Id"
      +    },
      +    "subdelegacion": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Subdelegacion"
      +    },
      +    "valida": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Valida"
      +    }
      +  },
      +  "title": "RUtilidadNss",
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only mark non-read-only and non-destructive; the description adds that the call is covered by package balance, implying a balance-consuming operation, and clarifies the scope with the affiliation disclaimer. The balance wording is slightly ambiguous but there is no contradiction with annotations.

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 short sentences, front-loaded with the core action and validation type, followed by billing and exclusion notes. Every sentence earns its place with no fluff.

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 validation tool with output schema present and annotations covering safety, the description covers purpose, scope, and billing context. It lacks an explicit alternative for affiliation confirmation, but that gap is minor given the tool's simplicity.

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 0% schema coverage for the single 'nss' parameter, the description compensates by defining NSS as a social security number and indicating that format and Luhn digit are validated, giving the agent enough semantic grounding to populate the parameter with a user-provided NSS.

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'), a specific resource (NSS), and the exact validation criteria (formato y digito Luhn). The explicit disclaimer that it does not confirm IMSS affiliation prevents confusion with larger verification tools among the siblings.

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?

Gives a clear exclusion: this tool does not confirm affiliation with IMSS, so agents know not to use it for that purpose. It also notes the package-balance inclusion. However, it stops short of naming an alternative sibling (e.g., verificacion_completa) for affiliation checks.

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