A fact-checking service that verifies claims about country capitals using a local database and Wikidata as a fallback, integrated with Ollama LLM via the Model Context Protocol
The Fact Checker MCP server has a single tool 'fact_check' with a narrowly scoped definition. While the tool has a basic description and input parameter, the implementation lacks critical quality markers: no explicit output schema documentation, no error classification guidance, and weak parameter description. The code shows functional capability but falls far short of production-grade tooling standards. The HTTP Flask server is custom-built rather than using a proper MCP framework, which limits protocol compliance and creates implementation risk.
Parse a claim and check it against known facts about country capitals using a local database or Wikidata. Returns a result with correct_answer and confidence score.
Output schema not documented. The tool description states it 'Returns a result with correct_answer and confidence score' but no formal JSON Schema is provided. LLMs cannot reliably extract or chain these fields without explicit schema documentation.
Input parameter description is vague and contains example content. The 'claim' parameter description reads 'The factual claim to verify, typically about a country's capital (e.g., \'The capital of France is Paris\')', including example values encourages LLMs to reuse them literally rather than adapt to actual user input. Should remove examples and add format constraints.
No error recovery guidance. The code returns errors like 'Error querying knowledge base: 404' or 'Error checking fact: <exception>' with no guidance for the LLM on what to do next. Should classify as retryable vs fatal and suggest recovery steps.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 41 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 23 | - | v1 |
No idempotency guarantee. The tool calls external Wikidata API without caching or idempotency markers. If called twice with the same claim, it may return different results (e.g., if Wikidata is temporarily unavailable). Agents expect repeated calls with the same input to produce the same result.
Tool scope is extremely narrow and domain-specific. Fact-checking is limited to country capitals via hardcoded database or Wikidata queries. The regex pattern only matches 'The capital of X is Y' claims. Any other factual claim returns 'Unable to verify' with confidence 0.0, making the tool nearly useless for general fact-checking agents.
Tool naming does not follow verb_noun convention. 'fact_check' is a noun phrase; should be 'verify_fact' or 'check_claim' to signal that it's an action. The current name is generic and does not convey that it specifically checks capital facts.