Skip to main content
Glama

statistics_by_date

Retrieve investment fund statistics for a specific date from the FonParam MCP server, enabling analysis and comparison of Turkish fund data.

Instructions

Belirli bir günün istatistiklerini getirir

Input Schema

NameRequiredDescriptionDefault
dateYesİstatistik tarihi (YYYY-MM-DD)

Input Schema (JSON Schema)

{ "properties": { "date": { "description": "İstatistik tarihi (YYYY-MM-DD)", "type": "string" } }, "required": [ "date" ], "type": "object" }

Implementation Reference

  • The handler case within the handleToolCall switch statement that processes calls to the 'statistics_by_date' tool by invoking the API client's getStatisticsByDate method with the date argument.
    case 'statistics_by_date': return await this.apiClient.getStatisticsByDate(args.date);
  • src/tools.ts:368-381 (registration)
    The tool registration entry in the getTools() method array, defining the name, description, and input schema for the 'statistics_by_date' tool.
    { name: 'statistics_by_date', description: 'Belirli bir günün istatistiklerini getirir', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'İstatistik tarihi (YYYY-MM-DD)' } }, required: ['date'] } },
  • TypeScript interface defining the structure of the DailyStatistics object, which is the expected output type of the statistics_by_date tool.
    export interface DailyStatistics { date: string; total_funds: number; total_companies: number; total_investors: number; total_aum: number; avg_profit: number; avg_loss: number; }
  • Helper method in the API client class that makes the HTTP GET request to fetch daily statistics for the specified date from the FonParam API.
    async getStatisticsByDate(date: string): Promise<DailyStatistics> { const response: AxiosResponse<DailyStatistics> = await this.client.get(`/statistics/${date}`); return response.data; }

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/kemalersin/fonparam-mcp'

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