Skip to main content
Glama
recallnet

Trading Simulator MCP Server

by recallnet

get_portfolio

Retrieve detailed portfolio information for your team using the Trading Simulator MCP Server to monitor balances, track positions, and manage trading strategies effectively.

Instructions

Get portfolio information for your team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_portfolio' tool. It calls tradingClient.getPortfolio() to fetch the portfolio data and returns it as a JSON string in the MCP response format.
    case "get_portfolio": { const response = await tradingClient.getPortfolio(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], isError: false }; }
  • src/index.ts:120-129 (registration)
    Registration of the 'get_portfolio' tool in the TRADING_SIM_TOOLS array, which is returned by the ListTools handler. Includes the tool name, description, and input schema (empty object since no parameters required).
    { name: "get_portfolio", description: "Get portfolio information for your team", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } },
  • TypeScript interface defining the structure of the portfolio response, used implicitly as output schema for the get_portfolio tool.
    export interface PortfolioResponse extends ApiResponse { teamId: string; totalValue: number; tokens: TokenPortfolioItem[]; snapshotTime: string; source: PortfolioSource; }
  • Type definition for individual token portfolio items, part of the portfolio response structure.
    export interface TokenPortfolioItem { token: string; amount: number; price: number; value: number; chain: BlockchainType; specificChain: SpecificChain | null; }

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