Skip to main content
Glama
recallnet

Trading Simulator MCP Server

by recallnet

get_balances

Retrieve token balances for your team in the Trading Simulator to monitor holdings and track portfolio performance.

Instructions

Get token balances for your team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that executes the getBalances tool logic by making an authenticated API request to retrieve token balances.
    async getBalances(): Promise<BalancesResponse | ErrorResponse> { return this.request<BalancesResponse>( 'GET', '/api/account/balances', null, 'get balances' ); }
  • src/index.ts:110-119 (registration)
    MCP tool registration including name, description, and input schema (no parameters required).
    { name: "get_balances", description: "Get token balances for your team", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } },
  • MCP CallToolRequest dispatch handler for get_balances tool, delegates to tradingClient.getBalances() and formats response.
    case "get_balances": { const response = await tradingClient.getBalances(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], isError: false }; }
  • Type definitions for BalancesResponse (output) and TokenBalance used in getBalances response.
    export interface TokenBalance { token: string; amount: number; chain: BlockchainType; specificChain: SpecificChain | null; } export interface BalancesResponse extends ApiResponse { teamId: string; balances: TokenBalance[]; }

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