Skip to main content
Glama

Scrape Markdown

scrapeMarkdown

Retrieve a page as Markdown. Including HTML also enables browser rendering and returns both outputs as JSON.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute HTTP or HTTPS URL of the page to process.
htmlNoWhether to include the page HTML in the response.
proxyNoCustom proxy URL used to load the page.
superNoWhether to route the request through real devices.
geoCodeNoTwo-letter country code to load the page from, sent in lowercase.us
timeoutNoPage load timeout in seconds, from 1 to 300. The HTTP request allows 30 additional seconds.
waitUntilNoNavigation completion event to wait for: domcontentloaded, load, networkidle0, or networkidle2.domcontentloaded
warmStartNoWhether to enable warm start for more reliable scraping, at the cost of additional latency.
maxRetriesNoMaximum number of retries, as a nonnegative integer. Omit this parameter for no limit.
saveResultNoWhether to save the result to the dashboard Result tab.
proxyCountryNoTwo-letter country code of the proxy server, sent in lowercase.us
returnCookieNoWhether to include browser session cookies in the response.
blockResourcesNoWhether to block images, fonts, and stylesheets while loading the page.
waitForSelectorNoWait for the page to contain the specified CSS selector before returning the result.
browserRenderingNoWhether to render the page in a browser before returning the result.

Output Schema

NameRequiredDescriptionDefault
dataYesParsed response JSON or text.
errorNo
headersYesResponse headers with credentials removed.
status_codeYesUpstream HTTP status, or null for a network failure.

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 openWorldHint=true and destructiveHint=false, so safety signaling is partly covered. The description adds useful behavior beyond that: setting 'html' changes the response shape to JSON with two outputs. However, it says nothing about latency or cost implications of browser rendering, retries, proxies, or real-device routing, which matter for this 15-parameter tool.

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?

Two short sentences with the primary output format front-loaded and zero filler. The brevity borders on under-specification for a tool with this many options, but nothing written is wasted.

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?

An output schema exists, so return-value details can be omitted, but a 15-parameter scraping tool with proxy, geo, warmStart, real-device, retry, and dashboard-saving options deserves more than two sentences. The description does not clarify the interaction between 'html' and 'browserRendering', nor flag the side effect of saveResult writing to the dashboard.

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 coverage is 100%, so all 15 parameters are documented in the schema and the baseline is 3. The description's note that including HTML also triggers browser rendering and returns both outputs as JSON adds meaning beyond the schema's 'Whether to include the page HTML in the response' — though it sits uneasily with the separate 'browserRendering' flag, which the description never reconciles.

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?

The description names a specific verb and resource ('Retrieve a page as Markdown'), which lets an agent distinguish it from scrapeHtml and scrapeJson by output format. It stops short of explicitly naming the sibling it serves as an alternative to.

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 guidance on when to choose this tool over scrapeHtml, scrapeJson, or webSearch, and no conditions or exclusions are stated. The only hint is that the 'html' flag can also produce HTML, which is presented as a capability rather than a routing rule.

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.