Skip to main content
Glama

fetch_text

Fetch a single web page as clean text, decode GB18030/UTF-8 correctly, and use rendered DOM with raw-body fallback for thin pages; optionally cache the text and return its path.

Instructions

Fetch one page as clean text, decoding GB18030 and UTF-8 correctly.

Prefers the rendered DOM and falls back to a raw-body parse when the page is too thin. With save=True the text is cached under the cache directory and the returned path is included.

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
saveNo
wait_msNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and usefully discloses decoding behavior, rendered-DOM preference with raw-body fallback, and cache-path inclusion when save=True. However, it leaves important behavior unspecified, including wait_ms semantics, timeout/error handling, redirects, and any access 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?

The description is short and front-loaded, opening with the core purpose and then adding fallback and caching behavior. Every sentence adds information without redundant wording.

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?

The output schema handles return values, and the description covers the main fetch behavior, fallback, and caching. Still, with no annotations and zero schema parameter descriptions, the undefined wait_ms semantics and unaddressed edge/error behavior leave it only minimally complete for correct invocation in varied cases.

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

Parameters2/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 for all three parameters. It explains save=True caching and the returned cache path, but wait_ms is completely unexplained and the save default/non-default behavior is only partially clarified.

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 specific verb and resource: 'Fetch one page as clean text,' with decoding details. It implicitly distinguishes itself from siblings like fetch_links and snapshot, but it does not explicitly name or contrast those alternatives.

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 implied by the text-extraction framing, but there is no explicit when-to-use or when-not-to-use guidance. It does not tell the agent when to prefer fetch_text over navigate, snapshot, or fetch_links.

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