Skip to main content
Glama

Trading Simulator MCP Server

by recallnet

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • 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) }], }; }
  • 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 }; });

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/recallnet/trading-simulator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server