# MCP workflows

> The tool sequences an agent follows with the Intents MCP server: Checkout invoices, Swap by deposit address and Route plans, with the rules for amounts, IDs and retries.

- **Checkout:** `create_invoice` (with your order ID as `reference`) → share the invoice `url` →
  `payment_status`, or the `invoice.paid` webhook. Retry with the same `reference`: you get the
  same invoice, never a second one.
- **Swap:** `quote_swap` → `create_swap` → the user sends exactly `deposit.amount` to
  `deposit.address` → `swap_status`. Keep the `orderId`; never create a second swap to retry.
- **Route:** `quote_route` → `get_route_plan` → the user signs each step locally →
  `route_order_status`.

Amounts in Route and Swap tools are integer strings in base units and assets are CAIP-19 IDs
(`list_assets` finds them); Checkout prices are USD strings like `"49.00"`.

---

Source: https://intents.fi/docs/mcp/workflows · The whole corpus: https://intents.fi/docs/llms-full.txt
