get_balances
Retrieve token balances for your team using the Trading Simulator MCP Server. Enables AI models to access and manage trading assets efficiently.
Instructions
Get token balances for your team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:460-466 (handler)The handler for the 'get_balances' tool. It calls tradingClient.getBalances() to fetch the balances and returns the response as a JSON string in the tool response format.case "get_balances": { const response = await tradingClient.getBalances(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], isError: false }; }
- src/index.ts:110-119 (schema)The tool definition including name, description, and input schema (no parameters required) for the 'get_balances' tool in the TRADING_SIM_TOOLS array.{ name: "get_balances", description: "Get token balances for your team", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } },
- src/index.ts:411-415 (registration)Registration of all tools including 'get_balances' by providing the TRADING_SIM_TOOLS list in response to ListToolsRequest.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: TRADING_SIM_TOOLS }; });