Skip to main content
Glama
String AI Web Access MCP Server

String AI Web Access MCP Server

Official

Interact with a web page

web_access_interact
Destructive

Interact with a web page—click, type, scroll, or wait—then read the resulting content when it only appears after those actions.

Instructions

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: it cannot send a POST, PUT or PATCH with a body.

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.markdown
actionsYesThe steps to run, in order, before the page is read: 1 to 50.
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 step failed, or when url itself did not load. The call still succeeds, and body holds the page as it stood then.
headersYesThat page's response headers, each name to its values.
finalUrlNoThe address the session ended on, after any navigation the steps caused.
statusCodeYesThe HTTP status of the page the session ended on.
failedActionIndexNo0-based index into actions of the step that failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and readOnlyHint=false, and the description adds materially beyond them: session lifetime of tens of seconds, browser-rate billing, the fact that actions can submit forms and mutate the destination, and GET-only limitations (no POST/PUT/PATCH body). It also documents non-obvious failure semantics — the call still succeeds, `error` plus 0-based `failedActionIndex`, partial `body`, and the `error`-without-index case meaning `url` never loaded.

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 one-line what/when, followed by the example, tips, and returns — a logical order with no filler sentences. It is on the long side, and the Returns paragraph partly overlaps the output schema, but the failure-mode detail it carries is not redundant.

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 4-parameter, open-world, destructive browser tool, the description covers selection, sequencing, cost, risk, hard constraints (GET-only, policy/robots/rate limits), and partial-failure recovery. Nothing an agent needs to call it safely and 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 baseline would be 3, but the description adds operational rules the schema cannot express: 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 example also demonstrates how `actions` fields compose in sequence.

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 (click, type, scroll, wait) plus the outcome (read the page after interaction) and explicitly contrasts itself with web_access_fetch for plain reads. An agent can distinguish this from every sibling 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?

It states an explicit precondition — "Use this tool only when the content you need appears after that interaction" — and names the alternative (web_access_fetch) for the plain-read case. The concrete scenarios (search box submitted, sort/filter chosen, load-more, cookie banner, rows rendering on scroll) turn the condition into something recognizable.

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