Raw tool arguments, validated against MonitorLegislativePipelineSchema
MCP tool result containing pipeline items with stage, lifecycle events, forecast basis, summary counts, detected bottlenecks (≥95th percentile dwell), pipeline health score, throughput rate, bottleneck index, and legislative momentum.
args fails schema validation (e.g., missing required fields or invalid format)const result = await handleMonitorLegislativePipeline({
status: 'ACTIVE',
committee: 'ENVI',
dateFrom: '2024-01-01',
dateTo: '2024-12-31',
limit: 20
});
// Returns pipeline health score, stalled/active/completed counts,
// bottleneck list, lifecycleEvents per procedure, and forecastBasis.
Handles the monitor_legislative_pipeline MCP tool request.
Monitors the European Parliament's active legislative pipeline by fetching real procedures and their authoritative event timelines from the EP API (
/procedures+/procedures/{id}/events) and computing lifecycle-driven health metrics: percentile-based bottleneck detection, historical-median completion forecasts, and stage-aware dwell statistics.