Skip to main content
Glama

extract_content

Read-only

Extract content from a web page. Returns structured data based on the extraction type. Supports: markdown (readable content), text (plain text), html (raw HTML), article (structured with title/author/excerpt), links (all page links), metadata (OG tags, title, description).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to extract content from (must start with http:// or https://)
typeNoExtraction type (default: markdown)
delayNoMilliseconds to wait after page load (default: 0)
selectorNoCSS selector to scope extraction to a specific element
block_adsNoBlock advertisements and trackers (default: true)
max_lengthNoMaximum content length in characters (default: 100000)
block_cookie_bannersNoRemove cookie consent banners (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, but the description does not add behavioral context beyond listing extraction types. It fails to mention handling of JavaScript-heavy sites, rate limits, or response structure details, leaving some transparency gaps.

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

Conciseness5/5

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

The description is extremely concise: two sentences covering purpose and supported types. Every word adds value, and the structure is clear and front-loaded.

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?

Given the tool's complexity (7 parameters, no output schema), the description adequately covers the extraction types and their outputs. It is missing guidance on when to use specific types, but overall it provides enough context for an AI agent to select and invoke the tool correctly.

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% with all parameters described. The description adds meaning to the 'type' parameter by explaining what each enum value returns (e.g., 'structured with title/author/excerpt' for article). Other parameters rely on schema, but the added detail for type is valuable.

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 clearly specifies the verb 'Extract content' and the resource 'from a web page', and lists the supported extraction types (markdown, text, html, article, links, metadata). This distinguishes it from sibling tools like take_screenshot which capture visual representations.

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?

The description does not explicitly state when to use this tool versus alternatives (e.g., take_screenshot for visual, get_batch_status for checking results). The purpose is implied, but there is no direct guidance on when not to use it.

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