Skip to main content
Glama

Validate Luhn

validate_luhn

Luhn (mod 10) checksum validation, as used by most payment card numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses almost nothing beyond the algorithm name: no indication of whether the call is pure/side-effect-free, what it returns (boolean vs verdict object), or that it treats input as a digit string with separators tolerated.

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

Conciseness4/5

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

One tight, front-loaded sentence with zero filler; the algorithm and scope lead. It is efficient but so short that nothing else is conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and a nested input object, the description should at minimum say what the tool returns and how input should be formatted. As written, an agent knows the algorithm but not the call contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter is a nested object ('payload.number'), yet the description says nothing about the input shape or accepted format. The regex pattern in the schema (digits with optional spaces/hyphens) does some work, but the description adds no meaning over it.

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?

States a specific verb+algorithm ('Luhn (mod 10) checksum validation') and pins the domain ('as used by most payment card numbers'), which separates it from the alphabet-validation siblings like validate_iban, validate_isbn, and validate_vin. It does not name an alternative sibling explicitly, so it stops short of a 5.

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

Usage Guidelines2/5

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

The domain mention hints at card-number use, but there is no explicit when-to-use, no condition for choosing it over validate_ean/validate_imei/etc., and no note on what a Luhn pass does or does not prove (e.g., it does not confirm a card is live or valid).

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.