Skip to main content
Glama

DeFi Trading Agent MCP Server

by edkdev

get_swap_quote

Obtain executable quotes with transaction data for token swaps across multiple blockchains, enabling precise trade execution with specified slippage and token details.

Instructions

Get executable quote with transaction data for a token swap

Input Schema

NameRequiredDescriptionDefault
buyTokenYesContract address of token to buy
chainIdYesBlockchain ID (e.g., 1 for Ethereum)
sellAmountYesAmount of sellToken in base units
sellTokenYesContract address of token to sell
slippageBpsNoMaximum acceptable slippage in basis points (optional, default: 100)
takerNoAddress executing the trade (optional, uses USER_ADDRESS from env)

Input Schema (JSON Schema)

{ "properties": { "buyToken": { "description": "Contract address of token to buy", "type": "string" }, "chainId": { "description": "Blockchain ID (e.g., 1 for Ethereum)", "type": "integer" }, "sellAmount": { "description": "Amount of sellToken in base units", "type": "string" }, "sellToken": { "description": "Contract address of token to sell", "type": "string" }, "slippageBps": { "description": "Maximum acceptable slippage in basis points (optional, default: 100)", "type": "integer" }, "taker": { "description": "Address executing the trade (optional, uses USER_ADDRESS from env)", "type": "string" } }, "required": [ "chainId", "buyToken", "sellToken", "sellAmount" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/edkdev/defi-trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server