Skip to main content
Glama

ScorpTech x402 Tools

Validate Batch

validate_batch
Read-onlyIdempotent

Offline format validator for up to 100 values: email, URL, IPv4/IPv6, domain, UUID (version/variant), credit card (Luhn + brand, number masked in output), IBAN (mod-97 + country length), phone (E.164), JSON, base64/base64url. POST JSON body only (never in the URL): single {"type","value"} or batch {"items":[{"type","value"},...]}. Returns JSON with: count, valid_count, invalid_count, results, validated_at. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/validate-batch

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_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSingle-item mode: format to check
itemsNoBatch mode: array (max 100) of {"type","value"} objects
valueNoSingle-item mode: value to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent, and non-destructive, yet the description adds substantial behavior the annotations do not: validation is offline so results reflect format rules only, credit card numbers are masked in output, the call is priced at $0.005 USDC per successful call via x402 on Base or Solana, and the same capability is reachable over HTTPS. Payment and data-masking details are exactly the kind of context an agent needs before calling.

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?

The content is front-loaded and dense, moving from capability to supported formats to request shape to response fields to price and alternate endpoint, with no filler sentences. It is long, but nearly every clause carries an operational fact an agent must know.

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?

With no output schema, the description steps in and names the response fields (count, valid_count, invalid_count, results, validated_at), and it also covers pricing, transport constraint, batch limit, and an alternate HTTP endpoint. For a multi-mode validation tool this leaves nothing essential an agent needs to invoke it 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 description coverage is 100% and the schema already documents both 'type' (with its enum) and 'items' with maxItems 100, so the description largely restates what the schema provides. It does clarify the single-object versus batch-object request envelope, but adds no per-parameter detail beyond the schema, 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?

The first sentence names a specific verb (validate) and resource (format values), enumerates the exact formats supported, and frames the scope as offline batch validation, which cleanly separates it from the single-format siblings such as email_validate, card_validate, or iban_validate. An agent can pick this tool over those without opening a schema.

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 operating context: up to 100 values, format-only (offline) checks, and POST-with-JSON-body-only with an explicit 'never in the URL' prohibition. What it lacks is any explicit routing statement such as when to prefer the dedicated single-format validators, so the when-not side is left to inference.

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