Skip to main content
Glama
mcp-ddg-research

mcp-ddg-research

by isyuricunha

web_fetch

Read-only

Fetches a single HTTP(S) page with SSRF and redirect protections, then returns clean extracted text limited by a configurable character count.

Instructions

Fetch one HTTP(S) page safely and return extracted text.

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

Input Schema

NameRequiredDescriptionDefault
urlYesHTTP or HTTPS URL to fetch with SSRF protections and redirect validation.
max_charsNoMaximum number of extracted characters returned from one fetched page. Omit to inherit.

Output Schema

NameRequiredDescriptionDefault
urlYes
errorYes
titleYes
cachedYes
contentYes
successYes
final_urlYes
truncatedNo
content_typeYes
fetched_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.17.3
    • addedInput schema / properties / max_chars / anyOf
      Added value: +[
      +  {
      +    "maximum": 50000,
      +    "minimum": 1000,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_chars / default
      Previous value: -12000New value: +null
    • changedInput schema / properties / max_chars / description
      Previous value: -"Maximum number of extracted characters returned from one fetched page."New value: +"Maximum number of extracted characters returned from one fetched page. Omit to inherit."
    • removedInput schema / properties / max_chars / maximum
      Removed value: -50000
    • removedInput schema / properties / max_chars / minimum
      Removed value: -1000
    • removedInput schema / properties / max_chars / type
      Removed value: -"integer"
    • addedInput schema / properties / url / maxLength
      Added value: +8192
  2. First observedv0.13.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so safety is largely covered; the description repeats "safely" and adds only "extracted text" as return-format context. It does not explain the meaning of idempotentHint=false (transient page content), truncation behavior when the page exceeds max_chars, or what happens on non-HTML/unfetchable responses — all material for an open-world fetch.

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 with no filler; the verb, the scope (one page) and the return type come in the first clause. Nothing repeats the title or wastes words.

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 structure need not be described, and annotations plus full schema coverage cover safety and params. What remains missing for an open-world fetch tool is routing guidance versus its many siblings and failure/truncation behavior, leaving the definition adequate but thin.

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%: url documents SSRF protections and redirect validation, and max_chars documents the 1000-50000 range and "omit to inherit" default. The description adds no meaning beyond that, which is the correct baseline when the schema already carries both 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?

"Fetch one HTTP(S) page ... and return extracted text" gives a specific verb, a bounded resource (a single page, not a search corpus) and the output shape. That implicitly separates it from web_search/web_research/web_answer, but the description never names a sibling or states the contrast, so differentiation is left to inference.

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: an agent infers "use when you already have a URL and want its text." There is no explicit when-to-use rule, no when-not condition (e.g. don't use for multi-page synthesis or for pages behind auth), and no named alternative among web_search, web_research or web_answer.

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