Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_DAILY_USDNoOptional cap on total spend across the whole UTC day, tracked across restarts via a local ledger. Attempted charges are counted before the payment is built, so the guard over-counts rather than under-counts.
VERIFY402_URLNoBase URL of the verify402 service the MCP bridge talks to. Pin your own instance here if you do not want to trust the public one.https://vex402.online
EVM_PRIVATE_KEYNoPrivate key of a dedicated hot wallet holding USDC. Omit it and the server registers only the free `preflight_gate` tool and nothing can be charged. Add it to unlock the five paid tools (verify_arbitrage, check_token_safety, get_best_route, verify_quote_fairness, get_trade_depth). The bridge signs the x402 payment only — never a trade.
MAX_PAYMENT_USDNoCaps a single x402 payment at signature time, enforced inside the x402 client before a signature exists.0.25

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

verify402 leads with a $0.02 token safety check for AI agents before they swap: quote-based sellability, round-trip cost, TRUST / CAUTION / AVOID. The free pre-signing gate is included; the other paid x402 checks are supporting measurements.

Free tools (no wallet needed, nothing can be charged):

  • preflight_gate: call BEFORE signing ANY payment, approval, transaction, or sign-in message. It returns PASS / CAUTION / BLOCK with typed reasons. sign_allowed:false means STOP. requires_ack:true means the human must acknowledge the reasons before signing.

  • For transactions, read preflight_gate's advice: show advice.explanation to the user, apply advice.fixes (they include suggested values) and call preflight_gate again on the repaired transaction.

  • inspect_402: read a 402 challenge BEFORE paying it (price, token, payee, timeout).

  • directory_402: list the watched public x402 endpoints and what changed.

Paid tools (each costs a small fixed USDC price via x402):

  • check_token_safety ($0.02) is the lead check: quote-based sellability, round-trip cost, TRUST / CAUTION / AVOID. Free pre-signing gate included.

  • Supporting checks: verify_arbitrage ($0.05), get_best_route ($0.03), verify_quote_fairness ($0.05), get_trade_depth ($0.05), get_assurance ($0.10).

  • watch_contract ($0.50 for 30 days): a signed webhook when a contract's code, upgrade controller, owner or paused flag changes. Needs MAX_PAYMENT_USD >= 0.50.

Paid tools are always listed. Without EVM_PRIVATE_KEY they return a clear error and never move money; the free tools still work.

How to call them safely:

  1. Never sign a payment, transaction, or sign-in message without preflight_gate. If it returns BLOCK, do not sign; fix the intent.

  2. A PASS is not a guarantee: it means the listed checks passed at one pinned block.

  3. If retrying a payment after a lost response, reuse the same x-idempotency-key so you are not charged twice.

  4. Prices and network are enforced by the 402 challenge you receive, not by these instructions. Paid calls settle in real USDC on Base mainnet (eip155:8453); the public testnet demo was retired on 2026-11-19.

  5. The paid analysis calls the chain for you; unconfigured venues and off-chain promises are not checked and are named in notChecked.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
preflight_gateA

