Skip to main content
Glama

validate_synthetic_checksums

Read-onlyIdempotent

Validate checksums for synthetic payment cards, Chinese IDs, emails, and test IPs, or deterministically generate format-preserving test identifiers from a seed label.

Instructions

Validates or deterministically generates format-preserving test identifiers passing ISO/IEC 7812 Luhn Mod-10 (16-digit cards), GB 11643-1999 Mod 11-2 (18-digit Chinese Resident IDs), RFC 2606 emails, and RFC 5737 IPs.

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

Input Schema

NameRequiredDescriptionDefault
sessionSaltNoOptional HMAC salt used with generateFromSeed (defaults to "seedmask-fixture-salt").
cardCandidateNoOptional 13-19 digit payment card string to check against ISO/IEC 7812 Luhn Mod-10.
cnIdCandidateNoOptional 18-character Chinese Resident ID to check against GB 11643-1999 ISO 7064 Mod 11-2.
generateFromSeedNoOptional seed label (e.g. "qa-user-01") to generate deterministic Luhn card, GB 11643 ID, phone, email, and RFC 5737 IP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, closed-world, and non-destructive, so safety is covered. The description adds genuine value by stating generation is deterministic and format-preserving, but it does not say what happens for a failing candidate, nor how results are reported, and there is no output schema to fill that gap.

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?

A single front-loaded sentence with no filler; every clause carries a standard or output type. It is dense, but the density is informative rather than redundant.

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

Completeness3/5

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

For a four-optional-parameter tool with no output schema, the description covers the validation rules well but leaves gaps an agent would want: which artifacts generation emits (schema mentions phone, description does not), and what a failed validation looks like. Adequate, not complete.

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?

With 100% schema description coverage the baseline is 3; the description adds standards context for cardCandidate (Luhn) and cnIdCandidate (GB 11643 Mod 11-2 subset of the schema's ISO 7064 phrasing). It says nothing about sessionSalt or generateFromSeed's default salt, and its "16-digit cards" conflicts slightly with the schema's 13-19 digit range.

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 uses specific verbs ("validates", "deterministically generates") and a concrete resource (format-preserving test identifiers), then enumerates the exact standards covered: ISO/IEC 7812 Luhn, GB 11643-1999 Mod 11-2, RFC 2606, RFC 5737. An agent can tell this is a synthetic-fixture validator/generator rather than a PII auditing or anonymization tool, though no sibling is named 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 only implied: the phrase "test identifiers" signals fixture/QA contexts, but the description never states when to choose validation versus generation, nor any precondition such as supplying at least one candidate or seed. It also omits any exclusion relative to the anonymization/audit siblings.

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