Skip to main content
Glama

scrape_page

Read-onlyIdempotent

Extract readable content from any URL, including web pages, PDFs, DOCX, PPTX, and YouTube transcripts. Returns structured JSON with metadata and citations.

Instructions

Extract readable content from a single URL. Handles web pages (HTML and JS-rendered SPAs), PDFs, DOCX, PPTX, and YouTube transcripts via auto-detected extraction with tiered fallback (markdown, stealth, HTML, headless browser). Returns JSON with fields: url, content, contentType, contentLength, truncated, estimatedTokens, sizeCategory, citation (with formatted APA/MLA), metadata ({title, author}). Content capped at max_length (default 50000 bytes); truncated=true if cut. Mode 'preview' forces max_length to 5000 bytes for quick relevance checks. Max 5 concurrent scrapes; additional calls queue. On failure returns isError with reason (e.g. blocked, timeout, invalid URL). Use search_and_scrape instead to discover and extract in one step; use web_search if you only need URLs. Results cached 1 hour.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe HTTP/HTTPS URL to extract content from. Supports web pages, PDFs, DOCX, PPTX, and YouTube video URLs.,required
modeNoExtraction depth: full (default, up to max_length) or preview (first 5000 bytes, faster). Use preview for quick relevance checks.
max_lengthNoMaximum content length in bytes (default: 50000). Reduce for faster responses when you only need a summary.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
citationNo
contentNo
contentLengthNo
contentTypeNo
estimatedTokensNo
metadataNo
sizeCategoryNo
truncatedNo
urlNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, destructiveHint, idempotentHint, openWorldHint. Description adds critical context: content capped at max_length, truncation flag, mode preview forces 5000 bytes, concurrent scrape limit, caching behavior, and error handling with isError and reason field. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is fairly long but well-structured: starts with core purpose, then covers supported formats, fallback strategy, return fields, constraints, and alternatives. Every sentence adds value; could be slightly more concise but not excessive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given tool complexity (multiple content types, modes, fallback, concurrency, caching, error handling, output schema), description covers all essential aspects. Output schema exists but description still explains return fields and behavior (truncation, estimated tokens, citation format). No missing context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds meaning: explains URL supports multiple document types and YouTube, mode explains preview forces 5000 bytes, max_length describes default 50000 and suggests use for faster responses. This goes beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Extract readable content from a single URL' and lists supported content types (HTML, JS-rendered SPAs, PDFs, DOCX, PPTX, YouTube transcripts) and extraction methods. It distinguishes from siblings like search_and_scrape and web_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly provides when to use alternatives: 'Use search_and_scrape instead to discover and extract in one step; use web_search if you only need URLs.' Also mentions concurrency limit (max 5) and caching (1 hour), guiding effective use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zoharbabin/web-researcher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server