Skip to main content
Glama

String Web Access

Send a web request

web_access_request
Destructive

Send a POST, PUT or PATCH request to any URL, through String's Web Access API. It works like web_access_fetch, but for calls that submit data rather than read a page — a JSON API that only accepts POST, a GraphQL endpoint, a search backend that takes a body.

Use web_access_fetch instead whenever you only need to read a page. This tool sends a body to the destination rather than reading it, so use it only for a request the user actually asked for.

Usage Example:

{
  "url": "https://api.example.com/search",
  "method": "POST",
  "body": { "q": "widgets" }
}

Returns: statusCode, headers and body: the destination's status, its headers (filled in with format: "json"), and its body verbatim (json, the default, or raw) or as clean text (markdown).

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>",
      "method": "<method>"
    },
    "name": "web_access_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe endpoint the request goes to, as its full web address.
bodyNoRequest body. A string is sent as-is; an object is JSON-stringified.
formatNoHow the destination's response comes back in body: json, the verbatim body with the destination's headers filled in, which suits most calls that send a body; raw, the verbatim body alone; or markdown, the body as clean text.
methodYesHTTP method: POST, PUT or PATCH. GET is not accepted here — use web_access_fetch to read a page.
headersNoRequest headers to send, each name to its value: a content type, a token the user supplied, a cookie.
countryCodeNoISO 3166-1 alpha-2 country code, e.g. 'US': the request reaches the destination from that country.

Output Schema

NameRequiredDescriptionDefault
bodyYesThe destination's response body: verbatim with format json or raw, as clean text with markdown.
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. Changed15 schema fields changed
    • 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': the request reaches the destination from that country."
    • changedInput schema / properties / format / description
      Previous value: -"Output format: 'markdown' for clean LLM-optimized text, 'raw' for the destination's verbatim body, 'json' for a { statusCode, headers, data } envelope (default)."New value: +"How the destination's response comes back in body: json, the verbatim body with the destination's headers filled in, which suits most calls that send a body; raw, the verbatim body alone; or markdown, the body as clean text."
    • addedInput schema / properties / format / enum
      Added value: +[
      +  "markdown",
      +  "raw",
      +  "json"
      +]
    • changedInput schema / properties / headers / description
      Previous value: -"Custom request headers to forward (max 50)."New value: +"Request headers to send, each name to its value: a content type, a token the user supplied, a cookie."
    • 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 to send the request to. Must be a valid HTTP/HTTPS URL."New value: +"The endpoint the request goes to, 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 destination's response body: verbatim with format json or raw, as clean text with markdown."
    • 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. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already supply readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the risk profile is declared. The description adds real context beyond that: the tool transmits a body to a third-party destination and should only be used on explicit user request. It stops short of covering auth/token handling or rate limits, which is the remaining gap.

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 core action, then the alternative, then an example, then returns — a sensible ordering with bold emphasis doing the routing work. The Returns section partially restates what the output schema already declares, which is minor slack in an otherwise tight definition.

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?

For a six-parameter, open-world mutation tool with an output schema, the description covers purpose, the sibling alternative, a call example, safety-minded usage caution, and response shape. Nothing an agent needs to select or invoke it correctly is missing.

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 schema carries the baseline. The description nonetheless earns credit by adding a concrete usage example showing how url/method/body compose, and by clarifying the format enum's practical effect (headers filled in for json, verbatim for raw, cleaned for markdown) and that GET is rejected in favor of the fetch sibling.

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?

The description names a specific verb set and resource ("Send a POST, PUT or PATCH request to any URL") and explicitly positions itself against the sibling web_access_fetch as the write-side counterpart. An agent can distinguish the two without opening either 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?

It states both when to use this tool (JSON APIs that only accept POST, GraphQL endpoints, search backends taking a body) and when not to ("Use web_access_fetch instead whenever you only need to read a page"). It adds a consent guardrail — use only for a request the user actually asked for — leaving nothing to inference.

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.