Skip to main content
Glama

web_capture

Read-only

Record JSON and XHR responses a page fetches while loading to uncover real API endpoints and payloads behind listings or pagination; filter by URL substring and return bodies when needed.

Instructions

Record the JSON and XHR responses a page fetches while it loads and return them: the site's own API, smaller, typed and more stable than the HTML built from it. Use to find the real endpoint behind a listing or pagination; an endpoint that took page=1 takes page=2, which beats following links. Call once without pattern to see what the page asked for, then with pattern (URL substring) and bodies=true for the payloads. Returns endpoints and responses with url, status, mime, and body when asked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe page whose requests to record.
tierNoBrowser tier: browser, stealth, real (default), warm.
bodiesNoReturn the response bodies too. Off by default because they are large; turn it on once `pattern` names the endpoint you want.
patternNoOnly responses whose URL contains this, e.g. "/api/". Leave it out the first time to see everything the page asked for.
profileNoProfile saved by web_login whose cookies to use.
max_bodyNoPer-body character cap. Default 20000.
settle_msNoHow long to keep recording after the page loads, in ms. Default 3000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the recording window after load, the fact that bodies are off by default because they are large (a cost disclosure), and the shape of what comes back. It does not cover the `profile`/auth implications or timing/rate behaviour, so it stops short of full transparency.

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 and dense with useful detail; the workflow sentence and return-shape sentence both earn their place. Slightly long and clause-heavy, but no filler.

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?

With no output schema, the description supplies the return contract (`endpoints` and `responses` with url, status, mime, and body when requested) plus default behaviours, so an agent has everything needed to call and interpret it.

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 already 100%, so a 3 is the baseline; the description goes beyond it by explaining the intent behind `pattern` (URL substring, omit first time), `bodies` (large, enable once the endpoint is named), and the interrogation sequence, adding real usage semantics.

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 and resource — recording JSON/XHR responses a page fetches during load and returning them — and contrasts it with the HTML-derived alternative and with link-following crawls. An agent can distinguish it from siblings like web_fetch or web_crawl 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 two-step workflow (call once without `pattern` to survey, then with `pattern` and `bodies=true` to retrieve) and a concrete selection rationale: find the real endpoint behind listing/pagination, and page=1 endpoints accept page=2, which beats following links.

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