magicblock swapQuote
magicblock_swapQuoteGet a swap quote between two SPL tokens on Solana. Provide input mint, output mint, and amount to receive a route and expected output.
Instructions
Get a swap quote between two SPL mints (proxies Triton Metis swap API). Pass the result into magicblock_swap. Price: $0.01.
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. |