Skip to main content
Glama
guanyuyan
by guanyuyan

web_fetch

Fetch any web page and receive a clean, token-efficient article body. Automatically bypasses anti-bot and login walls, detects blocked pages, and reports extraction failures.

Instructions

抓取网页并返回极省 token 的紧凑正文(自动辨别反爬拦截页并如实上报)。

Args: url: 目标网页完整 URL,需带 http/https 协议头。 max_tokens: 正文 token 预算上限,超出时保留头尾、省略中段。 link_policy: 链接处理策略。internal=站内链接保留为相对路径、站外降级为纯文本(默认,最省); all=站内外链接全保留;none=全部降级为纯文本。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
max_tokensNo
link_policyNointernal

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
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 a good job: it discloses anti-crawler interception detection, truthful reporting, and the truncation strategy of keeping head/tail while omitting the middle when max_tokens is exceeded. This goes beyond what the schema alone would tell an agent.

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?

The description is compact, front-loaded with the main purpose, and uses a clear bulleted Args section. Every sentence adds useful information without redundancy or filler.

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 shape does not need to be described. The description covers the operation, URL requirement, token budget behavior, link policy variants, and an important edge case (anti-crawling pages). It is slightly incomplete only in not addressing relationship to sibling tools such as web_batch and login.

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 fully compensates by explaining the URL protocol requirement, the max_tokens truncation behavior, and every link_policy option with its default and trade-off. This gives an agent actionable parameter-level semantics that the raw schema lacks.

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 states a clear verb and resource: it fetches a web page and returns a token-efficient compact body. It also signals a distinctive behavior (auto-detecting anti-crawling block pages), which helps distinguish it from generic fetch tools, though it does not explicitly contrast with its siblings.

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

Usage Guidelines2/5

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

The description explains what the tool does and how parameters work, but gives no guidance on when to prefer web_fetch over web_batch or login, nor any conditions where it should not be used. Usage context is only implied by the tool name and the single-page nature of the description.

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