Skip to main content
Glama

NewKwLab Tools

validate_card

Validate a payment card number locally: Luhn check, length, network detection (Visa, Mastercard, Amex and more) and test-card detection. No network call is made to any payment processor and the full number is never stored; the result masks all but the first 6 and last 4 digits.

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

Input Schema

NameRequiredDescriptionDefault
numberYesCard number, spaces and dashes allowed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that validation is local, that no processor is contacted, that the full number is never stored, and that the returned value is masked to first 6 and last 4 digits. It does not state what happens on an invalid number (error vs. a result with a validity flag), which is the main remaining gap.

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?

A single dense sentence that front-loads the action and checks, then adds the privacy and output-masking guarantees. No filler or 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 one-parameter, no-output-schema tool, the description covers the checks, the privacy model, and the shape of the returned value. It stops short of describing the full result structure (e.g., a validity boolean or detected network field), which would make it fully self-contained.

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 already documenting that spaces and dashes are allowed. The description adds no further meaning about the number parameter, so the baseline of 3 applies.

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 (validate) and resource (payment card number) and enumerates the exact checks performed: Luhn, length, network detection, test-card detection. An agent can distinguish this from validate_email or validate_vat purely from the description.

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?

The phrase 'locally' and 'no network call is made to any payment processor' implies when this tool is appropriate (offline format validation rather than authorization), but there is no explicit when-to-use/when-not-to-use statement or named alternative. Usage is inferable rather than stated.

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