Skip to main content
Glama

extract_content

Read-only

Read a public web page as clean markdown (or text, html, article, links, metadata), rendered in the same real browser. Use it after take_screenshot when you need the words, or on its own for research. Uses one capture; failed extractions are free. Returns up to max_length characters (default: 100,000); pass selector, for example main or article, to keep it short. Public URLs only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to extract content from (must start with http:// or https://)
typeNoWhat to return: markdown (default, readable content), text (plain text), html (raw HTML), article (title, author, excerpt and content), links (every link on the page), metadata (title, description, Open Graph and Twitter tags)
delayNoExtra milliseconds to wait after the page loads, 0-10000 (default: 0)
selectorNoCSS selector to read only part of the page, for example main or article
block_adsNoBlock ads and trackers (default: true)
max_lengthNoMaximum characters to return, 1-500000 (default: 100000)
block_cookie_bannersNoRemove cookie consent banners (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / block_ads / description
      Previous value: -"Block advertisements and trackers (default: true)"New value: +"Block ads and trackers (default: true)"
    • changedInput schema / properties / delay / description
      Previous value: -"Milliseconds to wait after page load (default: 0)"New value: +"Extra milliseconds to wait after the page loads, 0-10000 (default: 0)"
    • changedInput schema / properties / max_length / description
      Previous value: -"Maximum content length in characters (default: 100000)"New value: +"Maximum characters to return, 1-500000 (default: 100000)"
    • changedInput schema / properties / selector / description
      Previous value: -"CSS selector to scope extraction to a specific element"New value: +"CSS selector to read only part of the page, for example main or article"
    • changedInput schema / properties / type / description
      Previous value: -"Extraction type (default: markdown)"New value: +"What to return: markdown (default, readable content), text (plain text), html (raw HTML), article (title, author, excerpt and content), links (every link on the page), metadata (title, description, Open Graph and Twitter tags)"
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-redundant behavior: 'Uses one capture; failed extractions are free' (billing/retry semantics), the public-URL-only access limit, and the truncation behavior tied to max_length. It omits details like rate limits or JS-render timeouts, so not a full 5.

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?

Five compact sentences, front-loaded with purpose and format list before usage and constraints. The parenthetical format enumeration is dense but each clause carries information; only slight compression could be gained.

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?

With no output schema, the description carries the return-value burden, and it does explain that content is returned as markdown/text/html/etc. up to max_length characters. Combined with full schema coverage and strong annotations, an agent has what it needs; the only gap is richer detail on failure modes.

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 the enum values, defaults and ranges. The description restates default max_length and a selector example but adds no format or syntax detail beyond the schema — the baseline 3 applies.

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?

The description states a specific verb (extract/read) and resource (a public web page) with the output formats enumerated, and it explicitly contrasts itself with take_screenshot ('rendered in the same real browser'). An agent can distinguish this from all eleven siblings without opening a schema.

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

Usage Guidelines5/5

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

It names the sibling tool (take_screenshot) and the conditions that select each: 'after take_screenshot when you need the words, or on its own for research.' It also states the eligibility constraint ('Public URLs only'), leaving little to inference.

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.