MCP Server for Raft consensus leader election, heartbeat, and state machine simulation with zero external dependencies
Critical gaps across all dimensions. Tool descriptions are present but minimal (10-50 chars, well below the 194-char baseline). Input schemas exist for 2/4 tools but lack parameter descriptions entirely. No output schemas documented. Parameters are untyped in schema definitions. Error handling is absent, tools return raw state strings or error dicts without recovery guidance. No tool annotations (readOnlyHint/destructiveHint). The mcp_server.py stub does not actually invoke client methods; tool registration is inferred from client.py but not explicitly wired to the MCP protocol handler. This is a proof-of-concept, not production-ready.
Evaluates vote request from peer candidate.
Records peer vote and transitions to LEADER if majority reached.
Broadcasts append-entries heartbeat from LEADER.
Transitions to CANDIDATE, increments term, and votes for self.
No input schemas for start_election and send_heartbeat. Both accept empty input {} but schema is not visible in tool registration.
Parameter descriptions missing entirely. receive_vote_request and record_vote_response have typed parameters (candidate_id: string, term: integer, from_peer: string, vote_granted: boolean) but no descriptions explaining what each controls or valid ranges.
No output schemas documented. Tools return dicts (e.g. {node_id, term, state, action}) but LLM cannot know what fields to expect or their types. Breaks downstream tool chaining.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 37 | 2026-07-28+ | v2 |
Tool descriptions are too brief (10 - 50 chars vs 194-char baseline). 'Transitions to CANDIDATE, increments term, and votes for self' lacks WHEN to use, prerequisites, or state-change implications for LLM planning.
No error handling or recovery guidance. send_heartbeat returns {error: 'Only leader can send heartbeat'}, raw string with no actionable next step. LLM cannot determine if this is retryable or fatal.