Hatena Blog MCP server for managing and accessing blog entries via the Hatena Blog API
This MCP server exhibits significant definition quality gaps across multiple dimensions. While all 5 tools are explicitly registered with the @mcp.tool() decorator in server.py, most lack adequate parameter descriptions, output schema documentation, and error handling guidance. Tool names follow a reasonable verb_noun pattern (list_entries, get_entry, search_entries, get_categories, get_entries_by_category), but descriptions are minimal (10-30 chars, well below the 50-200 char optimal range). Input schemas are present in the code but sparse: parameters like 'page_url' and 'max_results' have descriptions, but output structure is undocumented. The caching implementation and external API integration add complexity without corresponding documentation. Error responses are generic (e.g., 'Failed to fetch entries: {status_code}') and do not guide LLM recovery.
カテゴリ一覧を取得
特定のカテゴリに属する記事一覧を取得
特定の記事を取得
ブログ記事一覧を取得
キーワードで記事を検索
Critical: Tool descriptions are 10 - 28 characters, well below the 50 - 200 char optimal range for LLM clarity. Rubric baseline: average successful tool description is 194 chars. These descriptions lack context (WHAT does it do? WHEN to use it? What does it return?) and force LLMs to reason about which tool to pick without clear guidance.
Critical: Output schemas are not documented. Tools return structured responses (entries, count, next_page_url, etc.) but LLMs must infer the structure. Rubric: '100% of A+ tools have documented return types.' This prevents LLMs from reliably chaining tools and increases hallucination risk.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 42 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 0 | - | v1 |
High: get_entry cannot fetch a single entry; it returns an error if the entry is not already cached. This breaks the compose principle: a typical workflow is 'search_entries → [results include entry_id] → get_entry(entry_id)' to fetch details. Instead, get_entry only serves cached data, making it useless as a standalone tool and forcing get_entry to depend on prior cache population.
High: search_entries, list_entries, and get_entry rely entirely on local cache populated externally. No tool provides a way to populate the cache via MCP. The server acts as a read-only view of pre-cached Hatena blog data. If cache is missing or stale, tools silently fail with generic errors ('キャッシュに記事が存在しません', 'キャッシュが存在しません'). This violates the recovery-guide pattern: errors must guide the agent to resolution.
High: Error handling is generic and unhelpful. Examples: 'Failed to fetch entries: 200' (raw status code), 'キャッシュに記事が存在しません' (article not in cache, but no hint about how to fix it), '環境変数を設定してください' (set env vars, but no list of which ones). Rubric: 'Include the invalid value and the constraint it violated' and 'Error responses must tell the LLM what to do next.' Current errors tell agents nothing actionable.
Medium: Parameter descriptions are sparse and inconsistent. Example: 'page_url' is described as 'ページネーション用URL' (pagination URL), but the LLM cannot infer the format or where to get it. Another example: 'category' in get_entries_by_category is simply described as 'カテゴリ名' (category name), but what valid categories exist? Must the LLM call get_categories first? This dependency is not documented.
Medium: The source code is truncated; get_categories implementation is cut off mid-line ('ca'). This prevents full assessment of output schema, error handling, and completeness. The rubric requires visible source to verify tool quality; incomplete code is scored conservatively.
Medium: No parameter enum constraints. 'max_results' is an integer with no bounds documented. LLMs could pass 0, negative numbers, or absurdly large values (e.g., 1,000,000). Rubric: 'Specify minimum and maximum for numeric parameters.' Add explicit constraints (1 - 100) in schema and description.