get_weekly_reports
Generate weekly market analysis reports for the Spanish stock exchange, including market overviews, sector analysis, and governance highlights.
Instructions
Get generated weekly reports and analysis
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of reports | |
| reportType | No | Type of report to filter by |
Implementation Reference
- src/index.ts:316-334 (registration)Registration of the 'get_weekly_reports' tool including its name, description, and input schema definition.{ name: 'get_weekly_reports', description: 'Get generated weekly reports and analysis', inputSchema: { type: 'object', properties: { reportType: { type: 'string', enum: ['market_overview', 'sector_analysis', 'governance_highlights', 'full_report'], description: 'Type of report to filter by', }, limit: { type: 'number', description: 'Maximum number of reports', default: 10, }, }, }, },
- src/index.ts:319-333 (schema)Input schema for the 'get_weekly_reports' tool defining parameters reportType and limit.inputSchema: { type: 'object', properties: { reportType: { type: 'string', enum: ['market_overview', 'sector_analysis', 'governance_highlights', 'full_report'], description: 'Type of report to filter by', }, limit: { type: 'number', description: 'Maximum number of reports', default: 10, }, }, },
- src/index.ts:645-647 (handler)Handler case in the tool request switch statement that executes the get_weekly_reports tool by calling the database method.case 'get_weekly_reports': result = await this.db.getWeeklyReports((args as any)?.reportType, (args as any)?.limit || 10); break;
- src/database.ts:331-337 (handler)Core implementation of getWeeklyReports in DatabaseManager that fetches weekly reports from the API endpoint '/api/reports'.async getWeeklyReports(reportType?: string, limit: number = 10): Promise<any[]> { const data = await this.fetchAPI('/api/reports', { type: reportType, limit: limit }); return data.reports || []; }