Skip to main content
Glama

Fetch web page

web_fetch
Read-onlyIdempotent

Read one public web page. Returns the title and the page text from the top as plain text, and says how long the whole page is. A URL that ends in #section is read from that section. For a long page, call again with the start value the answer gives.

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
urlYesThe page URL to fetch
startNoCharacter position to continue from (default 0, the top of the page)
formatNotext (default) is short and readable. json adds evidence ids, hashes and usage.text
max_charsNoCharacters to return (default 8000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "text",
      +  "description": "text (default) is short and readable. json adds evidence ids, hashes and usage.",
      +  "enum": [
      +    "text",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / max_chars / description
      Previous value: -"Truncate content (default 8000)"New value: +"Characters to return (default 8000)"
    • addedInput schema / properties / max_chars / maximum
      Added value: +8000
    • addedInput schema / properties / max_chars / minimum
      Added value: +300
    • changedInput schema / properties / max_chars / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / start
      Added value: +{
      +  "default": 0,
      +  "description": "Character position to continue from (default 0, the top of the page)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world and non-destructive semantics, so the bar is lower; the description still adds real behavior: text is returned from the top, plain text format, total page length is reported, and #section fragments change where reading begins. It omits failure modes (404s, blocked pages, rate limits) that matter 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences ordered from what the tool does, to what it returns, to edge cases, to pagination. No filler. Slightly denser than needed, but each sentence carries distinct information.

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?

With no output schema, the description correctly compensates by describing the return payload (title, page text, total length) and the paging loop. What remains unstated is error/truncation behavior and any access restrictions on "public" pages, which an open-world fetch tool could reasonably mention.

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 100%, so 3 is the baseline. The description goes beyond it by explaining the continuation contract for start (use the offset the previous answer hands back) and by tying URL fragments to read position, which the schema does not convey.

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?

"Read one public web page" gives a specific verb (read), a bounded scope (one public page), and an explicit return shape (title and page text). It is distinguishable from search/research siblings by the "one page" framing, though no sibling is named.

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?

The description gives a clear continuation rule for long pages ("call again with the start value the answer gives") and implies the tool operates on already-known public URLs rather than discovery. It never states when to prefer this over web_search or web_research, so the routing decision is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources