Skip to main content
Glama

Generate test credit card

generate_credit_card

Generate Luhn-valid test credit card numbers for Visa, Mastercard, or Amex to seed fictional payment data. Outputs fake accounts only—never use for real payments.

Instructions

Generate a Luhn-valid TEST card number (Visa/Mastercard/Amex). Not a real account — never use for payments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brandNorandom

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 disclose key behavioral traits: output is Luhn-valid, brand-specific, and non-functional test data. It omits whether the result is random per call or what the returned string looks like (with/without separators or expiry).

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?

Two compact sentences, front-loaded with the core purpose and followed by the safety caveat; nothing is wasted.

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 zero-required-parameter generator with no output schema and no annotations, the description covers purpose, output validity, and safety. It falls slightly short on return-value format and the default brand behavior.

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 0% for the single 'brand' parameter, so the description must compensate. It names Visa/Mastercard/Amex but never mentions the 'random' enum value or that random is the default, leaving a real gap in parameter meaning.

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 (Generate) and resource (Luhn-valid TEST card number) with the supported brands enumerated, which distinguishes it cleanly from sibling generators like generate_iban or generate_crypto_wallet.

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?

Explicitly says 'Not a real account — never use for payments', which is a clear when-not-to-use constraint, but it names no alternative tool or condition for choosing between brands.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.