Raw tool arguments, validated against AnalyzeCoalitionDynamicsSchema
MCP tool result containing coalition pair cohesion scores, group cohesion metrics, dominant coalition, stress indicators, and computed fragmentation attributes
args fails schema validation (e.g., missing required fields or invalid format)const result = await handleAnalyzeCoalitionDynamics({
groupIds: ['EPP', 'S&D', 'Renew'],
minimumCohesion: 0.5,
dateFrom: '2024-01-01',
dateTo: '2024-12-31'
});
// Returns coalition pair analysis with cohesion scores, stress indicators,
// and parliamentary fragmentation index
Detects voting coalitions, measures political group cohesion, and identifies
cross-party alliances using CIA Coalition Analysis methodology. Fetches real
MEP membership counts from the EP Open Data API; pairwise cohesion is derived
from group-size ratios (per-MEP voting statistics are not available from the
EP API /meps/{id} endpoint).
Analysis outputs:
Note: Confidence level is
LOWbecause per-MEP voting statistics are unavailable from the current EP API. Cohesion/defection/attendance metrics are null withdataAvailability: 'UNAVAILABLE'and should be supplemented with vote-result data when available.
// Analyze all political groups with default settings
const result = await handleAnalyzeCoalitionDynamics({});
const analysis = JSON.parse(result.content[0].text);
console.log(`Fragmentation index: ${analysis.computedAttributes.parliamentaryFragmentation}`);
Handles the analyze_coalition_dynamics MCP tool request.
Detects voting coalitions, cross-party alliances, group cohesion rates, and coalition stress indicators across European Parliament political groups. Uses CIA Coalition Analysis methodology to measure parliamentary fragmentation, effective number of parties, and grand-coalition viability.