Skip to main content
Glama

AgentWork Web Evidence

Scrape URL to markdown

scrape_url_to_markdown
Read-onlyIdempotent

Webpage to Markdown: convert any URL to clean Markdown. Convert a webpage URL to clean, LLM-ready Markdown for RAG and agents. Scrape URL to markdown / web scraping to markdown — public webpage to clean Markdown (headings, lists, links, tables, code) plus text and SHA-256. Same engine and prices as web/read with format=markdown by default: $0.003 per URL Base ($0.006 Algorand); batch of 2-10 urls $0.003/URL; render=true for JavaScript pages $0.01/URL. Failed reads not settled. Price (USDC): Base single $0.003, batch_per_url $0.003, render_per_url $0.01, safe_per_url $0.001; Algorand single $0.006, batch_per_url $0.006, render_per_url $0.02, safe_per_url $0.002. Paid per call with x402 v2 (params._meta["x402/payment"]).

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTP/HTTPS URL; ports 80/443 and public IPv4 resolution only. Use url or urls, not both.
safeNoAdd a prompt-injection scan of each page (safety: verdict clean/suspicious/injection, score, flagged excerpts). +$0.001 per URL on Base (+$0.002 Algorand).
urlsNoBatch of up to 10 public URLs. 2-10 URLs are priced $0.003 each on Base ($0.006 Algorand). Charged in full if at least one URL succeeds; per-URL errors are returned inline.
formatNomarkdown adds markdown + markdown_sha256 (text is still returned)markdown
renderNoExecute JavaScript in headless Chromium before extraction. $0.01 per URL on Base ($0.02 Algorand). Images, media and fonts are not loaded.
selectorNoOptional CSS selector (e.g. "main", "#pricing", "article .changelog"). Only the first matching element is extracted; no match returns 422 SELECTOR_NOT_FOUND and nothing is settled. HTML only.
max_charsNoMaximum returned characters per URL (applies to text and markdown separately)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description goes well beyond them by disclosing per-URL pricing tiers, that failed reads are not settled, that a batch is charged in full if at least one URL succeeds, that a missing selector returns 422 with nothing settled, and that payment flows through x402 v2 in params._meta. Only the duplicated price restatement keeps this from being exemplary.

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

Conciseness2/5

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

The description is padded with keyword variants and repeats pricing twice — once in prose ('$0.003 per URL Base...') and again in a structured price list ('Base single $0.003, batch_per_url $0.003...'). The core facts are present but buried rather than front-loaded, so an agent must parse redundant text to find the usage rules.

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

Completeness4/5

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

For a read-only scraping tool with no output schema, the description covers the essentials: return shape (markdown, markdown_sha256, text), failure and settlement semantics, payment mechanism, and the render/selector edge cases. What is missing is mostly comparative guidance against sibling fetch/extraction tools rather than any fact needed to invoke it correctly.

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 is already documented in the schema, including ports, batch limits, selector behavior and max_chars. The description adds essentially nothing new about parameters beyond echoing the markdown default, render, and batch ranges. Baseline 3 is appropriate when the schema carries the parameter burden.

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 — convert a public webpage URL into clean Markdown with headings, lists, links, tables and code, plus text and SHA-256. It also distinguishes itself from the sibling web/read by stating it is the same engine with format=markdown as the default. Repetition of near-identical phrasings ('Webpage to Markdown', 'web scraping to markdown') adds noise but does not obscure the purpose.

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?

There is real situational guidance: use render=true for JavaScript pages, use urls for a batch of 2-10, use safe for prompt-injection scanning, and a comparison to web/read with format=markdown. However, there is no explicit when-not-to-use guidance and no routing against other siblings such as fetch_url, pdf_text_extraction or web_contents, leaving the agent to infer the boundary.

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