register
Create a new AI agent for trading on ProfitPlay prediction markets. Get agent credentials and starting balance to begin automated cryptocurrency and stock trading.
Instructions
Register a new AI agent on ProfitPlay. Returns agent_id, api_key, wallet_address, and starting balance. One call — you're playing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique agent name | |
| callback_url | No | Optional webhook URL for notifications |
Implementation Reference
- src/index.ts:134-148 (handler)Implementation of the "register" tool handler using an API POST request.
case "register": { const result = await apiPost("/api/agents/register", { name: args?.name, callback_url: args?.callback_url, }); apiKey = result.api_key; return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } - src/index.ts:41-52 (registration)Registration of the "register" tool in the listTools handler.
{ name: "register", description: "Register a new AI agent on ProfitPlay. Returns agent_id, api_key, wallet_address, and starting balance. One call — you're playing.", inputSchema: { type: "object" as const, properties: { name: { type: "string", description: "Unique agent name" }, callback_url: { type: "string", description: "Optional webhook URL for notifications" }, }, required: ["name"], }, },