Skip to main content
Glama

simulate_trade

Estimate token or USDC amounts for potential trades using bonding curve pricing without executing transactions.

Instructions

Simulate a buy or sell trade to estimate how many tokens you'd receive for a given USDC amount (or vice versa). Does NOT execute a trade. Uses the bonding curve formula: price = basePrice + priceIncrement * tokensSold.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesThe token symbol
sideYesTrade direction: 'buy' (USDC → tokens) or 'sell' (tokens → USDC)
amountYesFor buy: USDC amount (e.g. 100 = $100). For sell: token amount (human-readable, e.g. 1000000 = 1M tokens)

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/0xzcov/omni-fun-mcp-server'

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