MCP server that fetches URLs and converts them to markdown for LLM consumption
Single tool with basic definition but significant gaps in parameter descriptions, output schema documentation, and error handling guidance. The tool name 'fetch_url' follows verb-noun convention (positive), but the description is vague about prerequisites and does not explain what happens on various failure modes. Input schema is present but parameter description is minimal (10 chars: 'The URL of the webpage to fetch'). No output schema is documented in the source code, callers must infer from implementation that returns {content, title}. Error handling is present (status codes 403/404/500 checked, timeout, empty content) but error responses are generic exceptions without recovery guidance. The tool does exactly one thing (fetch and convert), which is good for composition, but lacks the detail expected in production-grade definitions.
Fetches a webpage by URL, renders JavaScript content using Puppeteer, converts HTML to clean markdown, and returns the text. This tool is ideal for extracting readable content from websites for LLM analysis.
Output schema not documented. The tool returns {content: string, title?: string} but this is not declared anywhere in the tool definition or in comments. LLMs cannot know what fields to expect or how to chain this tool with others.
Parameter description is too brief (10 characters). 'The URL of the webpage to fetch' lacks guidance on format expectations (http vs https), maximum length, or handling of redirects. Pattern baseline expects 72+ chars for param descriptions.
Tool description does not explain what the tool returns or when to use it instead of alternatives. Current text: 'Fetches a webpage by URL, renders JavaScript content using Puppeteer, converts HTML to clean markdown, and returns the text. This tool is ideal for extracting readable content from websites for LLM analysis.' Missing: max content length, timeout behavior, rate limits, privacy/robots.txt handling.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 37 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 45 | - | v1 |
Error messages are generic exceptions (e.g., 'Failed to load URL', 'HTTP error: 403 Forbidden', 'Page content is empty') and do not guide recovery. Pattern requires: 'Error responses must tell the LLM what to do next.' Example: instead of throwing on 403, the tool should return {error: 'Access denied (HTTP 403). This page may require authentication or block automated access. Try: 1) Use a different URL, 2) Check robots.txt rules, 3) Verify user-agent headers.'}
No documented constraints on URL format, content size limits, or acceptable domains. The tool caps markdown at 50KB (line: 'if (markdown.length > 50000)') but this is not documented in the description. LLMs cannot know what triggers truncation or how to handle it.
Tool does not declare whether it is idempotent, read-only, or safe to retry. The Risk field shows 'READ_ONLY' (correct), but this is not reflected in tool annotations (idempotentHint, readOnlyHint). Pattern: tools returning the same result on repeated calls should advertise this so agents can safely retry on transient failures.