Raw tool arguments, validated against MonitorLegislativePipelineSchema
MCP tool result containing pipeline items with stage and status, summary counts (active/stalled/completed), detected bottlenecks, pipeline health score, throughput rate, bottleneck index, and legislative momentum classification
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, and legislative momentum assessment
Handles the monitor_legislative_pipeline MCP tool request.
Monitors the European Parliament's active legislative pipeline by fetching real procedures from the EP API and computing health metrics including bottleneck detection, stalled-procedure rate, throughput rate, and legislative momentum. All procedure data (title, type, stage, status, dates, committee) is sourced directly from the EP API; computed attributes are derived from real dates and stages.