Skip to main content
Glama

web_capture

Read-only

Captures a page’s XHR and JSON responses to uncover the API behind listings and pagination, then inspects matching endpoints and payloads for direct page requests.

Instructions

Find the JSON API behind a listing or pagination: records the XHR and JSON responses a page makes while it loads. Call without pattern to see the endpoints, then with pattern and bodies for the payloads. An endpoint that took page=1 takes page=2, which beats following links.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
tierNobrowser | stealth | real (default) | warm
bodiesNoReturn the response bodies
patternNoOnly responses whose URL contains this, e.g. /api/
profileNoCookies of a saved login profile
max_bodyNoChars per body, default 20000
settle_msNoKeep recording this long after load, default 3000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.0.0
    • changedInput schema / properties / bodies / description
      Previous value: -"Return the response bodies too. Off by default because they are large; turn it on once\n`pattern` names the endpoint you want."New value: +"Return the response bodies"
    • changedInput schema / properties / max_body / description
      Previous value: -"Per-body character cap. Default 20000."New value: +"Chars per body, default 20000"
    • changedInput schema / properties / pattern / description
      Previous value: -"Only responses whose URL contains this, e.g. \"/api/\". Leave it out the first time to see\neverything the page asked for."New value: +"Only responses whose URL contains this, e.g. /api/"
    • changedInput schema / properties / profile / description
      Previous value: -"Profile saved by web_login whose cookies to use."New value: +"Cookies of a saved login profile"
    • changedInput schema / properties / settle_ms / description
      Previous value: -"How long to keep recording after the page loads, in ms. Default 3000."New value: +"Keep recording this long after load, default 3000"
    • changedInput schema / properties / tier / description
      Previous value: -"Browser tier: browser, stealth, real (default), warm."New value: +"browser | stealth | real (default) | warm"
    • removedInput schema / properties / url / description
      Removed value: -"The page whose requests to record."
  2. First observedv1.0.3

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds real behavioral context beyond that: capture happens while the page loads, requires a live browser session, and the pattern/bodies combination changes what is returned. It does not discuss authentication, cookie/profile requirements, or limits on capture volume, which keeps it at 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each doing work: the first defines the tool, the second prescribes the call sequence, the third explains why this beats link-following. The core purpose is front-loaded with no filler.

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?

For a seven-parameter capture tool with no output schema, the description supplies the essential mental model: what is recorded, how the two-pass workflow works, and what the result is used for. It leaves the return shape and the meaning of `tier`/`profile` to the schema, which is acceptable given the 86% coverage. Slightly more on what a capture result looks like would make it complete.

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 86%, so the baseline would be 3. The description earns above baseline by explaining the role of `pattern` (used in a second discovery pass) and `bodies` (returns the payloads) as part of a staged workflow rather than as independent flags. It adds no detail on `tier`, `profile`, or `max_body` beyond the schema.

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

Purpose4/5

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

The description states a concrete verb and resource: it records the XHR and JSON responses a page makes while it loads in order to find the JSON API behind a listing or pagination. That is far more specific than the name alone and lets an agent distinguish it conceptually from a plain page fetch or crawl. It stops short of naming a sibling tool it replaces, so it lands at 4 rather than 5.

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?

It gives a clear two-step workflow: call without `pattern` first to discover endpoints, then call again with `pattern` and `bodies` to pull payloads. It also hints at when this is preferable to manually following pagination links. There is no explicit when-not guidance or named alternative, so it is not a full 5.

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