Skip to main content
Glama

web_fetch

Fetch HTTP/HTTPS URLs safely for AI agents with read-only requests, SSRF protection, secret scrubbing, and optional HTML-to-Markdown conversion.

Instructions

Safe Tier-1 read-only HTTP/HTTPS fetch with multi-encoding, SSRF firewall, secret scrubbing, and optional HTML-to-Markdown conversion.

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
urlYesTarget HTTP/HTTPS URL.
pathNoOptional relative path/query overriding the URL path.
methodNoRead-only HTTP method (default: GET).
headersNoOptional request headers.
max_charsNoMaximum body characters returned (default: 32000).
as_markdownNoConvert HTML response to compact GFM Markdown (default: false).
include_bodyNoInclude response body/markdown in output (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose meaningful traits: read-only safety, an SSRF firewall, secret scrubbing, multi-encoding handling, and optional Markdown conversion. It is silent on auth requirements, redirect policy, rate limits, and how truncation interacts with max_chars, so the disclosure is partial rather than complete.

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?

A single front-loaded sentence with zero filler; the safety framing leads and the feature list follows. It is dense with feature keywords rather than explanatory, but no sentence is wasted.

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?

For a seven-parameter network tool with no annotations and no output schema, the definition covers the safety posture but not the return shape, error behavior, or routing versus alternatives. Adequate to call correctly given a fully documented schema, but not complete.

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%, so every one of the seven parameters is already documented, including defaults, the max_chars bounds, and the GET/HEAD/OPTIONS enum. The description only echoes as_markdown ('HTML-to-Markdown conversion') and adds no semantics about path overriding or include_body, so baseline 3 applies.

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?

Names a specific verb and resource: an HTTP/HTTPS fetch, qualified as read-only and 'Tier-1'. An agent immediately knows this retrieves remote content, but nothing in the text distinguishes it from siblings like web_extract or web_probe, so the purpose is clear without being differentiated.

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 phrase 'Tier-1 read-only' hints at a tiering scheme but never states when to choose this over web_extract, web_probe, or the cassette tools. There are no exclusions, prerequisites, or alternative-routing guidance, leaving the agent to infer selection criteria from sibling names alone.

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