Call this BEFORE signing any crypto transaction or x402 payment request. Returns PASS / CAUTION / BLOCK with typed reasons, the checks that actually ran, the checks that did not, and a short-lived receipt bound to the exact intent + block. If sign_allowed is false, DO NOT SIGN. If requires_ack is true, surface the reasons to the operator before signing. The receipt expires (default 90s): call again rather than reuse it. Free. Pass from (the wallet that will sign) to enable simulation and balance checks. For kind=transaction, chainId is REQUIRED (400 missing_chain without it). For kind=sign-in, pass signIn.message (or structured signIn fields) plus expected.host, and optionally expected.chainId and expected.address; it checks domain, URI origin, nonce, time window, chain and address binding. It does NOT check whether the site is legitimate, whether the nonce came from the server, replay state, or what the login grants. For payment intents with no from or no proof, the response is PASS with structural_only:true and names what was not checked. Optional caller-supplied checks: policy.sellerPayoutWallets is a payout allowlist, not provenance; policy.sellerPayoutManifest fetches a seller-signed manifest from a caller-pinned HTTPS origin and is the only source of payee_payout_binding; policy.obligation checks a local settled-key ledger and cumulative spend against a grant. The gate does not persist either state. If the transaction came with a quote from a swap API, pass it as quote: any difference between the decoded transaction and the quote is BLOCK. For kind=transaction the response also carries advice: explanation (one plain sentence to show your user), preview.effects (what leaves and enters the wallet, the minimum received, and the network fee when from is given), fixes (how to repair each flagged problem, with suggested values) and upgrades (optional paid checks that fit this transaction). Advice never changes the verdict. It also reports upgradeControl: whether the contract called (or an approval's spender) can have its code replaced, by whom (a single key, a multisig, a timelock) and any built-in upgrade delay the contract reports. Set policy.upgradeControl to caution or block to act on a single key. Transactions are read on 22 EVM networks; payment requests also on Solana.

inspect_402A

Read an x402 402 challenge BEFORE paying it. Pass a public endpoint URL (or the challenge you already have) and get back the price, token, network, payee, the bound resource, and a PASS / CAUTION / BLOCK verdict with typed reasons and a receipt. Use this when an agent is about to pay a server you do not control. The service fetches the challenge once, read-only: it never signs, pays, or settles. A recognized dollar stable (USDC, USDT, DAI, USDG) is named; a volatile asset gets a caution because it cannot be priced in USD. Free.

directory_402A

List the public x402 endpoints verify402 watches, with the price, network, payee, a protocol verdict (is the challenge well-formed?) and a sign verdict (should an agent sign it?), plus any changes since the previous check. Use it to see what the ecosystem is asking for before wiring an agent to it. Free.

verify_arbitrageA

Ask verify402 whether a cross-venue arbitrage opportunity is REAL, right now. Quotes come from Uniswap's canonical QuoterV2 and each DEX router at one pinned block. The honest answer is usually 'no_edge' - that IS the product. Costs $0.05 per call.

check_token_safetyA

Token safety check for AI agents before they swap: quote-based sellability, round-trip cost, TRUST / CAUTION / AVOID. $0.02 per call, free pre-signing gate included. Returns evidence: live contract facts, market liquidity, a USD-sized sell QUOTED through the configured venues' own routers (direct and WETH-routed), round-trip cost at your intended size, and phantom-price detection. It does NOT execute or simulate a transfer: transfer tax, blacklist, pause, and max-tx restrictions are listed in notChecked, not tested. Unconfigured venues are also named in notChecked; this is not a honeypot proof. Solana: pass network "solana" and the token's mint as tokenAddress (no chainId) to read the mint's own controls: mint and freeze authority, permanent delegate, transfer fee and who can change it, transfer hook, non-transferable, frozen-by-default, pause. No Solana swap quote is taken, so sellability is listed in notChecked. Every paid answer is signed (Ed25519, key at /.well-known/verify402-signing-key).

get_best_routeA

Ask verify402 what the chain would ACTUALLY pay for a swap: the full book from every configured venue (direct, WETH-routed, and the best pool for each leg) at one pinned block, best first. For a large order it also estimates the order split across the top venues, and shows the price impact. Aggregators and unconfigured DEXs are not included. Costs $0.03 per call.

verify_quote_fairnessA

Audit a swap quote someone else gave you (aggregator, broker, bot) BEFORE signing. Returns fair / overpaying / too_good_to_be_true with the configured-venue book as evidence. A large order is compared with the order split across the top venues. When the venues read are too thin at that size, a much better quote is 'unknown' with the reason, not called invented. Ask this before accepting ANY number you did not produce yourself. Costs $0.05 per call.

get_trade_depthA

Position sizing: measure how much of a token the chain ACTUALLY lets you trade - entry and exit across every configured venue at a ladder of USD sizes, per-size impact and round-trip cost, plus the largest size under your cost tolerance. Ask BEFORE choosing a position size. Costs $0.05 per call.

get_assuranceA

Run the paid checks you need at ONE pinned block and get one evidence bundle back - safety, route, quotecheck, depth, or any combination. Cheaper than buying each separately. Pass you only what you need: an unsupplied check is reported as notChecked, not guessed. Costs $0.10 per call; the supplied parts total $0.12.

watch_contractA

Watch one contract for 30 days and get told when it changes. About once an hour verify402 re-reads its code, its proxy implementation (and that code), who can upgrade it, owner() and paused(); on any change it POSTs one signed JSON event (type contract_changed, old and new value per field) to YOUR public https webhookUrl. Use it for a contract your agent depends on: a token, a vault, a router, a bridge. Detection after the fact, not prevention; role grants, timelock queues and multisig changes are not watched. Costs $0.50 per watch (30 days). The default per-payment cap is $0.25, so set MAX_PAYMENT_USD=0.50 to use it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 10 tools

Disambiguation4/5

The tools cover genuinely distinct actions: preflight gating, token safety, route discovery, quote auditing, depth measurement, arbitrage detection, and x402 challenge inspection. The three price-oriented tools (get_best_route, verify_quote_fairness, verify_arbitrage) sit close together, but the descriptions sharply delineate 'my own swap', 'someone else's quote', and 'cross-venue edge'. get_assurance intentionally duplicates the individual paid checks as a bundle, which is a mild ambiguity but clearly framed as a bundle.

Naming Consistency4/5

Most tools follow a verb_noun pattern (verify_arbitrage, verify_quote_fairness, check_token_safety, get_best_route, get_trade_depth, get_assurance, watch_contract, inspect_402), which is predictable. Deviations are minor: directory_402 is a noun-style name and preflight_gate is noun_compound, and the _402 suffix is applied inconsistently (only two tools).

Tool Count5/5

10 tools is well within the sweet spot and each one earns its place: a coherent suite of read-only verification primitives plus a bundle aggregator. No filler tools, and the free/paid tiering (preflight, directory, inspect) adds value rather than redundancy.

Completeness4/5

The surface covers the pre-signing lifecycle well: gate, token safety, routing, quote audit, depth, arbitrage, contract watching, and x402 challenge inspection/directory. Gaps are minor and mostly intentional (read-only by design, no execution), though there is no allowance/approval inspection or revoke tool and check_token_safety explicitly leaves transfer-tax/blacklist untested, which agents must work around.

Maintenance

ActivityActive
ResponsivenessLimited data