magicblock swapQuote
magicblock_swapQuoteGet 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.
SAP MCP execution guidance: Intent: Solana value-action or trading workflow. Pricing: paid read-premium; estimate first, then use sap_payments_call_paid_tool when the runtime cannot replay x402 natively. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.
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. |