get_competition_rules
Retrieve competition rules and configuration details for the Trading Simulator to understand participation requirements and structure.
Instructions
Get the rules and configuration details for the competition
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:376-385 (registration)Tool registration definition including name, description, and input schema for get_competition_rules{ name: "get_competition_rules", description: "Get the rules and configuration details for the competition", inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" } },
- src/index.ts:379-384 (schema)Input schema definition for the get_competition_rules tool (empty object, no parameters required)inputSchema: { type: "object", properties: {}, additionalProperties: false, $schema: "http://json-schema.org/draft-07/schema#" }
- src/index.ts:625-630 (handler)MCP tool handler for get_competition_rules: calls tradingClient.getRules() and returns JSON-stringified responsecase "get_competition_rules": { const response = await tradingClient.getRules(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }
- src/api-client.ts:568-575 (helper)API client helper method getRules() that performs HTTP GET to /api/competition/rules via the generic request methodasync getRules(): Promise<CompetitionRulesResponse | ErrorResponse> { return this.request<CompetitionRulesResponse>( 'GET', '/api/competition/rules', null, 'get competition rules' ); }