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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:437-443 (handler)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#" } },
- src/api-client.ts:214-221 (handler)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' ); }
- src/index.ts:44-48 (schema)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#"
- src/types.ts:119-129 (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; }; }