Skip to main content
Glama

String Web Access

Interact with a web page

web_access_interact
Destructive

Interact with a caller-specified page — click, type, scroll, wait — then read it. Use this tool only when the content you need appears after that interaction; for a plain read, use web_access_fetch.

The actions run in order in a real browser session that opens on url, and the page comes back as it stands after the last one: a site's own search box filled in and submitted, a sort or filter control chosen, a "load more" button, a tab, a cookie banner, rows that render only once scrolled into view.

{ "url": "https://example.com", "actions": [
  { "type": "click", "selector": "input[name=q]" },
  { "type": "write", "text": "standing desk" },
  { "type": "press", "key": "Enter" },
  { "type": "wait", "selector": ".results .item", "timeout": 20000 }
] }

The input schema describes each step's fields. Wait on a selector rather than for a fixed time, click a field before write types into it, and never begin with a navigate to url itself.

Returns: body, the final page (Markdown by default, its HTML with format: "json"), with finalUrl, statusCode and headers. If a step fails, the call still succeeds: error and failedActionIndex (0-based) name the step, and body holds the page as it stood then, so read it before fixing that step's selector. With error and no failedActionIndex, url itself did not load and no step ran.

A call holds a browser session for tens of seconds and is billed at the browser rate. Actions can submit forms and change data on the destination, so treat every call as potentially destructive.

A browser session is always a GET; to send a POST, PUT or PATCH with a body, use web_access_request.

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>",
      "actions": "<actions>"
    },
    "name": "web_access_interact"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page the browser session opens before the first step, as its full web address.
formatNoHow the final page comes back in body: markdown, the page as clean, LLM-ready text, which suits most reads; or json, the page's HTML as the browser left it.
actionsYesThe steps to run, in order, before the page is read.
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 as the last step left it, or as it stood when a step failed: Markdown with format markdown, its HTML with json.
errorNoSet when a browser action step failed. The call still succeeds, and body holds the page as it stood when the step failed.
headersYesThat page's response headers, each name to its values.
finalUrlNoThe address the session ended on, after any navigation the steps caused.
screenshotNoThe capture a screenshot step took, when the sequence had one.
statusCodeYesThe HTTP status of the page the session ended on.
failedActionIndexNo0-based index into the request's actions array identifying the step that failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses cost and duration ('holds a browser session for tens of seconds and is billed at the browser rate'), why the operation is risky ('actions can submit forms and change data'), and the non-obvious partial-failure contract — the call still succeeds, with error and failedActionIndex, plus the distinct 'error with no failedActionIndex' case meaning url never loaded. This is exactly the behavior an agent cannot get from readOnly/destructive hints.

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 purpose and routing rule, then example, then constraints, then return/failure semantics — a sensible order. Density is high and the example earns its space, though 'requests must comply with destination policy, robots directives...' is boilerplate and the destructive warning partly repeats the annotation.

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 multi-step browser tool with nested action configs, it covers the things an agent must know to call it correctly: session lifecycle, billing, step ordering constraints, error/failure-index semantics, and format options. Even with an output schema present, the failure-mode explanation is necessary context the schema alone would not convey.

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, but the description adds prescriptive meaning not present in the schema: wait on a selector rather than a fixed time, click a field before write types into it, and never begin with a navigate to url itself. The worked JSON example also shows valid action ordering. It stops short of explaining every field, but the schema already does that.

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 set (click, type, scroll, wait) against a specific resource (a caller-specified page in a real browser session), and names the sibling it is not: 'for a plain read, use web_access_fetch.' An agent can differentiate it from fetch/request without opening a 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 condition for use ('only when the content you need appears after that interaction'), an explicit exclusion with an alternative (web_access_fetch for plain reads), and a second routing rule ('A browser session is always a GET; to send a POST, PUT or PATCH with a body, use web_access_request'). Nothing is left 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.