Skip to main content
Glama

ScorpTech x402 Tools

Card Validate

card_validate
Read-onlyIdempotent

Payment card number checks without storing anything: Luhn checksum, brand / network from the IIN (Visa, Mastercard incl. 2-series, Amex, Discover, Diners, JCB, UnionPay, Maestro, Mir, Elo, Hipercard, Verve, RuPay, Dankort, Troy, UATP), allowed lengths, CVV length, card-number spacing, known public test numbers (Stripe, Braintree, Adyen) and expiry validity. Returns only the PCI-safe first 6 / last 4 — never the full number. Up to 100 numbers per call. POST so numbers stay out of URLs and logs. Returns JSON with: masked, display, first6, last4, length, brand, brandName, luhn. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/card-validate

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "card_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNoReference date YYYY-MM-DD (default today, UTC)
expiryNoMM/YY or MM/YYYY (applies to number)
numberNo
numbersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: it commits to not storing anything, explains that only PCI-safe first6/last4 are returned and never the full number, justifies POST so numbers stay out of URLs and logs, and states the 100-item cap and the $0.001 per successful call price. These are exactly the operational facts an agent needs before sending sensitive data.

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?

Front-loaded with the core purpose and the safety guarantee, with limits and transport rationale following. The long brand enumeration is the only bloat, though it does convey network coverage concretely rather than costing comprehension.

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

Completeness5/5

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

No output schema exists, so the description compensates by naming the returned JSON fields (masked, display, first6, last4, length, brand, brandName, luhn). Combined with the documented limits, pricing and HTTPS endpoint, an agent has everything needed to invoke this correctly.

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 coverage is 50%: 'now' and 'expiry' are documented in the schema, while 'number' and 'numbers' are bare strings/arrays there. The description adds the batch cap and expiry applicability, but never explains the relationship between the singular 'number' and the 'numbers' array, nor what happens if neither is supplied (0 required params).

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 and resource ('Payment card number checks') and enumerates exactly what is checked: Luhn, IIN brand resolution, length, CVV length, spacing, test numbers, expiry. The brand list makes the scope unambiguous and clearly separable from the other *_validate siblings such as iban_validate or email_validate.

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 scope (validate card numbers before accepting them) and batching is signposted ('Up to 100 numbers per call'), but there is no explicit when-to-use vs when-not guidance and no statement about which sibling to pick for non-card instruments. No prerequisites or error conditions are called out.

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