Raw tool arguments, validated against AnalyzeCountryDelegationSchema
MCP tool result containing a CountryDelegationAnalysis object with delegation breakdown, computed attributes, confidence level, and methodology note
args fails schema validation (e.g., missing required country, non-uppercase code)const result = await handleAnalyzeCountryDelegation({
country: 'SE',
dateFrom: '2024-01-01',
dateTo: '2024-12-31'
});
// Returns political group distribution, voting behaviour, and cohesion score for Sweden's MEPs
Input is validated with Zod before any API call. Country code is validated against a strict regex to prevent injection. 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 analyze_country_delegation MCP tool request.
Analyses an EU member state's MEP delegation in the European Parliament, covering political group distribution, aggregate voting behaviour, committee presence, and a national cohesion score. Reveals national interest patterns that can cut across political group lines, supporting targeted government-affairs advocacy.