Skip to main content
Glama
aiwebsearcher
by Vist233

Extracttextfromurls

extractTextFromUrls

Extract and filter clean readable text from multiple webpages, with optional pagination support, to gather relevant content for research or analysis.

Instructions

Extract and filter readable text from multiple webpages with optional pagination support.

Uses requests to fetch HTML, trafilatura to extract clean text (falls back to raw HTML), and regex patterns to filter content. Regex filtering is recommended for multiple URLs.

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": {
      "urls": "<urls>"
    },
    "name": "extractTextFromUrls"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYesList of target webpage URLs
timeoutNoHTTP request timeout in seconds
user_agentNoCustom User-Agent header (defaults to common browser UA)
pagination_limitNoMaximum pagination depth (minimum 1)
follow_paginationNoWhether to follow rel="next" pagination links
regular_expressionsNoRegex patterns to filter text; no filtering if None or empty

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/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 behavioral burden. It usefully discloses the processing pipeline (requests fetch, trafilatura extraction with a raw-HTML fallback, regex filtering), but says nothing about error handling for failed fetches, rate limits, or what happens when pagination hits a dead link.

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?

Three short sentences, front-loaded with the core action and free of filler. The implementation sentence is arguably internal detail, but it earns some place by explaining the fallback behavior an agent may observe in output.

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?

An output schema exists, so return values need not be explained, and parameters are fully covered by the schema. The gap is guidance on failure modes and sibling selection, which matters for a multi-URL fetch tool that can partially fail.

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 all six parameters are already documented, and baseline is 3. The description only loosely echoes pagination and regex behavior without adding format or constraint detail beyond the schema's own defaults and minimums.

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 and resource: 'Extract and filter readable text from multiple webpages.' The word 'multiple' implicitly contrasts with the sibling extractTextFromUrl, but the sibling is never named, so differentiation relies on the reader noticing the plural.

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?

It offers one concrete recommendation ('Regex filtering is recommended for multiple URLs') and notes pagination is optional, which implies usage context. It never states when to choose this tool over extractTextFromUrl for a single URL, and gives no exclusions or prerequisites.

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