Skip to main content
Glama

scrape

Extract a single URL as clean markdown for reading articles, documentation, or public pages; optionally strip tags, include links, and return main content only.

Instructions

Scrape a single URL and return its content as clean markdown. Ideal for reading articles, documentation, or any public web page.

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": "scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to scrape
formatsNoOutput formats to return
timeoutNoRequest timeout in seconds (default: 60)
excludeTagsNoHTML tags to strip, e.g. ["header", "nav", "footer"]
includeHtmlNoAlso return raw HTML alongside markdown (default: false)
mainContentNoExtract only the main content, stripping sidebars and ads (default: true)
includeLinksNoInclude hyperlinks in the output (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It states the output shape (clean markdown) but says nothing about permissions, robots.txt or anti-bot handling, JavaScript rendering, failure modes for blocked/timeout URLs, or rate limits — meaningful gaps for a network-fetching tool.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and the return format, followed by the use case. No filler or redundancy.

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

Completeness3/5

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

With seven parameters, no annotations, and no output schema, the definition leans entirely on the schema for configuration detail and does not cover error behavior or limits. It is adequate to invoke the tool with a bare URL, but thin for the tool's actual complexity.

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 one of the seven parameters (formats, timeout, excludeTags, includeHtml, mainContent, includeLinks) is already documented in the schema. The description adds no formatting syntax, defaults, or interaction guidance beyond that, so baseline 3 applies.

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?

Clear specific verb and resource: 'Scrape a single URL and return its content as clean markdown.' The word 'single' implicitly separates it from batch_scrape, but the description never names or contrasts any sibling, so differentiation is only implied.

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

Usage Guidelines3/5

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

'Ideal for reading articles, documentation, or any public web page' gives positive usage context, but there is no when-not guidance and no pointer to alternatives like batch_scrape, crawl, extract, or search for multi-page or structured extraction needs. Usage is implied rather than prescribed.

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