Render Markdown to styled HTML with CSS themes -- light, dark, GitHub. Ready-to-embed HTML documents.
Single tool 'text_render_markdown' has a well-structured input schema with proper types and descriptions. The tool description is comprehensive (280+ chars) and explains use cases and anti-patterns. However, the output schema is NOT formally documented in the code, it is only described in prose within the tool description. The description mentions return fields (html, theme, inputLength, outputLength) but these are not declared as a formal JSON Schema output type. Parameter descriptions are adequate but could be more precise about constraints (e.g., theme enum values are listed but not formally constrained). No error handling guidance is visible in the tool definition.
Use this when you need to convert Markdown to a fully styled HTML document with embedded CSS. Returns a complete, display-ready HTML page in JSON. Returns: 1. html (complete HTML document with embedded CSS) 2. theme applied (light/dark/github) 3. inputLength 4. outputLength. Example output: {"html":"<!DOCTYPE html><html><head><style>body{font-family:system-ui;max-width:800px;margin:auto}...</style></head><body><h1>Title</h1><p>Content</p></body></html>","theme":"github","inputLength":25,"outputLength":1240} Use this FOR generating styled documentation pages, creating email-ready HTML from markdown, building preview renders, and producing embeddable content blocks. Do NOT use for raw HTML conversion (no CSS) -- use text_convert_markdown_to_html instead. Do NOT use for HTML-to-markdown conversion -- use text_convert_html_to_markdown instead. Do NOT use for PDF generation -- use document_generate_pdf instead.
Output schema not formally documented. Tool description mentions return fields (html, theme, inputLength, outputLength) in prose, but no JSON Schema output type is declared. LLMs cannot reliably parse unstructured output descriptions.
Theme parameter lacks enum constraint. Description lists 'light', 'dark', 'github' as options, but the schema does not declare an enum. LLMs may hallucinate invalid theme values.
No error handling guidance. Tool description does not explain what happens on invalid markdown, oversized input, or rendering failures. LLMs have no recovery path.
Markdown parameter lacks size constraints. No minimum or maximum length specified. LLMs could pass extremely large documents, causing timeouts or memory exhaustion.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2025-06-18+ | v2 |
Tool name 'text_render_markdown' is slightly ambiguous. Does it render markdown to HTML, PDF, or plain text? Name should be more specific, e.g., 'render_markdown_to_html'.