Token-efficient markdown analysis tool for LLM consumption
markdown-matters provides 7 well-named tools with complete input schemas and descriptions. Tool names follow verb_noun convention (md_search, md_context, md_structure, md_keyword_search, md_index, md_links, md_backlinks). All tools have descriptions (avg 140 chars, within 10-1024 baseline). Input schemas are properly typed with JSON Schema. However, output schemas are not documented, LLMs cannot predict response structure for planning. Parameter descriptions are present but some lack detail on constraints (e.g., md_search threshold 0-1 range is stated but not validated). Error handling is minimal, no recovery guidance or actionable error messages visible in tool definitions. md_index is a write operation but lacks confirmation/dry-run pattern. No tool annotations (readOnlyHint/destructiveHint) despite clear risk profiles.
Get incoming links to a markdown file. Shows what files reference/link to this document.
Get LLM-ready context from a markdown file. Provides compressed, token-efficient summaries at various detail levels.
Refresh the active database from every manifest directory. An optional path is appended to the manifest before the full refresh.
Search markdown documents by keyword search (headings, code blocks, lists, tables).
Get outgoing links from a markdown file. Shows what files this document references/links to.
Search markdown documents by meaning using semantic search. Returns relevant sections based on natural language queries.
Output schemas not documented. LLMs cannot predict response structure, field names, or types for downstream tool chaining or data extraction.
md_index is a destructive write operation (refreshes database) but lacks tool annotations (destructiveHint), confirmation pattern, or dry-run mode. Agents may invoke it unintentionally.
No error handling guidance in tool definitions. Handlers likely return raw errors without recovery hints (e.g., 'file not found' vs 'file not found; try md_search to locate it').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
Get the structure/outline of a markdown file. Shows heading hierarchy with token counts.
md_keyword_search has no required parameters, all are optional. LLMs may invoke it with no filters, returning all documents or causing ambiguous behavior.
md_links and md_backlinks have 'global' parameter but descriptions do not explain when to use it or what 'manifest root' means to an LLM unfamiliar with the tool's architecture.