Skip to main content
Glama

Lookup Kit

luhn_check

Read-only

Credit card number validation (Luhn check), card brand detection, IMEI check. Run the Luhn checksum on a number (payment card, IMEI, many ID numbers). For card-like numbers also names the likely card brand. Format check only: it does not say the card exists or works. The number is never stored or logged. Price: $0.001 per call (x402, USDC on Base).

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": "luhn_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations mark it read-only and closed-world, but the description adds genuinely new behavioral context: it is a format-only check with no existence verification, it returns a likely card brand for card-like input, input is never stored or logged, and it costs $0.001 per call via x402/USDC. The privacy and pricing disclosures are things the agent could not infer from annotations.

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 and efficient, with the scope caveat and privacy note in prominent positions. The first sentence's list ('card validation, card brand detection, IMEI check') is partly restated by the second and third sentences, so there is minor redundancy.

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 tool with no output schema, the definition covers scope, safety, privacy, and pricing, and hints at the return value (validation result plus likely card brand). It stops short of describing the actual response shape or error behavior for malformed input, which is the only material omission.

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?

With one parameter and 0% schema coverage, the description carries the burden and mostly does: it explains that 'number' is a raw checksum target that may be a payment card, IMEI, or other ID number. The gap is that it never specifies accepted formatting (digits only vs. spaces/hyphens), which matters for a checksum function.

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?

The description names a specific operation (Luhn checksum validation) plus two concrete capabilities (card brand detection, IMEI check), and enumerates the input classes it accepts. It is clearly distinguishable from siblings like iban_check or isbn_ean_check because it states which number families it covers.

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

Usage Guidelines4/5

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

It gives clear context for when to use it — validating payment card, IMEI and other ID numbers — and adds a real exclusion with 'Format check only: it does not say the card exists or works.' It does not name a sibling alternative (e.g. use iban_check for IBANs), so it falls short of explicit alternative routing.

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