Skip to main content
Glama

web_tools_extract

Open a page in a real browser, run its JavaScript, and return the main content as clean Markdown with title, author, date and description, plus the links and images it holds. Navigation, ads, cookie banners and footers are left out. Price: $0.02 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..

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_tools_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) address of the page.
linksNoKeep links in the Markdown.
imagesNoKeep images in the Markdown.
waitMsNoExtra wait after the page has loaded, for animations or late content.
waitForNoCSS selector that must be visible before the capture.
maxCharsNoCut the inline Markdown at this length; the file always has all of it.
selectorNoTake only this element instead of detecting the main content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that a real headless browser executes JavaScript, that navigation/ads/cookie banners/footers are stripped, that structured metadata is returned, and that billing is $0.02 USDC via x402 charged only on success. It omits error behavior, rate limits, or what happens on JS-heavy pages that never settle, which keeps it below a 5.

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

Conciseness3/5

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

The opening two sentences are front-loaded, dense, and earn their place. The trailing "Part of Web tools: …" catalog enumerating sibling capabilities (screenshots, PDF, social cards, SEO audit, pixel diff) is roughly a third of the text and describes other tools rather than this one, diluting focus.

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 7-parameter browser-rendering tool with no output schema, the definition covers output shape, content filtering, cost model, and truncation behavior, which is what an agent most needs. The remaining gaps (return-file reference semantics, failure modes) are modest given a fully documented parameter schema.

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 the baseline is 3. The description adds only marginal semantic detail beyond the schema, chiefly that links are included and images excluded by default, plus the note that a truncated inline result is always accompanied by the full file, which sharpens maxChars behavior.

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

Purpose5/5

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

States a specific verb chain and resource: opens a page in a real browser, executes JavaScript, and returns main content as Markdown with title, author, date, description, links and images. This clearly separates it from image-returning siblings like web_tools_screenshot and web_tools_pdf by naming the output format and extracted metadata.

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 only implied: the tool reads a page as Markdown, and the bundled catalog line mentions screenshotting, PDF printing, and auditing as separate capabilities, which lets an agent infer routing. However, there is no explicit "use this when…" statement, no condition for choosing this over web_tools_pdf or web_tools_screenshot, and no exclusions.

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