Handles the detect_voting_anomalies MCP tool request.
detect_voting_anomalies
See file-level JSDoc for methodology details. Each anomaly carries evidenceVoteIds referencing the contributing DOCEO RCV records.
evidenceVoteIds
Raw tool arguments, validated against DetectVotingAnomaliesSchema
MCP tool result containing detected anomalies with evidence vote IDs
If args fails schema validation or the EP API is unreachable.
args
Input validated with Zod. Audit logs record only mepId and sanitised counts (no MEP names or vote contents).
mepId
0.8.0
Handles the
detect_voting_anomaliesMCP tool request.See file-level JSDoc for methodology details. Each anomaly carries
evidenceVoteIdsreferencing the contributing DOCEO RCV records.