Skip to main content
Glama

x402-validate-credit-card

Validate Credit Card: Luhn check on a card number: strips non-digits and returns valid plus the digit count it judged. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed1 schema field changed
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses input normalization ("strips non-digits") and the return payload ("valid plus the digit count it judged"), which is real behavioral information the agent could not otherwise know since there is no output schema. It also surfaces the commercial/access constraint ("5 free trial calls per signed wallet"), which is useful pre-call context. It stops short of covering length limits, empty-input handling, or issuer detection.

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 parts: a front-loaded clause stating the operation, normalization, and return value, followed by the pricing note. No filler sentences, and the most decision-relevant information comes first.

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, no-annotation, no-output-schema utility, the description covers what the tool does, how it treats input, and what comes back — enough to invoke it correctly. Only minor edge-case behavior (empty input, digit-count bounds) is left unstated.

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 0% and the single parameter is generically named "value", so the description must define it — and it does, making clear the input is a card number and that non-digit characters are tolerated and stripped before checking. That is genuine meaning added beyond the bare schema.

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?

The description names a specific verb and resource ("Validate Credit Card") and pins down the exact algorithm ("Luhn check on a card number"), so the agent knows precisely what computation happens. It falls short of a 5 because several near-identical siblings exist (x402-credit-card-validate, x402-card-validator, x402-is-credit-card-valid, x402-is-luhn) and the description never states how this tool differs from them.

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?

There is no when-to-use or when-not-to-use guidance, and no alternative is named despite a dense cluster of overlapping card/Luhn validators among the siblings. The agent must infer selection purely from the tool name.

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