Skip to main content
Glama

Prepare an on-chain quote

prepare_quote
Read-onlyIdempotent

Prepare an on-chain BlazePhoenix quote to run on YOUR OWN RPC. Returns the exact eth_call (Quoter address + calldata, as a ready JSON-RPC request and a curl line) plus a request object. Run the call on your node, then pass request and the result hex to decode_quote. This server performs no RPC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inYesinput token — 0x address, or ETH / WETH / USDC / BZPX
outYesoutput token — 0x address, or ETH / WETH / USDC / BZPX
chainYesbase | eth | optimism | arbitrum | robinhood (or a chain id)
exactNotrue → previewPlanExact: every leg dry-run on its pool in this block (no calldata). No tokens move from a holder, so a token that blocks or taxes its own transfer still quotes; simulate the swap from the holder to test that
versionNoprotocol version: latest (default) | 1 | 2 | 2.0.0
amountInYesinput amount in base units (wei-style integer string)
recipientNooptional 0x address; with it, decode_quote returns signable calldata
userMinOutNooptional explicit minimum output, base units
deadlineSecNodeadline horizon in seconds, 10–3600 (default 120)
slippageBpsNo0–5000 (default 50); never below the on-chain floor

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesfalse: see code, error
callNo
codeNo
curlNo
modeNo
noteNo
errorNo
decodeNo
chainIdNo
requestNo
contractsNo
rpcRequestNo
protocolVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "call": {
      +      "type": "object"
      +    },
      +    "chainId": {
      +      "type": "integer"
      +    },
      +    "code": {
      +      "type": "string"
      +    },
      +    "contracts": {
      +      "type": "object"
      +    },
      +    "curl": {
      +      "type": "string"
      +    },
      +    "decode": {
      +      "type": "object"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "mode": {
      +      "const": "prepare"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "false: see code, error",
      +      "type": "boolean"
      +    },
      +    "protocolVersion": {
      +      "type": "string"
      +    },
      +    "request": {
      +      "type": "object"
      +    },
      +    "rpcRequest": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / exact / description
      Previous value: -"true → previewPlanExact (execution-grade dry-run, no calldata)"New value: +"true → previewPlanExact: every leg dry-run on its pool in this block (no calldata). No tokens move from a holder, so a token that blocks or taxes its own transfer still quotes; simulate the swap from the holder to test that"
  3. Added
  4. Removed
  5. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources