Skip to main content
Glama
ScrapeUnblocker MCP Server

ScrapeUnblocker MCP Server

Official

Capture a page's own API calls (XHR/fetch)

capture_xhr
Destructive

Capture JSON from a page's own XHR/fetch calls by loading it in a real browser and returning each matching API response with status and body. Use it when direct requests are blocked.

Instructions

Load a web page in a real browser through ScrapeUnblocker and return the JSON its own API calls received: every XHR/fetch response whose URL contains capture_xhr (a fragment such as '/api/search'), in order, with status and body. Use it when a site renders from a JSON API that refuses direct requests (the page signs each call): the page makes the call, so it succeeds, and the JSON is cleaner than the HTML. Optional steps make the page fire the call (a search, 'load more'); steps act on the website and run once. Up to 20 responses; the page HTML is not returned. Billed as one request; when the site refuses every matching call (403/429) the call fails and is free.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe absolute URL to open (http/https).
stepsNoOptional browser actions that make the page fire the call, run after the page loads. Use `list_elements` first to find selectors. Runs once.
max_charsNoCap on the returned text (default 60000).
capture_xhrYesA fragment of the API URL the page calls, e.g. '/api/search'. Every XHR/fetch response whose URL contains it is returned (plain substring, case-sensitive).
proxy_countryNoOptional ISO 3166-1 alpha-2 country code to route through, e.g. 'US', 'GB', 'DE'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A4.2/5.0
Behavior3/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true, idempotentHint=false), it adds real context: steps act on the live site and run once, results are capped at 20 responses, page HTML is suppressed, billing is one request, and the call is free when every matching response is refused (403/429). Against that, it never states what 'destructive' means here or whether form state/click side effects persist. The annotations already flag this as a write-like open-world tool, so the bar is lower, but the description only partly fills it.

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?

A single front-loaded paragraph with the core mechanism first, then the trigger for use, then the side effects and billing. It is dense but nearly every sentence carries information; the '(the page signs each call)' parenthetical is the only slightly redundant aside.

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?

There is no output schema, so the description carries the return-shape burden and does it: ordered JSON with status and body, capped at 20 responses, HTML excluded, max_chars applied. Combined with the billing and failure semantics, an agent has everything needed to call it correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description does add meaning for capture_xhr — a plain, case-sensitive URL substring such as '/api/search' — and explains why steps exist (to make the page fire the call: a search, 'load more'), but it says nothing about max_chars, proxy_country, or step timeout behavior.

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 opens with a specific verb and resource: load a page in a real browser and return the JSON its own XHR/fetch calls received. It explicitly distinguishes this from fetching HTML ('the JSON is cleaner than the HTML'), which separates it from siblings like fetch_html and fetch_markdown.

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 names the exact condition for use — a site renders from a JSON API that refuses direct requests because the page signs each call — and explains why that condition selects this tool over a direct fetch. It also points to list_elements for finding selectors before supplying steps.

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