Get swap or bridge quotes with execution plans
get_quotes_with_plansA quote, execution plan, simulation or wallet approval is not permission to trade. Robinhood Stock Tokens are tokenised debt securities subject to issuer restrictions and applicable law. Before requesting signatures or submitting approvals or trades, establish the user's relevant jurisdiction and eligibility, including location, residence or entity incorporation, US-person status under Regulation S, any person for whose account or benefit the transaction is made, and issuer Prohibited Investor restrictions. Never infer these facts from an agent or server IP. If required facts or asset-policy coverage are unknown, do not proceed. Only the user or an authorized representative of the actual investor may provide an explicit factual attestation; an agent must not attest on their behalf. A known prohibited fact cannot be overridden by attestation. An attestation is not a license, legal exemption or substitute for required screening. Keep the attestation client-side; do not send it to the quote API or MCP server. No blanket disposal exemption applies. Quote EVM swaps: Ekubo/0x same-chain; Across/LayerZero/LI.FI cross-chain. Plans: sender plus exactly one of whole slippage_bps or exact-input max_output_loss in output base units. Omit all three for indicative quotes. Pass execution.execution_plan_reference unchanged to wallet simulation; send that simulation for owner authorization. Honor initial/revised numeric bounds exactly. No autonomous widening after failure. Delegated increase: choose/disclose a reasonable finite bound, not unlimited slippage. Changed terms need fresh plans, validated minimum output and new simulation/authorization; never edit plans or reuse reverted/expired bytes or old simulations. All/max: exact wallet balance. Compare amount_out/native_fee. LayerZero/LI.FI: get_value_transfer_status. Failures: unavailable_sources (provider), execution_unavailable (plan).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain_id": "<chain_id>",
"token_in": "<token_in>",
"token_out": "<token_out>",
"quote_type": "<quote_type>",
"amount": "<amount>"
},
"name": "get_quotes_with_plans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Base units (positive decimal integer) | |
| sender | No | Transaction sender; pass with exactly one of slippage_bps or max_output_loss for plans (address) | |
| chain_id | Yes | EVM chain ID | |
| token_in | Yes | Raw EVM address or CAIP-10 eip155:<chain_id>:<address>; all-zeroes denotes the native token | |
| recipient | No | Defaults to sender (address) | |
| token_out | Yes | Raw EVM address or CAIP-10 eip155:<chain_id>:<address>; all-zeroes denotes the native token | |
| quote_type | Yes | ||
| slippage_bps | No | Whole-bps calldata bound: 0.1% = 10. With sender use this OR max_output_loss. Honor explicit initial/revised tolerance exactly; no server default; gas-sized budgets are optional if unspecified. Sub-bps: use max_output_loss, not 0 or 1 bps. No autonomous widening after failure; user changes need fresh plans. | |
| max_output_loss | No | Exact-input loss from quoted output: decimal integer in output base units; requires sender, omit slippage_bps. Ekubo subtracts exactly; 0x floors to ppm in two quotes and verifies minBuyAmount; positive sub-ppm fails. Others unsupported. Honor initial/revised budgets exactly; no server default; gas-sized budgets are optional if unspecified. No rounding to 1 bps. | |
| include_raw_quotes | No | Echo raw provider responses; only to diagnose a provider | |
| destination_chain_id | No | Destination chain; defaults to chain_id for a same-chain swap | |
| swap_deadline_minutes | No | Ekubo router route deadline; default 30 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quotes | No | ||
| jurisdiction | No | jurisdiction metadata (ekubo-token-jurisdictions-v2): coverage, execution_hold, restricted_jurisdictions, per-asset classification |