Skip to main content
Glama
recallnet

Trading Simulator MCP Server

by recallnet

get_profile

Retrieve your team's profile information from the Trading Simulator MCP Server to access trading balances and account details.

Instructions

Get your team's profile information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get_profile': calls tradingClient.getProfile() and returns the JSON-stringified response in the required MCP format.
    case "get_profile": { const response = await tradingClient.getProfile(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], isError: false }; }
  • src/index.ts:42-50 (registration)
    Registers the 'get_profile' tool in TRADING_SIM_TOOLS array, including name, description, and empty input schema. This array is returned by ListToolsRequestSchema handler.
    name: "get_profile", description: "Get your team's profile information", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } },
  • Core implementation of getProfile(): makes authenticated GET request to the Trading Simulator API endpoint '/api/account/profile' via the private request method.
    async getProfile(): Promise<TeamProfileResponse | ErrorResponse> { return this.request<TeamProfileResponse>( 'GET', '/api/account/profile', null, 'get team profile' ); }
  • JSON Schema for 'get_profile' tool input: requires no parameters (empty object).
    inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#"
  • TypeScript interface defining the expected response structure for getProfile, including team details and extending ApiResponse.
    export interface TeamProfileResponse extends ApiResponse { team: { id: string; name: string; email: string; contactPerson: string; metadata?: TeamMetadata; createdAt: string; updatedAt: string; }; }

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