Skip to main content
Glama

String Web Access

Fetch a web page

web_access_fetch
Read-only

Fetch a caller-specified HTTP(S) URL and get clean, LLM-ready Markdown back.

Primary use (the common case): pass only a url. The page is fetched with a normal GET and returned as Markdown — no other parameters are needed.

{ "url": "https://example.com/article" }

Best for: any public URL, including pages that render their content client-side (news, docs, blogs, web apps). Not for: searching the web when you don't have a URL — use web_access_search instead.

Optional parameters (omit unless you need them):

  • format — markdown (default), raw (the destination's verbatim body), or json (a { statusCode, headers, body } envelope with the destination's status and headers).

  • executeJS — set true to render JavaScript for SPAs when the content comes back empty.

  • headers — forward custom request headers; not combinable with executeJS, which runs in a browser.

  • countryCode — ISO 3166-1 alpha-2 (e.g. "US") to get the page as it is served in that country.

To send a direct POST, PUT or PATCH (with a body), use web_access_request — this tool only issues GETs. Plenty of those calls are reads: a GraphQL query, a search backend that takes a body, a JSON API that refuses GET.

To click, type or scroll before reading — a site's own search box, a sort or filter control, a "load more" button — use web_access_interact; this tool reads the page as it loads.

Returns: statusCode, headers and body in every format. body is Markdown by default; raw and json return the destination's verbatim body. statusCode is the destination's status in every format; with json, headers are the destination's own too.

Requests must comply with destination policy, robots directives, rate limits, and access controls.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to read, as its full web address.
formatNoHow the page comes back in body: markdown, the page as clean, LLM-ready text, which suits most reads; raw, the destination's verbatim body; or json, the verbatim body with the destination's headers filled in.
headersNoRequest headers to send with the GET, each name to its value: a cookie, an accepted language, a token the user supplied. Not with executeJS, which runs in a browser.
executeJSNoEnable JavaScript rendering for SPAs and dynamic content. Set to true if content appears empty or incomplete.
countryCodeNoISO 3166-1 alpha-2 country code, e.g. 'US': get the page as it is served in that country.

Output Schema

