Skip to main content
Glama

OnchainCheck Dev Docs

Web extract

web_extract
Read-onlyIdempotent

Page to Markdown for an LLM: give any URL (article, docs page, blog, PDF or Word file) and get its main text as clean Markdown, with navigation, header, footer, forms and scripts dropped, plus title, description, language, author, publish date, image and word count. PDFs and Office documents are converted to text. Optional links=true adds the page's links. Text and JSON URLs come back as-is. Costs $0.002 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL
linksNotrue adds the page's links (up to 300)

Output Schema

NameRequiredDescriptionDefault
urlNostring, e.g. "https://en.wikipedia.org/wiki/HTTP_402"
langNostring, e.g. "en"
imageNostring, e.g. "https://thumb.wikimedia.org/wikipedia/commons/thumb/5/5b/HT
notesNostring, e.g. "Main text as Markdown: navigation, header, footer, forms an
titleNostring, e.g. "List of HTTP status codes - Wikipedia"
wordsNonumber, e.g. 11994
authorNonull, e.g. null
statusNonumber, e.g. 200
finalUrlNostring, e.g. "https://en.wikipedia.org/wiki/HTTP_402"
markdownNostring, e.g. "(Redirected from [HTTP 402](https://en.wikipedia.org/w/inde
publishedNonull, e.g. null
truncatedNoboolean, e.g. false
contentTypeNostring, e.g. "text/html; charset=utf-8"
descriptionNonull, e.g. null
markdownTruncatedNoboolean, e.g. false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (readOnly, openWorld, idempotent, non-destructive), the description discloses real behavioral facts: boilerplate (navigation, header, footer, forms, scripts) is dropped, PDFs and Office files are converted, text/JSON URLs are passed through unchanged, and each call costs $0.002 USDC on Base via x402. The payment requirement in particular is operationally essential and appears nowhere in the structured fields.

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?

The primary purpose is front-loaded in the first clause and the remaining detail is a compact single block with no filler. It runs long and dense as one paragraph, so a reader scanning for the cost or the links flag has to read to the end, but every clause carries information.

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?

The tool is an open-web fetcher with payment, and the description covers accepted inputs, output cleaning, metadata returned, format conversions and cost, which is ample given an output schema already defines the return shape. Gaps remain around failure behavior (paywalls, blocked pages, timeouts), rate limits and whether payment is per-call or per-token, which matter for a paid external fetch.

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%, so a baseline of 3 applies, but the description adds meaning to the url parameter by enumerating the accepted document classes (article, docs page, blog, PDF, Word, plain text, JSON) rather than just 'Page URL'. The links parameter is described consistently with the schema, including its purpose, though the 'up to 300' cap detail remains schema-only.

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 opens with a precise verb-plus-resource statement: convert any URL to clean Markdown text for an LLM, explicitly covering articles, docs pages, blogs, PDFs and Word files. It also scopes in/out behaviors (text and JSON URLs come back as-is), which lets an agent predict the result. It never names or contrasts with the near-identical siblings web_contents, web_fetch or extract_tables, so 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 Guidelines3/5

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

Usage is implied rather than stated: 'Page to Markdown for an LLM' signals the intended purpose (feeding a model readable page text), and the optional links flag hints at a common variant. There is no explicit when-to-use / when-not-to-use guidance and no mention of when a sibling such as extract_tables or web_search would be preferable. An agent must infer the choice from the sibling names alone.

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