law-mcp-server defines 4 tools with reasonable naming (verb-first: fetch_, search_, summarize_, check_) and present but inconsistent descriptions. Schemas are visible and mostly complete with type definitions. However, parameter descriptions are sparse or missing (lawIds in check_consistency lacks description; articles in summarize_law lacks detail), and output schemas are not documented. Error handling exists (requireString, requireArrayOfStrings) but lacks recovery guidance. Tool composition is clean and single-purpose. The server handles a specialized domain (Japanese law) well, but falls short of A-grade polish due to incomplete parameter documentation and missing output schema specs.
Check a document against one or more laws (lawIds must be canonical LawIDs from search_laws).
Fetch a law by canonical e-Gov LawID (e.g., H15HO57) and optional revision date. Use search_laws to look up the LawID first.
Search laws by Japanese keyword/name and return canonical LawID values for use with other tools.
Summarize a law or selected articles
summarize_law description is incomplete (9 words, 45 chars), does not explain WHAT it returns, WHEN to use it, or what the 'articles' parameter filters. Below 20-char hard minimum.
check_consistency 'lawIds' parameter has no description, LLM cannot infer whether it accepts canonical IDs, display names, or both. Parameter descriptions are mandatory.
summarize_law 'articles' parameter lacks description, does not clarify format (article numbers? strings?), whether filtering is inclusive/exclusive, or what happens if an article is not found.
No output schemas documented for any tool. LLMs cannot plan downstream calls or validate responses. fetch_law and summarize_law return JSON; check_consistency returns a ConsistencyOutput object, none are formally specified.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 57 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 47 | 2024-06-17+ | v1 |
Error messages in handlers (requireString, requireArrayOfStrings) are generic ('Field X is required') and do not guide LLM recovery. Missing recovery hints like 'Try calling search_laws() first.'
fetch_law and check_consistency descriptions reference 'canonical e-Gov LawID' but do not explain format (e.g., 'H15HO57 is a 6-8 character code') or what happens if an invalid ID is passed.