Skip to main content
Glama

Card Validator

CardValidator
Read-only

Card Validator: Card Validator is a credit card number validator API: it checks whether a card number is valid, identifies the card brand, and flags risk. It runs the Luhn checksum, detects the scheme (Visa, Mastercard, Amex and more), returns the PCI-safe BIN and last 4 digits, flags known processor test cards, and returns a composite risk score. (Cost: 2 credits)

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": {
      "number": "<number>"
    },
    "name": "CardValidator"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesThe card number to validate

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuine context beyond that: it lists the exact checks performed, promises PCI-safe output (BIN + last 4, not full PAN), flags processor test cards, and discloses a 2-credit cost — an important operational trait not present in any structured field.

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?

Information is front-loaded and the enumeration is efficient, but the opening 'Card Validator: Card Validator is a...' redundantly restates the title twice before reaching substance. The cost note is useful, but the single run-on sentence packs six capabilities without hierarchy.

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-value documentation is not required, yet the description still sketches the shape of the response (validity, brand, BIN, last 4, test-card flag, risk score). Combined with the credit cost, an agent has what it needs to decide to call it; only input-format expectations are left hanging.

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?

Only one parameter exists and schema coverage is 100%, with the schema itself stating 'The card number to validate'. The description adds no further meaning such as accepted formatting (spaces, dashes) or whether non-digit input is rejected, so it neither compensates nor detracts — baseline applies.

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 opens with a specific verb+resource ('credit card number validator API') and enumerates what it does: Luhn checksum, scheme detection, BIN/last-4 extraction, test-card flagging, risk scoring. That is concrete enough to separate it from neighbors such as BINLookup or TestCardGenerator, though it never names those alternatives explicitly.

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 implied by the enumeration of checks rather than stated. There is no explicit 'use this when...' guidance, no mention of when to prefer BINLookup for pure BIN data or IBANValidator for bank accounts, and no note on what input formats are acceptable.

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.