MCP server: generate a table of contents from Markdown headings.
Single tool 'toc' has a clear, action-oriented name and reasonable description (89 chars). Input schema is well-formed with proper types, defaults, and constraints (markdown required; max_level/min_level bounded 1-6). However, parameter descriptions are missing entirely, the schema declares properties but provides no descriptions for max_level or min_level, violating the critical requirement that every parameter needs a description. Output schema is not documented; the tool returns a JSON object with 'headings' and 'toc' fields, but this structure is not formally declared. Error handling is basic (try-catch with generic messages). No tool annotations (readOnlyHint, etc.) despite being a read-only operation. The tool is simple and focused (single responsibility), but lacks the parameter-level documentation and output schema clarity expected of production tools.
Extract Markdown headings and emit a nested bullet-list TOC with GitHub-style slug anchors.
Missing parameter descriptions for max_level and min_level. Schema declares these properties but provides no descriptions explaining what they control or when to use them. LLMs cannot infer parameter meaning from names alone.
Output schema not documented. Tool returns a JSON object with 'headings' (array of Heading objects) and 'toc' (string), but this structure is not formally declared in the tool definition. LLMs need to know what fields to expect.
No tool annotations despite being read-only. The 'toc' tool is a pure read operation with no side effects, but lacks readOnlyHint annotation. This helps agents reason about safety and retry behavior.
Generic error messages. Error handling returns 'toc failed: <message>' without guidance on recovery. If markdown parsing fails, the LLM has no hint about what to try next.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2026-07-28+ | v2 |
Tool description lacks context on when to use it. The description states what the tool does but not when an LLM should call it (e.g., 'Use this to generate a table of contents from a Markdown document for navigation or documentation purposes').