get_competition_status
Check the status of ongoing competitions within the Trading Simulator MCP Server. Monitor active events and their progress directly using this tool for informed decision-making in trading simulations.
Instructions
Get the status of the current competition
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/index.ts:351-360 (schema)Schema definition for the get_competition_status tool, 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/index.ts:608-614 (handler)Handler logic for the get_competition_status tool within the CallToolRequestSchema switch statement. Delegates to tradingClient.getCompetitionStatus() and formats 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:411-415 (registration)Registration of the tools list (including get_competition_status) via the ListToolsRequestHandler.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: TRADING_SIM_TOOLS }; });