Skip to main content
Glama

ds_fetch

Fetches a web page by URL and returns its main content as raw Markdown for direct use in AI workflows. Use it as a fallback when built-in page-fetching capabilities are unavailable or fail.

Instructions

兜底工具:用户点名要用 DeepSeek 工具、dst 或 ds_* 时直接调用,不要先试自带;否则自带同类能力可用时优先用自带,只有自带缺失、被关闭、明确报错或返回空时才用本工具。抓取网页正文并原样返回 Markdown(同步,一次调用最多一次请求)。输入上限:url 必填、≤8192 字符,必须是带 host 的 http(s) 链接,不含账号密码与控制字符。超限或 URL 不合规会在本地打回,请换成合规链接再调用;403/404 时换来源;正文超长会落盘并给出绝对路径。没有声音/语言参数:页面语言原样透传,不翻译。不提供金额预估、不做预算拦截;费用以 DeepSeek 后台为准。

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

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden, and it does disclose a lot: synchronous execution, at most one request per call, local pre-flight rejection of non-compliant URLs, 403/404 recovery guidance, and oversized bodies written to disk with an absolute path returned. It also disclaims translation and cost estimation/budget interception. Gaps remain around timeout behavior, redirect handling, and whether any page content types are unsupported, but the safety-relevant traits are well covered.

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?

Front-loaded with the routing rule, then I/O contract, then input constraints, then edge-case handling — a logical order with no filler. The "超限或 URL 不合规会在本地打回,请换成合规链接再调用" clause partly restates the preceding constraint, and the cost disclaimer, while relevant given no budget interception, adds length.

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?

For a one-parameter, no-output-schema tool this is complete: return representation (verbatim Markdown), overflow behavior (written to disk with absolute path), error-path guidance, and the absence of language/voice parameters are all stated. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 0% and the only parameter is documented purely as a bounded string, so the description must compensate — and it does, specifying that url is required, must be an http(s) link carrying a host, and must not contain credentials or control characters. The 8192-character cap merely repeats the schema's maxLength, so it earns slightly less than a top score.

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?

States a specific verb and resource — "抓取网页正文并原样返回 Markdown" — plus the synchronous, single-request execution model, so the agent knows exactly what it gets back. It does not sharply differentiate itself from fetch-like siblings such as ds_search or ds_ocr beyond the generic ds_* fallback rule, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use: the user names the DeepSeek tool, dst, or ds_*, or built-in capability is missing, disabled, errors, or returns empty. Explicit when-not-to-use: do not try built-in first when the user names it, and prefer built-in when an equivalent capability exists. The alternative is named by capability class rather than by tool name, which is appropriate given the sibling list.

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