Skip to main content
Glama

fetch_url

Read-only

Retrieves a web page's raw HTML or text for agent-firewall to inspect and strip injected instructions before the model sees it.

Instructions

Fetch a web page and return its raw HTML/text.

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

Input Schema

NameRequiredDescriptionDefault
urlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and network-exposure profile is covered by structured data. The description's only addition is that output is "raw HTML/text," and it says nothing about redirects, auth-protected pages, JavaScript-rendered content, error responses, or response size limits — all material 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.

Conciseness5/5

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

One short sentence with zero padding, front-loading both the action and the return shape. Nothing is wasted or repetitive.

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 tool is simple, the annotations cover the safety profile, and an output schema exists so return values need no prose. Still, for an open-world fetch, the absence of any note on failure behavior (404s, timeouts, non-HTML content) or content-size limits leaves gaps an agent would want before calling it.

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?

The single parameter has a schema description coverage of 0%, so the schema contributes nothing beyond the name "url". The description partially compensates by framing it as a web page address, but gives no detail on format expectations (scheme, encoding, query strings).

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?

"Fetch a web page and return its raw HTML/text" states a specific verb (fetch) and resource (web page), plus the return format. It is clear on its own, but it makes no effort to distinguish itself from siblings like http_post or read_file, so an agent must infer that this is the GET-style retrieval tool.

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?

There is no when-to-use or when-not-to-use guidance at all. The description never mentions the obvious alternative http_post for submitting data, nor any prerequisite such as whether the URL must be publicly reachable or include a scheme.

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