Skip to main content
Glama
recallnet

Trading Simulator MCP Server

by recallnet

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }; }
  • 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 }; });

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/recallnet/trading-simulator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server