inflation_rates
Retrieve inflation data for Turkey within specified date ranges to analyze economic trends and support investment decisions.
Instructions
Enflasyon verilerini listeler
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | No | Başlangıç tarihi (YYYY-MM-DD) | |
| end_date | No | Bitiş tarihi (YYYY-MM-DD) |
Implementation Reference
- src/tools.ts:534-536 (handler)MCP tool handler case that validates the input using InflationSchema and calls the API client's getInflationRates method to execute the tool logic.case 'inflation_rates': const inflationParams = InflationSchema.parse(args); return await this.apiClient.getInflationRates(inflationParams);
- src/tools.ts:425-441 (registration)Registration of the 'inflation_rates' tool in the getTools() method, including name, description, and input schema.{ name: 'inflation_rates', description: 'Enflasyon verilerini listeler', inputSchema: { type: 'object', properties: { start_date: { type: 'string', description: 'Başlangıç tarihi (YYYY-MM-DD)' }, end_date: { type: 'string', description: 'Bitiş tarihi (YYYY-MM-DD)' } } } },
- src/tools.ts:74-77 (schema)Zod schema used for input validation in the inflation_rates tool handler.const InflationSchema = z.object({ start_date: z.string().optional(), end_date: z.string().optional() });
- src/api-client.ts:169-172 (helper)API client helper method that performs the HTTP GET request to fetch inflation rates data from the backend API.async getInflationRates(params: InflationParams = {}): Promise<InflationRate[]> { const response: AxiosResponse<InflationRate[]> = await this.client.get('/inflation', { params }); return response.data; }
- src/types.ts:253-256 (schema)TypeScript interface defining the structure of input parameters for the getInflationRates method.export interface InflationParams { start_date?: string; end_date?: string; }