Raw tool arguments, validated against AnalyzeLegislativeEffectivenessSchema
MCP tool result containing a LegislativeEffectivenessAnalysis object with metrics, scores, computed attributes (percentile, output per month), benchmarks, confidence level, and methodology note
args fails schema validation (e.g., missing required subjectType
or subjectId, invalid subjectType value)// Analyse a specific MEP
const mepResult = await handleAnalyzeLegislativeEffectiveness({
subjectType: 'MEP',
subjectId: 'MEP-124810',
dateFrom: '2024-01-01',
dateTo: '2024-12-31'
});
// Returns productivity/quality/impact scores and effectiveness rank for MEP-124810
// Analyse a committee
const committeeResult = await handleAnalyzeLegislativeEffectiveness({
subjectType: 'COMMITTEE',
subjectId: 'ENVI'
});
// Returns legislative effectiveness scores for the ENVI committee
Handles the analyze_legislative_effectiveness MCP tool request.
Scores the legislative effectiveness of an MEP or committee by computing productivity (reports authored, amendments tabled), quality (amendment success rate, attendance), and impact (voting influence, rapporteurships, committee coverage) sub-scores, then aggregates them into an overall effectiveness rating with peer-benchmarking data.