Skip to main content
Glama

web_extract

Extracts readable Markdown/text from up to five web page URLs, returns cleaned content without summarization, and saves full text locally when pages exceed the character budget.

Instructions

Extract readable page content from one or more web page URLs. Returns cleaned Markdown/text directly without LLM summarization. Pages within the character budget (15,000 by default) are returned whole; longer pages return a head-and-tail window and save the complete text to a local file, with a path and read_file instructions for paging through the omitted middle. PDF URLs are accepted as inputs, but PDF text extraction requires a PDF reader dependency not included in this build. Inline images are represented as [IMAGE: alt] and linked image URLs are preserved. If a page fails, times out, or requires JavaScript, login, or clicks, use a browser tool instead.

Input Schema

NameRequiredDescriptionDefault
urlsYesOne to five page URLs to extract.
head_charsNoHead window size for oversized pages (defaults to half the character budget).
char_budgetNoMaximum inline characters per page (default 15000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description carries the full load and does so well: it discloses the 15,000 char default budget, head-and-tail windowing for long pages, the side effect of writing full text to a local file plus read_file paging instructions, the missing PDF dependency, and inline image representation. An agent knows the return shape, truncation behavior, and failure modes before calling.

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?

Four sentences, front-loaded with the core action and output format, then budget behavior, then edge cases (PDFs, images, failures). Every sentence contributes distinct, actionable information with no filler.

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

Completeness5/5

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

No output schema and no annotations, yet the description covers return format, truncation and file-save behavior, image representation, and failure fallback. For a 3-param read tool, nothing an agent needs to invoke it correctly is missing.

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 the schema already documents all three parameters, setting a baseline of 3. The description adds real meaning the schema lacks: the char_budget default of 15,000 and, crucially, the behavioral consequence of exceeding it (head-and-tail window, saved file, paging path).

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 states a specific verb and resource ('Extract readable page content from URLs') and clarifies the output form (cleaned Markdown/text, no LLM summarization). It does not explicitly name the sibling web_search as the contrast, so the search-vs-extract distinction is left implicit rather than spelled out.

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

Usage Guidelines4/5

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

It gives clear when-not guidance: 'If a page fails, times out, or requires JavaScript, login, or clicks, use a browser tool instead.' It also notes PDFs are accepted but fail without a dependency. It never mentions the web_search sibling or when to prefer it, so this is strong context without full alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools