Raw tool arguments, validated against GenerateReportSchema
MCP tool result containing a structured report with summary, sections, statistics, and recommendations appropriate to the requested report type
const result = await handleGenerateReport({
reportType: 'MEP_ACTIVITY',
subjectId: 'MEP-124810',
dateFrom: '2024-01-01',
dateTo: '2024-12-31'
});
// Returns MEP activity scorecard with voting discipline, attendance,
// committee contributions, and performance recommendations
Input is validated with Zod before any API call. Personal data in responses is minimised per GDPR Article 5(1)(c). All requests are rate-limited and audit-logged per ISMS Policy AU-002.
Handles the generate_report MCP tool request.
Generates structured analytical intelligence reports on European Parliament data. Supports four report types: MEP activity scorecards, committee performance assessments, voting statistics summaries, and legislation progress reports. Delegates to a type-keyed generator map for O(1) dispatch.