The agent successfully purchases tokens on a specific chain by handling the x402 payment challenge, settling on Base and receiving tokens on the destination chain without bridging.
The agent uses quote_buy to check payment requirements, then calls buy_token with the signed x402 payload. Alternatively, it can use pay_and_buy to execute the purchase directly, where the server signs the EIP-3009 USDC authorization. This enables seamless cross-chain swaps without native gas on the destination chain.
- Category: Finance and payments
- Effect: Moves money or places orders
- MCP servers: ADEXTO MCP (https://koskamo.com/explore/adexto-mcp)
- Source: MCP server for AI agents — ADEXTO docs (https://adexto.xyz/docs/mcp)
- Source quote: "pay_and_buy is the one tool that spends money: it needs an x-agent-key header and signs with the operator's key, within fixed limits."
- Playbook page: https://koskamo.com/explore/use-cases/execute-cross-chain-token-purchase-with-x402
Prompt: Buy 100 units of 'MOCK' on Monad. First quote the buy, then execute the purchase using the pay_and_buy tool.