get_competition_status
Check the current competition status in the Trading Simulator to monitor active trading contests and track participant standings.
Instructions
Get the status of the current competition
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:608-614 (handler)MCP server tool handler for 'get_competition_status' that invokes tradingClient.getCompetitionStatus() and formats the response as MCP content.
case "get_competition_status": { const response = await tradingClient.getCompetitionStatus(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], isError: false }; } - src/index.ts:351-360 (registration)Tool registration definition in TRADING_SIM_TOOLS array, including name, description, and input schema (no parameters required).
{ name: "get_competition_status", description: "Get the status of the current competition", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } }, - src/types.ts:270-275 (schema)Type definition for CompetitionStatusResponse, the expected output type of the getCompetitionStatus API call.
export interface CompetitionStatusResponse extends ApiResponse { active: boolean; competition: Competition | null; message?: string; participating?: boolean; } - src/api-client.ts:534-541 (helper)TradingSimulatorClient.getCompetitionStatus() method that performs the HTTP GET request to the backend API endpoint '/api/competition/status'.
async getCompetitionStatus(): Promise<CompetitionStatusResponse | ErrorResponse> { return this.request<CompetitionStatusResponse>( 'GET', '/api/competition/status', null, 'get competition status' ); }