Skip to main content
Glama
Llamatron2112

mcp-dom-extract

extract_page_text

Fetch any web page and return its readable text, optionally scoped to a CSS selector to isolate specific content for targeted data extraction.

Instructions

Fetches a web page and returns its readable text, optionally scoped to a CSS selector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
selectorNoCSS selector scoping the text; defaults to the whole document
max_lengthNo
Install Server

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it establishes that the tool performs a fetch and returns extracted text, suggesting a read operation. It does not disclose potential side effects like network calls and rate limits, or behavior such as truncation via max_length and errors on non-HTML pages, so transparency is only partially adequate.

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 a single tight sentence with the primary action front-loaded and the optional modifier at the end. There is no redundancy or filler; every word contributes to understanding the tool.

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

Completeness3/5

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

For a simple 3-parameter read tool the description covers the core flow, but it omits what `max_length` actually limits and does not mention error behavior or output format. Since there is no output schema or annotations, these gaps make the definition only minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, and the tool description adds little beyond it: it echoes the selector scoping and frames `url` as the page to fetch, but leaves `max_length` semantically unexplained. The description does not compensate for the schema gaps for two of the three parameters.

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 gives a specific verb ('Fetches') and resource ('a web page'), and names the output ('readable text') plus an optional CSS selector scope. It clearly points to extracting page text rather than structured data or DOM structure, though it does not explicitly reference sibling tools.

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 described behavior implies the main use case—reading text from a page, optionally focused via selector—but gives no explicit guidance on when to prefer this over extract_data_from_url, inspect_page_structure, discover_selectors, or probe_selectors. There are no when-not-to-use conditions or alternative routing, so the agent must infer placement.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Llamatron2112/mcp-dom-extract'

If you have feedback or need assistance with the MCP directory API, please join our Discord server