Skip to main content
Glama
DuckDuckGo MCP Server

DuckDuckGo MCP Server

by Leonx01

fetch_content

Fetches a webpage and extracts clean, readable main text by stripping navigation, headers, scripts, and styles; supports pagination via start_index and max_length.

Instructions

Fetch and extract the main text content from a webpage. Strips out navigation, headers, footers, scripts, and styles to return clean readable text. Use this after searching to read the full content of a specific result. Supports pagination for long pages via start_index and max_length.

Args: url: The full URL of the webpage to fetch (must start with http:// or https://). start_index: Character offset to start reading from (default: 0). Use this to paginate through long content. max_length: Maximum number of characters to return (default: 8000). Increase for more content per request or decrease for quicker responses. ctx: MCP context for logging.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
max_lengthNo
start_indexNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the extraction behavior (boilerplate stripped, clean readable text returned) and the pagination model with a default cap of 8000 characters, which tells the agent responses may be truncated. It omits failure behavior for non-HTML pages, redirects, and any rate/permission constraints.

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?

Front-loaded with the action and the transformation, then usage routing, then a compact args block that pairs each parameter with its operational meaning. No filler sentences; each line contributes either selection guidance or invocation detail.

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

Completeness4/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-value structure needn't be documented, yet the description still covers extraction results, truncation via max_length, and continuation via start_index - enough for correct invocation. Only error and access-failure behavior is left implicit.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and does: url is constrained to http(s), start_index is explained as a character offset for pagination, and max_length is given both a default and a tradeoff rationale ('increase for more content per request or decrease for quicker responses'). Minor inconsistency: it documents a 'ctx' argument that does not appear in the input schema.

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?

States a specific verb-and-resource pair ('fetch and extract the main text content from a webpage') and immediately clarifies the transformation ('strips out navigation, headers, footers, scripts, and styles'). It also distinguishes itself from the sibling 'search' by positioning itself as the follow-up step for reading a specific result.

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?

'Use this after searching to read the full content of a specific result' gives a clear triggering context relative to the search tool. It stops short of exclusions - it doesn't say when not to use it (e.g., for APIs, PDFs, or already-known URLs) - but the sequencing guidance is explicit.

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