Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-is-credit-card-valid

Is Credit Card Valid: Checks whether the digits of value pass the Luhn mod-10 checksum, returning a boolean 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "value": "<value>"
    },
    "name": "x402-is-credit-card-valid"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the return type (boolean) and the commercial/auth context ('5 free trial calls per signed wallet'), which is genuinely useful, but it says nothing about handling of spaces, dashes, non-digit characters, or short inputs — edge cases that materially change a Luhn check's result.

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 compact sentence front-loads the behavior and algorithm, followed by a short pricing note. Every element earns its place, though the redundant 'Is Credit Card Valid:' prefix restates the tool name.

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 single-parameter, no-output-schema predicate tool, the definition covers algorithm, return type, and cost/auth requirements — enough to call it correctly. The remaining gap is input-format handling, which is minor but not zero for a checksum function.

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 description coverage is 0% for the single 'value' parameter, so the description must compensate. 'The digits of value' implies a digit-string input, which is a small but real addition; it stops short of specifying accepted formats (separators, length) or whether non-numeric input errors or returns false.

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 gives a specific verb and resource ('Checks whether ... pass the Luhn mod-10 checksum') and names the exact algorithm, so an agent knows this is a checksum test, not full card validation. It does not, however, differentiate itself from near-identical siblings such as x402-validate-credit-card or x402-credit-card-validate, which presumably overlap.

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

Usage Guidelines3/5

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

Usage is only implied: the Luhn-specific framing suggests this is for format/checksum checks rather than issuing-bank or BIN validation. There is no explicit when-to-use statement, no exclusions, and no routing to the many sibling card tools, leaving the agent to guess among near-duplicates.

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.