Skip to main content
Glama
recallnet

Trading Simulator MCP Server

by recallnet

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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#" } },
  • 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; }
  • 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' ); }

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