buy-token
Purchase tokens on the Pump.fun platform via the Solana blockchain. Input the token address, buy amount in SOL, account name, and slippage tolerance to execute the transaction.
Instructions
Buy a Pump.fun token
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": {
"tokenAddress": "<tokenAddress>",
"buyAmount": "<buyAmount>"
},
"name": "buy-token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountName | No | Name of the account to use | default |
| buyAmount | Yes | Amount to buy in SOL | |
| slippageBasisPoints | No | Slippage tolerance in basis points (1% = 100) | |
| tokenAddress | Yes | The token's mint address |