Skip to main content
Glama

Read a web page

extract
Read-only

Fetch a public web page and return its title, description, and main text as clean Markdown with navigation, scripts, and footers removed, so agents can read and cite sources.

Instructions

Fetch one public web page and return its title, description and main text as Markdown, with navigation, scripts and footers removed.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe absolute http(s) URL of the page to read.
maxCharsNoCut the page text at this many characters (500-50,000).

Output Schema

NameRequiredDescriptionDefault
urlYesThe final URL, after redirects.
langYes
textYesThe page's main content as Markdown.
titleYes
truncatedYesTrue when the text was cut at maxChars.
descriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description's added value is in the extraction contract: navigation, scripts and footers are stripped and output is Markdown with title/description. That is genuine behavioral detail an agent could not infer from the annotations, though paywalls, rate limits and fetch failures are unaddressed.

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?

A single front-loaded sentence that leads with the action and scope, then the output shape, then the cleanup behavior. No filler or redundancy.

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?

An output schema exists, so return values need no further explanation; the description still summarizes them briefly. With annotations covering safety and open-world scope and the schema covering both parameters, nothing essential for correct invocation is missing.

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 both `url` and `maxChars` are fully documented in the schema, establishing a baseline of 3. The description adds no semantics about URL constraints or truncation behavior beyond what the schema already states.

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?

States a specific verb and resource ('Fetch one public web page') plus what comes back (title, description, main text as Markdown), which is far more informative than the title alone. The 'one public page' phrasing implicitly separates it from a search-style tool, but it never names or contrasts the `search` sibling explicitly.

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 word 'public' signals that authenticated or paywalled pages are out of scope, and 'one page' signals single-URL retrieval. There is no explicit when-to-use vs. `search`, no guidance on non-HTML content, JS-rendered pages, or failure behavior.

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