NameRequiredDescriptionDefault
bodyYesThe page: Markdown with format markdown, the destination's verbatim body with raw or json.
headersYesThe destination's response headers, each name to its values, as the API reports them; format json fills them in.
statusCodeYesThe destination's HTTP status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • removedInput schema / properties / actions
      Removed value: -{
      -  "description": "Browser actions to run in order before the page is captured, for content that only appears after interaction. Max 50, at most one screenshot. Not combinable with headers, format 'raw' or solveCaptcha false.",
      -  "items": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "all": {
      -        "description": "click: click every element matching the selector instead of the first.",
      -        "type": [
      -          "null",
      -          "boolean"
      -        ]
      -      },
      -      "amount": {
      -        "description": "scroll: distance in pixels.",
      -        "type": [
      -          "null",
      -          "integer"
      -        ]
      -      },
      -      "direction": {
      -        "description": "scroll: up, down, left, or right.",
      -        "type": "string"
      -      },
      -      "full_page": {
      -        "description": "screenshot: capture the whole scrollable page rather than the viewport.",
      -        "type": [
      -          "null",
      -          "boolean"
      -        ]
      -      },
      -      "key": {
      -        "description": "press: the key to press, e.g. 'Enter'.",
      -        "type": "string"
      -      },
      -      "milliseconds": {
      -        "description": "wait: pause this many milliseconds (max 30000). Prefer waiting on a selector.",
      -        "type": [
      -          "null",
      -          "integer"
      -        ]
      -      },
      -      "quality": {
      -        "description": "screenshot: JPEG quality, 1-100.",
      -        "type": [
      -          "null",
      -          "integer"
      -        ]
      -      },
      -      "selector": {
      -        "description": "CSS selector. Required for click, hover and selectOption; on wait it waits for the element to appear; on scroll it scrolls that element instead of the page.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "write: the text to type into the focused element.",
      -        "type": "string"
      -      },
      -      "timeout": {
      -        "description": "wait with a selector: give up after this many milliseconds (max 30000).",
      -        "type": [
      -          "null",
      -          "integer"
      -        ]
      -      },
      -      "type": {
      -        "description": "The action to run: wait, click, write, press, scroll, screenshot, navigate, hover, or selectOption.",
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "navigate: the URL to go to, carrying the session's cookies and state.",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "selectOption: the option value to select, or an array of them for a multi-select."
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  "type": [
      -    "null",
      -    "array"
      -  ]
      -}
    • changedInput schema / properties / countryCode / description
      Previous value: -"ISO 3166-1 alpha-2 country code for geolocated proxy routing, e.g. 'US'."New value: +"ISO 3166-1 alpha-2 country code, e.g. 'US': get the page as it is served in that country."
    • changedInput schema / properties / format / description
      Previous value: -"Output format: 'markdown' for clean LLM-optimized text (recommended), 'raw' for the destination's verbatim body, 'json' for a { statusCode, headers, data } envelope."New value: +"How the page comes back in body: markdown, the page as clean, LLM-ready text, which suits most reads; raw, the destination's verbatim body; or json, the verbatim body with the destination's headers filled in."
    • addedInput schema / properties / format / enum
      Added value: +[
      +  "markdown",
      +  "raw",
      +  "json"
      +]
    • changedInput schema / properties / headers / description
      Previous value: -"Custom request headers to forward (max 50). Not combinable with executeJS or actions."New value: +"Request headers to send with the GET, each name to its value: a cookie, an accepted language, a token the user supplied. Not with executeJS, which runs in a browser."
    • addedInput schema / properties / headers / maxProperties
      Added value: +50
    • removedInput schema / properties / solveCaptcha
      Removed value: -{
      -  "description": "Whether to attempt captcha solving. Defaults to true server-side; set false to fail fast on challenges.",
      -  "type": [
      -    "null",
      -    "boolean"
      -  ]
      -}
    • changedInput schema / properties / url / description
      Previous value: -"The full URL of the webpage to fetch. Must be a valid HTTP/HTTPS URL."New value: +"The page to read, as its full web address."
    • addedInput schema / properties / url / pattern
      Added value: +"^[Hh][Tt][Tt][Pp][Ss]?://"
    • addedOutput schema / properties / body / description
      Added value: +"The page: Markdown with format markdown, the destination's verbatim body with raw or json."
    • removedOutput schema / properties / error
      Removed value: -{
      -  "description": "Set when a browser action step failed. The call still succeeds, and body holds the page as it stood when the step failed.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / failedActionIndex
      Removed value: -{
      -  "description": "0-based index into the request's actions array identifying the step that failed.",
      -  "type": [
      -    "null",
      -    "integer"
      -  ]
      -}
    • removedOutput schema / properties / finalUrl
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / headers / description
      Added value: +"The destination's response headers, each name to its values, as the API reports them; format json fills them in."
    • removedOutput schema / properties / screenshot
      Removed value: -{
      -  "properties": {
      -    "base64": {
      -      "type": "string"
      -    },
      -    "format": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "format",
      -    "base64"
      -  ],
      -  "type": [
      -    "null",
      -    "object"
      -  ]
      -}
    • addedOutput schema / properties / statusCode / description
      Added value: +"The destination's HTTP status."
  2. Changed10 schema fields changed
    • changedInput schema / properties / actions / description
      Previous value: -"Browser actions to run in order before the page is captured, for content that only appears after interaction. Max 50, at most one screenshot. Not combinable with method, body, headers, or format 'raw'."New value: +"Browser actions to run in order before the page is captured, for content that only appears after interaction. Max 50, at most one screenshot. Not combinable with headers, format 'raw' or solveCaptcha false."
    • removedInput schema / properties / body
      Removed value: -{
      -  "description": "Request body for POST/PUT/PATCH. A string is sent as-is; an object is JSON-stringified. Not allowed for GET."
      -}
    • changedInput schema / properties / executeJS / description
      Previous value: -"Enable JavaScript rendering for SPAs and dynamic content. Set to true if content appears empty or incomplete. Cannot be combined with custom headers."New value: +"Enable JavaScript rendering for SPAs and dynamic content. Set to true if content appears empty or incomplete."
    • changedInput schema / properties / format / description
      Previous value: -"Output format: 'markdown' for clean LLM-optimized text (recommended), 'raw' for the verbatim upstream body, 'json' for a { statusCode, headers, data } envelope."New value: +"Output format: 'markdown' for clean LLM-optimized text (recommended), 'raw' for the destination's verbatim body, 'json' for a { statusCode, headers, data } envelope."
    • changedInput schema / properties / headers / description
      Previous value: -"Custom request headers to forward (max 50). Not supported when executeJS is enabled."New value: +"Custom request headers to forward (max 50). Not combinable with executeJS or actions."
    • removedInput schema / properties / method
      Removed value: -{
      -  "description": "HTTP method for the request (GET/POST/PUT/PATCH), defaults to GET. Use POST/PUT/PATCH to send a body.",
      -  "type": "string"
      -}
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / error / description
      Added value: +"Set when a browser action step failed. The call still succeeds, and body holds the page as it stood when the step failed."
    • addedOutput schema / properties / failedActionIndex / description
      Added value: +"0-based index into the request's actions array identifying the step that failed."
    • removedOutput schema / properties / screenshot / additionalProperties
      Removed value: -false
  3. Changed5 schema fields changed
    • addedInput schema / properties / actions
      Added value: +{
      +  "description": "Browser actions to run in order before the page is captured, for content that only appears after interaction. Max 50, at most one screenshot. Not combinable with method, body, headers, or format 'raw'.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "all": {
      +        "description": "click: click every element matching the selector instead of the first.",
      +        "type": [
      +          "null",
      +          "boolean"
      +        ]
      +      },
      +      "amount": {
      +        "description": "scroll: distance in pixels.",
      +        "type": [
      +          "null",
      +          "integer"
      +        ]
      +      },
      +      "direction": {
      +        "description": "scroll: up, down, left, or right.",
      +        "type": "string"
      +      },
      +      "full_page": {
      +        "description": "screenshot: capture the whole scrollable page rather than the viewport.",
      +        "type": [
      +          "null",
      +          "boolean"
      +        ]
      +      },
      +      "key": {
      +        "description": "press: the key to press, e.g. 'Enter'.",
      +        "type": "string"
      +      },
      +      "milliseconds": {
      +        "description": "wait: pause this many milliseconds (max 30000). Prefer waiting on a selector.",
      +        "type": [
      +          "null",
      +          "integer"
      +        ]
      +      },
      +      "quality": {
      +        "description": "screenshot: JPEG quality, 1-100.",
      +        "type": [
      +          "null",
      +          "integer"
      +        ]
      +      },
      +      "selector": {
      +        "description": "CSS selector. Required for click, hover and selectOption; on wait it waits for the element to appear; on scroll it scrolls that element instead of the page.",
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "write: the text to type into the focused element.",
      +        "type": "string"
      +      },
      +      "timeout": {
      +        "description": "wait with a selector: give up after this many milliseconds (max 30000).",
      +        "type": [
      +          "null",
      +          "integer"
      +        ]
      +      },
      +      "type": {
      +        "description": "The action to run: wait, click, write, press, scroll, screenshot, navigate, hover, or selectOption.",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "navigate: the URL to go to, carrying the session's cookies and state.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "selectOption: the option value to select, or an array of them for a multi-select."
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / failedActionIndex
      Added value: +{
      +  "type": [
      +    "null",
      +    "integer"
      +  ]
      +}
    • addedOutput schema / properties / finalUrl
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / screenshot
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "base64": {
      +      "type": "string"
      +    },
      +    "format": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "format",
      +    "base64"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered; the description adds real behavior beyond that — GET-only, the headers/executeJS incompatibility, format-dependent body semantics, and the robots/rate-limit/access-control compliance requirement. Minor gaps remain (caching, retry or failure behavior, why idempotentHint is false for a GET), so it stops short of a 5.

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 with the primary use and a concrete example, with strong bolded section headers. It loses a point for redundancy: the optional-parameter blurbs for `format` are restated almost verbatim in the "Returns" paragraph, and the JSON snippet adds bulk for a single required string.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite five parameters, a browser-rendering mode, and policy constraints, an agent has everything needed to call it correctly: required input, when to switch to `executeJS`, when to switch sibling tools, and what comes back. An output schema exists, so the return description is a bonus rather than a necessity.

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 the baseline is 3; the description still earns credit by explaining practical triggers the schema doesn't, e.g. use `json` to get the destination's status/headers, use `executeJS` when content comes back empty, and that `headers` cannot be combined with `executeJS`. That is decision-relevant meaning layered on documented parameters.

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+resource ("Fetch a caller-specified HTTP(S) URL") and the output form (clean LLM-ready Markdown), then explicitly carves out the sibling cases: web_access_search for no-URL searches, web_access_request for POST/PUT/PATCH, web_access_interact for clicking/typing. An agent can route correctly without opening 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 Guidelines5/5

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

Gives an explicit common-case recipe (pass only `url`), a "Best for" scope, a "Not for" exclusion naming the alternative, and per-alternative routing rules for body-sending requests and interactive pages. When/when-not/alternatives are all covered.

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.