Skip to main content
Glama

scrapePage

scrapePage
Read-onlyIdempotent

Scrapes any web page, PDF, or Word DOCX document URL and extracts clean LLM-ready Markdown, HTML, and metadata.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "scrapePage"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesTarget web page or document URL.
pagesNoOptional page range to extract from PDFs (e.g. '1-5', '1,3,7'). If omitted on large PDFs, smart chunking automatically selects the most relevant pages.
deviceNoUser-agent profile ('desktop' or 'mobile').
promptNoOptional query or prompt to guide smart page selection on multi-page PDFs.
formatsNoFormats to return (['markdown', 'html', 'branding']). Defaults to ['markdown'].
maxReviewsNoMaximum number of unique Amazon customer reviews to fetch (1 to 100). Defaults to 25 when includeReviews is true.
removeImagesNoSet to true to strip all images and reduce token count.
includeReviewsNoSet to true to fetch deduplicated Amazon customer reviews directly into data.reviews and markdown without AI calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the output-artifact behavior (clean LLM-ready Markdown, HTML, metadata), which is useful beyond the annotations. It says nothing about timeouts, large-document chunking, rate limits, or failure modes on blocked pages.

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?

A single front-loaded sentence with no filler; the supported input types and output formats come first. It is arguably under-specified rather than over-long, but there is no wasted wording to trim.

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

Completeness2/5

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

With 8 parameters, no output schema, and non-trivial features (PDF page ranges, smart chunking, prompt-guided page selection, Amazon review extraction, image stripping), the description covers none of them. An agent reading only the description would not know this tool can target specific PDF pages or pull Amazon reviews. Only the annotations supply the remaining behavioral context.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including pages, prompt, formats, includeReviews, maxReviews and removeImages is already documented in the schema. The description adds no parameter meaning beyond echoing the Markdown/HTML outputs. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

Names a specific verb ('Scrapes') and resource ('any web page, PDF, or Word DOCX document URL') and states the outputs produced (Markdown, HTML, metadata). This is clearly distinguishable from captureScreenshot or extractStructuredData, but the description never explicitly contrasts with batchScrape, so sibling differentiation is left implicit.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. Nothing tells the agent whether to pick this over batchScrape for multiple URLs, deepResearch, or mapSite, nor are any preconditions (paywalls, JS rendering, auth) mentioned. The only guidance is implicit in the word 'any'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources