Skip to main content
Glama
x402-preflight-mcp

x402-preflight-mcp

by animus3d

i18n_json_qa

Compare source and target i18n JSON catalogs to find missing or extra keys, empty translations, and mismatched interpolation placeholders before release.

Instructions

[x402 $0.02 USDC on Base/Solana] Compares source vs target i18n JSON catalogs for missing keys, extra keys, empty translations, and mismatched interpolation placeholders.

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": {
      "source": "<source>",
      "target": "<target>"
    },
    "name": "i18n_json_qa"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesReference locale JSON object
targetYesTarget locale JSON object
_paymentSignatureNoOptional base64-encoded x402 v2 payment-signature header (overrides X402_PAYMENT_SIGNATURE env var).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description does disclose a real behavioral trait the schema does not: paid invocation at $0.02 USDC via x402 on Base/Solana. However, it omits whether the operation is read-only, whether output is limited or paginated, and how failures or payment rejection manifest.

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 tight sentence with no waste. Minor deduction because the payment-cost prefix precedes the core purpose, delaying the primary verb-resource statement until after the bracket.

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 comparison tool with nested-object input and no output schema, the description never indicates what the result looks like (a diff listing, counts, a pass/fail summary). The enumerated checks partially compensate by implying the categories reported.

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%, so source, target, and _paymentSignature are already explained in the schema. The description adds no further semantics about parameter shape (e.g., flat vs nested key structure, whether placeholders must be in a specific syntax).

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 ('Compares') and resource ('source vs target i18n JSON catalogs') and enumerates exactly what it detects: missing keys, extra keys, empty translations, mismatched interpolation placeholders. This is clearly distinguishable from siblings like csv_json_reconcile or json_config_preflight.

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 purpose implies the usage context (validating locale files against a reference), but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent can infer intent but gets no routing guidance versus the other diff/validation siblings.

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