Converts any website to an MCP server and enables chat with any website via Cloudflare Workers
toMCP Worker exhibits significant gaps in definition quality. While all 6 tools are explicitly defined in worker/src/index.ts with clear names and present descriptions, the definitions lack depth required for production use. Tool names follow verb_noun convention (fetch_*, chat_*, rate_limit_check, html_to_markdown), which is positive. However, descriptions are inconsistent in quality, ranging from adequate (fetch_website_content: 82 chars) to overly verbose (chat_with_ai: 125 chars, chat_with_user_api_key: 145 chars). Most critically, input parameter descriptions are often generic and lack specificity about constraints, formats, and valid ranges. The rate_limit_check tool has minimal documentation. Output schemas are not documented anywhere, responses are inferred from code inspection but never formally specified for LLM parsing. Error handling exists in code but is not surfaced in tool descriptions, leaving agents unaware of failure modes and recovery paths. The server exposes secrets (apiKey, apiToken) as required parameters, a critical security violation. No tool declares permissions, idempotency, or destructiveness hints. Most tools appear read-only (correct Risk assessment), but the schema descriptions do not make this explicit to agents.
Chat with AI about website content using Cloudflare Workers AI, with retry logic and context history support
Chat with AI using user's own Cloudflare API key and account, using the REST API instead of free tier
Dynamically fetch available AI models from Cloudflare API with caching (5 min TTL) and fallback to known models
Fetches and converts website HTML content to markdown format, with a 30KB size limit
Converts HTML content to markdown format, removing scripts/styles and encoding entities
Checks if a client IP is rate limited based on per-IP and global daily quotas
API credentials exposed as tool parameters: apiKey and apiToken are required inputs in chat_with_user_api_key and fetch_cloudflare_models. These must be injected server-side via environment variables or vault. Agent traces log every parameter, leaking secrets into logs and prompt history.
Input parameter descriptions lack specificity. chatHistory in chat_with_ai is documented as 'Previous messages in the conversation with role and content' but does not specify the exact schema (array of {role: string, content: string}), required role values, or maximum history length. modelId defaults are mentioned in description but not enforced as schema defaults.
No output schemas documented. Tools return responses (e.g., fetch_website_content returns markdown text, chat_with_ai returns a message string, fetch_cloudflare_models returns array of model objects), but LLMs cannot see the structure. No tool registers a return type definition or provides guidance on expected response fields.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Error handling not surfaced in tool descriptions. Code contains try-catch blocks (e.g., fetchWebsiteContent returns 'Error: Could not fetch...' on failure), but tool descriptions do not document error conditions, recovery paths, or what the LLM should do next. Violates recovery-guide pattern.
chat_with_user_api_key naming is ambiguous. The distinction between chat_with_ai (free, Workers AI) and chat_with_user_api_key (paid, REST API) is not clear from names alone. An LLM must read both descriptions to understand they are alternatives. Should be named get_chat_with_paid_api or chat_with_cloudflare_api_key for clarity.
rate_limit_check returns opaque RateLimitStatus object without documenting its structure. Tool description states 'Checks if a client IP is rate limited' but does not explain what fields are returned (limited, remaining, resetIn, reason) or their types/ranges. An LLM cannot plan downstream actions without knowing the response shape.
Tool annotations missing. No tool declares readOnlyHint, destructiveHint, or idempotentHint. While Risk fields show all tools are READ_ONLY, these are server-side annotations not visible to agents. MCP spec expects tool-level metadata to guide agent reasoning about side effects and retry safety.
No parameter constraints on numeric or enum fields. url parameter in fetch_website_content has no validation hint (e.g., 'must be a valid HTTP(S) URL'). modelId in chat_with_ai and fetch_cloudflare_models should be enum-constrained to known model IDs, not free-form strings. Unbounded inputs invite hallucinated values.