prepare_buy
Build an unsigned buy transaction for a pump.fun token within configured trade and spend caps, returning base64 for you to sign and broadcast in your own wallet.
Instructions
Build an UNSIGNED buy transaction for a pump.fun token, sized within the configured per-trade and spend-cap limits. This server never holds a private key and never signs or broadcasts anything — it returns a base64-encoded transaction for you to review and sign yourself in your own wallet (e.g. paste into a wallet that supports raw transaction signing, or use the accompanying CLI/script). Refuses to build the transaction unless get_risk_score has been called recently for this mint and it passed the configured threshold, and unless the requested USD size is within [MIN_TRADE_USD, MAX_TRADE_USD] and the daily/weekly spend caps.
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": {
"mint": "<mint>",
"usdAmount": "<usdAmount>"
},
"name": "prepare_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Token mint address to buy. | |
| usdAmount | Yes | USD size for this buy. Must be between $10 and $20. | |
| slippagePct | No | Override default slippage tolerance (%). |