Skip to main content
Glama
wysh3

Perplexity MCP Server

extract_url_content

Extract clean main article text from any URL using browser automation and fallback logic. Handles dynamic JavaScript rendering and includes structured content retrieval for GitHub repositories. Ideal for articles and blog posts.

Instructions

Uses browser automation (Puppeteer) and Mozilla's Readability library to extract the main article text content from a given URL. Handles dynamic JavaScript rendering and includes fallback logic. For GitHub repository URLs, it attempts to fetch structured content via gitingest.com. Performs a pre-check for non-HTML content types and checks HTTP status after navigation. Ideal for getting clean text from articles/blog posts. Note: May struggle to isolate only core content on complex homepages or dashboards, potentially including UI elements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoOptional: Maximum depth for recursive link exploration (1-5). Default is 1 (no recursion).
urlYesThe URL of the website to extract content from.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoIndicates the outcome of the extraction attempt.
contentNoArray containing results for each explored page.
messageNoError message or context for "SuccessWithPartial" status.
rootUrlNoThe initial URL provided for exploration.
pagesExploredNoThe number of pages successfully fetched during exploration.
explorationDepthNoThe maximum depth requested for exploration.
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so effectively. It discloses key behavioral traits: uses browser automation and Readability library, handles JavaScript rendering, includes fallback logic, special handling for GitHub URLs, performs pre-checks for content types and HTTP status, and notes limitations with complex pages. This covers technical implementation, error handling, and edge cases.

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?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. Each subsequent sentence adds valuable information (technologies, special cases, checks, ideal use, limitations). There is minimal waste, though it could be slightly more streamlined.

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?

Given the tool's complexity (dynamic content extraction, fallback logic, GitHub handling) and the presence of an output schema (which means return values are documented elsewhere), the description is complete enough. It covers purpose, technology, behavior, use cases, and limitations without needing to repeat structured data.

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 the schema already documents both parameters (url and depth) thoroughly. The description does not add any additional meaning about parameters beyond what the schema provides, such as explaining how depth affects recursive exploration in practice. Baseline 3 is appropriate when the schema does the heavy lifting.

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 states the tool's purpose: 'extract the main article text content from a given URL' using specific technologies (Puppeteer and Mozilla's Readability). It distinguishes from siblings by focusing on content extraction rather than chat, code analysis, API discovery, documentation retrieval, or general search.

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?

The description provides clear context for when to use it ('Ideal for getting clean text from articles/blog posts') and includes a note about limitations ('May struggle... on complex homepages or dashboards'). However, it does not explicitly mention when NOT to use it or name specific alternatives among sibling tools.

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

Install Server

Other Tools

Related 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/wysh3/perplexity-mcp-zerver'

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