Skip to main content
Glama

swap

Execute token swaps on Ethereum by handling approvals and router calls for ERC20 and ERC6909 tokens with configurable parameters.

Instructions

Swap ERC20 and ERC6909 tokens (proper approvals then router call).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenInYesSymbol (e.g. "USDT") or { address, id? }
tokenOutYesSymbol (e.g. "IZO") or { address, id? }
amountYesHuman-readable amount, e.g. 1.5
sideYes
slippageBpsNoBasis points, default 50 = 0.50%
deadlineSecondsNoFrom now, default 300s
ownerNo
finalToNo
routerNo

Other Tools

Latest Blog Posts

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/NaniDAO/agentek'

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