Skip to main content
Glama

Oxylabs Scrape

oxylabs_scrape
Read-onlyIdempotent

Scrape any URL via the Oxylabs Web Scraper API (rotating proxies, anti-bot handling) and return the page HTML with its upstream status code. Set render_js:true to load the page in a headless browser first, use for JS-heavy sites. Calls are synchronous proxying and can take 10-30 seconds. BYOK: _apiKey is "username:password" from the Oxylabs dashboard. Example: oxylabs_scrape({ url: "https://example.com", _apiKey: "myuser:mypass" })

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "https://example.com/products",
      "_apiKey": "your-oxylabs-username:your-oxylabs-password"
    },
    "name": "oxylabs_scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe absolute URL to scrape, e.g. "https://example.com/products"
_apiKeyYesOxylabs API credentials as "username:password" from the Oxylabs dashboard (https://dashboard.oxylabs.io). Free trial includes up to 2K results.
render_jsNoWhen true, render the page in a headless browser (executes JavaScript) before returning HTML. Use for JS-heavy sites. Default false (faster raw fetch).
geo_locationNoGeo location to proxy the request from, e.g. "United States" or "Germany". Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-oxylabs-username:your-oxylabs-password",
      +    "url": "https://example.com/products"
      +  },
      +  {
      +    "_apiKey": "your-oxylabs-username:your-oxylabs-password",
      +    "geo_location": "United States",
      +    "render_js": true,
      +    "url": "https://example.com/dynamic-content"
      +  }
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare this as a safe, idempotent, open-world read, and the description layers on genuinely new behavior: rotating proxies and anti-bot handling, synchronous execution, a 10-30 second latency expectation, and what comes back (HTML plus upstream status code). It also specifies the BYOK credential format required to authenticate, which an agent cannot infer from annotations.

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?

The description is front-loaded with the core action and return value, then adds latency, auth, and an example. Nearly every sentence earns its place, though the inline example partially duplicates the schema's examples block.

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 four-parameter, annotation-rich proxy scraper, the description covers authentication, expected latency, rendering behavior, and return shape well. It is slightly thin on error/retry behavior and rate limits, which matter for a paid third-party API with 10-30 second calls.

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 description coverage is 100%, so all four parameters are already documented, and the description largely restates those semantics (render_js for JS-heavy sites, _apiKey as 'username:password'). The latency note adds a small amount of decision-relevant context about the cost of enabling rendering, but no syntax or format detail 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 names a specific verb and resource ('Scrape any URL via the Oxylabs Web Scraper API') and states the return payload ('page HTML with its upstream status code'). The word 'any' implicitly separates it from the sibling scrapers oxylabs_amazon_product and oxylabs_google_search, which are site-specific, but that contrast is never made explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives actionable conditional guidance for render_js ('Set render_js:true ... use for JS-heavy sites'), which is real when-to-use advice. However, it never says when to prefer this generic scraper over the domain-specific Oxylabs siblings, nor does it state exclusions or failure conditions.

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.