Skip to main content
Glama
kemalersin

FonParam MCP

by kemalersin

statistics_by_date

Retrieve investment fund statistics for a specific date from Turkey's financial data. Use this tool to analyze fund performance, view company metrics, and access historical data by providing a date in YYYY-MM-DD format.

Instructions

Belirli bir günün istatistiklerini getirir

Input Schema

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

Implementation Reference

  • Core handler function in the API client that executes the HTTP GET request to fetch daily statistics for the specified date.
    async getStatisticsByDate(date: string): Promise<DailyStatistics> {
      const response: AxiosResponse<DailyStatistics> = await this.client.get(`/statistics/${date}`);
      return response.data;
    }
  • src/tools.ts:368-381 (registration)
    MCP tool registration defining the name, description, and input schema for 'statistics_by_date'.
    {
      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']
      }
    },
  • Tool dispatch handler in FonParamTools.handleToolCall that invokes the API client method with the date argument.
    case 'statistics_by_date':
      return await this.apiClient.getStatisticsByDate(args.date);
  • TypeScript interface defining the structure of the DailyStatistics output returned by the tool.
    export interface DailyStatistics {
      date: string;
      total_funds: number;
      total_companies: number;
      total_investors: number;
      total_aum: number;
      avg_profit: number;
      avg_loss: number;
    }
  • JSON schema for input validation defining the required 'date' parameter (YYYY-MM-DD format).
    inputSchema: {
      type: 'object',
      properties: {
        date: {
          type: 'string',
          description: 'İstatistik tarihi (YYYY-MM-DD)'
        }
      },
      required: ['date']
    }

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