Skip to main content
Glama

execute_token_swap

Swap tokens across multiple blockchain networks using specified token addresses and amounts. Supports Ethereum, Arbitrum, Polygon and other EVM chains for cross-chain trading operations.

Instructions

Execute a token swap using the Trader contract.

Args: chain_id: Chain ID (1, 10, 56, 100, 137, 8453, 42161) from_token_address: Address of token to swap from to_token_address: Address of token to swap to amount_wei: Amount to swap in wei format Returns: JSON string with swap transaction details.

Input Schema

NameRequiredDescriptionDefault
chain_idYes
from_token_addressYes
to_token_addressYes
amount_weiYes

Input Schema (JSON Schema)

{ "properties": { "amount_wei": { "title": "Amount Wei", "type": "string" }, "chain_id": { "title": "Chain Id", "type": "string" }, "from_token_address": { "title": "From Token Address", "type": "string" }, "to_token_address": { "title": "To Token Address", "type": "string" } }, "required": [ "chain_id", "from_token_address", "to_token_address", "amount_wei" ], "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/VolumeFi/mcpPADEX'

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