magicblock swapQuote
magicblock_swapQuoteRetrieve a swap quote between two SPL token mints. Use this read-only endpoint to estimate swap details before executing a value-moving swap.
Instructions
Get a swap quote between two SPL mints (proxies Triton Metis swap API). Pass the result into magicblock_swap. Lightweight read tier; use this before any value-moving swap.
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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>"
},
"name": "magicblock_swapQuote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Raw amount to swap (unsigned integer string, e.g. '1000000') | |
| swapMode | No | Swap mode: fixed input or fixed output amount | |
| inputMint | Yes | Input token mint address | |
| outputMint | Yes | Output token mint address | |
| maxAccounts | No | Approximate maximum account budget for the route (default 64) | |
| slippageBps | No | Slippage threshold in basis points (e.g. 50 = 0.5%) | |
| platformFeeBps | No | Optional platform fee in basis points | |
| onlyDirectRoutes | No | Limit routing to a single hop (default false) | |
| restrictIntermediateTokens | No | Restrict intermediate tokens to a more stable set (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |