Skip to main content
Glama

SCRIPTMASTERLABS — SwapGate

Build a swap (paid, x402)

swap_quote_build

Build one non-custodial swap via POST /swap/build on this host ($0.01 USDC on Base via x402). Returns best route found at quote time, itemized fees, guaranteed minimum received, and an unsigned transaction. This MCP wrapper does not take payment itself: call the HTTP endpoint, answer its 402 challenge, and retry with PAYMENT-SIGNATURE.

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": {
      "fromChain": "<fromChain>",
      "fromToken": "<fromToken>",
      "toChain": "<toChain>",
      "toToken": "<toToken>",
      "amount": "<amount>",
      "fromAddress": "<fromAddress>"
    },
    "name": "swap_quote_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
toChainYes
toTokenYes
fromChainYes
fromTokenYes
toAddressNo
fromAddressYes
slippageBpsNo
maxPriceImpactBpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources