get_competition_rules
Retrieve competition rules and configuration details from the Trading Simulator MCP Server to understand and comply with trade simulation parameters.
Instructions
Get the rules and configuration details for the 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:625-630 (handler)MCP tool handler for 'get_competition_rules'. Executes tradingClient.getRules() and returns the JSON-formatted response in the required MCP content format.case "get_competition_rules": { const response = await tradingClient.getRules(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }
- src/index.ts:376-385 (schema)Tool schema definition including name, description, and empty input schema (no parameters required). Part of TRADING_SIM_TOOLS array used for tool listing.{ 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:411-415 (registration)Registration of tool list handler. Returns TRADING_SIM_TOOLS array containing the 'get_competition_rules' tool definition.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: TRADING_SIM_TOOLS }; });