Skip to main content
Glama

APEX x402 Full MCP Hub

Pay safe

pay_safe

Pre-payment USDC payee & address-poisoning safety check ($0.01; $0.002 lite, 20 free/day at https://apexfaucet.xyz/pay-safe). Call this before sending USDC on Arc or Base. One EIP-712 PaySafeVerdict (domain APEX PaySafe, version 1, chainId 5042) covers the payee (Arc poison index, lookalikes, USDC blacklist, OFAC SDN file; Base is the USDC blacklist only and a missing lookalike index is CAUTION), a duplicate of resource+payee+amount+nonce when all three are present, our catalog price, and whether that endpoint has a prior delivered settlement. Verdicts: PASS, CAUTION, DO_NOT_PAY, COULD_NOT_READ. PASS needs every code clean. A missing nonce is CAUTION, not a stop. PayGuard does not read this type. This is not a permission to pay. 20 free a day at /pay-safe, then $0.01. Up to 10 for $0.03 (pass items). 100 prepaid checks for $0.20 are call units, not a USDC balance: pass credit. Hook: /pay-safe/apex-pay-safe.js (onBeforePaymentCreation). It stops only on DO_NOT_PAY, COULD_NOT_READ and a used-up free day. tier=lite is a separate $0.002 call at /api/x402/pay-safe-lite: payee check only. It does not run the duplicate, catalog price or delivery checks, it does not return PASS, and it does not use the free day or a credit. Drop-in examples for Syncly, Vestiarion, Mercenta, Elpis and Circle Gateway: https://apexfaucet.xyz/x402-clients/. Arc builders, including Tameion: https://apexfaucet.xyz/arc-builders/. 20 free full checks a day, then $0.01. Lite stays $0.002.

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

Input Schema

NameRequiredDescriptionDefault
tierNofull (default, $0.01, every check) or lite ($0.002, payee check only). lite does not return PASS.
chainNoarc (default) or base
itemsNoJSON array of up to 10 checks. 11 is refused whole.
nonceNoEIP-3009 nonce, 0x and 64 hex. Omit it and the duplicate half is NOT_CHECKED.
payeeNo0x address that would be paid. Required unless items is set.
payerNooptional: your paying wallet
amountNoUSDC decimal like 0.01, or atomic units (9000 is $0.009) when resource and nonce are set
creditNoprepaid pay-safe token. Call units, not a USDC balance. Ignored when tier is lite.
windowNoSeconds for the duplicate half. Default 600.
paymentNoa signed x402 payment (base64, as in PAYMENT-SIGNATURE). Pass it here and the purchase completes inside this tool call.
resourceNohttps resource URL. Needed for the price and delivery checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/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 so: it discloses pricing and free-tier quotas, per-chain check coverage (Base is blacklist-only, a missing lookalike index is CAUTION), that a missing nonce downgrades to CAUTION rather than a stop, that credit is call units rather than a USDC balance, and that the hook stops only on DO_NOT_PAY/COULD_NOT_READ. It also states that '11 is refused whole' and that lite does not consume the free day or a credit, which are exactly the failure semantics an agent needs.

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?

The pricing and free-tier statement ('20 free a day at /pay-safe, then $0.01') is repeated three separate times, along with two trailing promotional URL lists for client examples and Arc builders. The core semantics are buried mid-paragraph in a dense run-on sentence covering the EIP-712 payload, domain, chainId and check list. Substantial redundancy and off-topic marketing make this far longer than the task requires.

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 an 11-parameter tool with no annotations and no output schema, the description covers the crucial gaps: what verdicts exist, what each verdict means, what the signed response type is, and how tiers and credits behave. It does not describe the shape of the returned object or how to handle a COULD_NOT_READ programmatically, but an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema does not: the duplicate check requires resource, payee, amount and nonce together, and omitting nonce leaves that half NOT_CHECKED. It also clarifies that credit is ignored when tier is lite, which refines the schema's own note. It does not explain window or payer beyond what the field descriptions already say.

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 opening sentence names a specific verb and resource: a pre-payment USDC payee and address-poisoning safety check. It expands into verdicts (PASS/CAUTION/DO_NOT_PAY/COULD_NOT_READ) and a lite variant, so an agent knows what it gets. It never distinguishes itself from siblings such as pay_safe_batch, pay_safe_credits or pay_preflight, even though the 'items' array and 'credit' parameter clearly overlap with those tools.

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?

'Call this before sending USDC on Arc or Base' gives a clear trigger, and the description explains when the separate lite call is appropriate (payee check only). It also warns 'This is not a permission to pay', setting expectations. What's missing is routing guidance against the many sibling tools that appear to do overlapping safety and credit work.

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.