Buy a coin
cook4fun_buySwap ETH for any cook4.fun coin by specifying its 0x address or $TICKER. Use slippage protection to secure your trade.
Instructions
Buy a cook4.fun coin by spending ETH. Reference the coin by 0x address or $TICKER. Slippage-protected.
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": {
"token": "<token>",
"ethAmount": "<ethAmount>"
},
"name": "cook4fun_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Coin address (0x…) or $TICKER | |
| ethAmount | Yes | ETH to spend, e.g. "0.05" | |
| slippageBps | No |