Skip to main content
Glama
Bright Data MCP

Bright Data MCP

Official
by brightdata

scrape_batch

Read-only

Fetch up to five web pages in one call and return ordered JSON content in markdown, text, HTML, or schema.org data, with per-URL errors for failed pages.

Instructions

Fetch up to 5 web pages at once. Returns a JSON array in input order, one item per URL: url, format, content, plus title and note when present; or url and error if that page failed. content is the page in one format, markdown by default. Pick another with the format param:

  • text: plain text, no links or headings

  • html: raw HTML, for CSS selectors or data hidden in the markup

  • ld_json: schema.org data (price, rating, author...) If a page has no data in that format, markdown is returned instead, with a note. No JavaScript rendering. Pages that take longer than 35 s time out (45 s when only one URL is sent). The whole result is cut at 40,000 characters, shared between pages. To read the rest of a cut page for free, call scrape_as_markdown with its url and the snapshot_id and start values from that item's next field.

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": {
      "urls": "<urls>"
    },
    "name": "scrape_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes
formatNomarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.2.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "markdown",
      +  "enum": [
      +    "markdown",
      +    "text",
      +    "html",
      +    "ld_json"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / urls / description
      Removed value: -"Array of URLs to scrape (max 5)"
  2. Addedv2.9.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description layers on real operational detail: no JS rendering, 35 s timeout (45 s for a single URL), a 40,000-character shared cut, silent fallback to markdown with a 'note', and per-item error objects. That is exactly the context an agent needs to predict failures and truncation.

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?

Front-loaded with the core action and return shape, then a scannable bullet list for format values and a closing pointer for pagination. Every sentence carries operational information; no filler or restatement of the tool name.

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 supplies the return contract itself (per-item url/format/content/title/note or url/error) along with limits, timeouts, and a continuation path. For a two-parameter batch tool this leaves no material gap an agent would need to guess at.

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

Parameters5/5

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

With 0% schema description coverage the description carries the full burden and does so: it enumerates all four format values with meaning and intended use, states the max of 5 URLs and that results preserve input order, and explains the markdown fallback when a format yields no data. Nothing about the two parameters is left ambiguous.

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 with scope: 'Fetch up to 5 web pages at once', and immediately defines the return container ('JSON array in input order'). An agent can tell this is a batch fetcher distinct from single-page or search siblings without opening the schema.

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?

Gives concrete selection guidance for the format parameter (text for plain text, html when CSS selectors or markup-hidden data are needed, ld_json for schema.org fields) and routes continuation work to scrape_as_markdown with the exact fields to pass. The gap is that it never names an alternative for JavaScript-rendered pages, only stating 'No JavaScript rendering' without pointing at the scraping_browser_* siblings.

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