Koskamo

Execute cross-chain token purchase with x402

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.

How it works

Moves money or places ordersFinance and payments

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.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Execute cross-chain token purchase with x402
Buy 100 units of 'MOCK' on Monad. First quote the buy, then execute the purchase using the pay_and_buy tool.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

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.
MCP server for AI agents — ADEXTO docs

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.