Skip to main content
Glama

fetch_url

Read-onlyIdempotent

Fetch a web page through a real Singapore 4G/5G mobile IP and return its content.

Use when the user wants to see what a page shows visitors in Singapore (local
prices, currency, region-locked content) or when a site blocks datacenter IPs.
Does not run JavaScript, so pages built entirely in the browser may come back thin.

Args:
    url: The full http(s) URL to fetch.
    format: One of "markdown" (default, clean main content), "text", or "html".

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
urlYesThe full http:// or https:// URL of the page to fetch, e.g. https://www.lazada.sg/.
formatNoHow to return the page: "markdown" (default) keeps the main content as clean markdown, "text" strips all tags, "html" returns the raw HTML.markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / format / description
      Added value: +"How to return the page: \"markdown\" (default) keeps the main content as clean markdown, \"text\" strips all tags, \"html\" returns the raw HTML."
    • addedInput schema / properties / format / enum
      Added value: +[
      +  "markdown",
      +  "text",
      +  "html"
      +]
    • addedInput schema / properties / url / description
      Added value: +"The full http:// or https:// URL of the page to fetch, e.g. https://www.lazada.sg/."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond them: the exit IP is a Singapore mobile IP, and no JavaScript is executed, so client-rendered pages may return thin content — exactly the failure mode an agent needs to anticipate.

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?

Front-loaded purpose sentence, then usage conditions, then the JS caveat, then args — a sensible order with no filler. The Args section is somewhat redundant against a 100%-covered schema, which keeps it from a 5.

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 values need no explanation, and the format enum clarifies output shape. The main gaps are operational: nothing about timeouts, rate limits, or what happens on fetch failure for a network-dependent open-world tool.

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 both parameters are already fully documented with an example URL and per-enum meanings. The description's Args block largely restates the schema, adding only the default value, which is also in the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Fetch a web page") plus the distinguishing mechanism ("through a real Singapore 4G/5G mobile IP"). That mechanism separates it from siblings like search_web and my_proxy_status without needing to open any schema.

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

Usage Guidelines4/5

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

Gives two concrete triggers: viewing what a page shows Singapore visitors (local prices, currency, region-locked content) and sites that block datacenter IPs. It does not explicitly name an alternative tool or state when not to use it, which keeps it short of a 5.

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.