Web scraper and content extractor using FastMCP that fetches and processes web pages with fallback mechanisms for blocked content
Webustler defines a single tool 'scrape' with a critical gap: the input schema is visible and properly typed (url: string), but the tool description is overly detailed and context-heavy rather than LLM-optimized. More significantly, there is NO output schema documentation visible in the source code. The description runs 217 characters and discusses fallback behavior, but does not clearly state WHAT fields are returned or WHEN to call this tool instead of alternatives. Parameter descriptions are absent, the 'url' parameter lacks any guidance on format constraints, examples, or error handling. Error handling is partially present in the code (timeout handling, binary detection, fallback logic) but error responses are not structured for agent recovery, no guidance on what to do if scraping fails or if content is blocked. The tool violates multiple critical patterns: missing output schema documentation (pattern:tool), no parameter descriptions (pattern:tool-description), and generic error handling with no recovery guidance (pattern:recovery-guide).
Scrape a web page and extract its content, metadata, links, and images. Uses Jina AI as primary method and falls back to FlareSolverr for JavaScript-heavy or blocked content.
Missing output schema documentation. The tool description does not document what fields are returned (e.g., content, metadata, links, images, title, description, readTime, etc.). LLMs cannot plan downstream operations or extract the right data without knowing the response structure.
Parameter 'url' lacks description. No guidance on format, constraints (absolute vs relative URLs), or allowed schemes. LLMs need explicit constraints: 'Must be an absolute HTTPS or HTTP URL; relative URLs not supported.'
Tool description is implementation-focused rather than LLM-optimized. It mentions Jina AI and FlareSolverr internals but does not answer: WHEN should an LLM call this? WHAT should it expect? WHEN will it fail? Descriptions should be 50 - 200 chars of user-intent language, not technical architecture.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-21 | F | 41 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 48 | - | v1 |
Error handling lacks recovery guidance. The code detects blocked content (_BLOCKED strings), binary files, timeouts, and connection failures, but error messages are not structured to guide agent retry logic. No distinction between retryable (timeout) and fatal (binary file) errors.
No pagination or result limits documented. For large pages with many links and images, the response could be massive. No documentation of max links returned, max images, or whether results are paginated.
Tool naming is generic. 'scrape' is a verb but does not specify WHAT data is extracted. Better names: 'extract_webpage_content' or 'fetch_webpage_structured' would clarify scope.