MCP tools for X402 payments with Sperax USDs on Arbitrum
This MCP server defines 6 payment and yield-tracking tools for the X402 stablecoin protocol. While all tools have descriptions and basic input schemas, they fall short of production-grade quality in several critical areas: parameter descriptions are sparse (most lack detail about constraints and expected format), output schemas are entirely absent (the rubric requires documented return types for A+ tools), error handling guidance is minimal, and there are no tool annotations (readOnlyHint/destructiveHint) despite obvious risk classification. The naming is generally good (verb_noun pattern), but descriptions are slightly below the recommended 50-200 character sweet spot for LLM consumption. None of the tools have idempotency documentation despite write operations. The server appears to be STDIO-only, which further limits its production viability.
Check USDs balance and earned yield for an address. Returns current balance, yield earned, and APY.
Create a signed EIP-3009 authorization for gasless X402 payment. Returns signature for facilitator submission.
Estimate the cost of an X402 payment including gas fees.
Get current USDs yield statistics including APY, vault TVL, and rebase info.
Make an X402 payment using USDs stablecoin. Supports both standard and gasless (EIP-3009) payments.
Verify an X402 payment was completed successfully.
No output schemas documented for any tool. The rubric requires documented return types for A+ tools (100% baseline). Agents cannot plan downstream calls or extract fields without knowing what each tool returns.
Parameter descriptions are minimal and lack constraints. E.g., 'amount' parameter has no mention of decimal format, minimum/maximum bounds, or supported precision.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present despite obvious risk classification. x402_pay_with_usds is marked IRREVERSIBLE but has no destructiveHint; x402_check_usds_balance is READ_ONLY but lacks readOnlyHint. These annotations are required for agents to reason about retryability and side effects.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 39 | - | v1 |
Missing idempotency documentation for write operations. x402_pay_with_usds and x402_create_payment_authorization can have side effects; no guidance on whether they are idempotent or if the LLM should check for duplicates. Per pattern:idempotent-operation: 'Make tools produce the same result on repeated calls with the same input.'
No error handling guidance. Descriptions do not indicate what to do on failure (retry, ask user, terminal error). Per pattern:recovery-guide: 'Error responses must tell the LLM what to do next.' E.g., x402_pay_with_usds has no guidance on insufficient balance, network failures, or authorization issues.
'address' parameter description is bare ('Ethereum address to check balance for'). No mention of format validation (0x prefix expected?), checksum requirements, or what happens on invalid input.
'validUntil' parameter has a default ('1 hour') in description but no mention of Unix timestamp format, min/max bounds, or what 'expiration' means (in seconds? milliseconds?). Agents may pass invalid timestamps.
No documentation of mutual exclusivity or parameter dependencies. E.g., x402_pay_with_usds has 'gasless' flag but no explanation of what payload changes when true (EIP-3009 signature required? Different authorization flow?).