Skip to main content
Glama
alterlab-mcp-server

alterlab-mcp-server

Scrape Multiple URLs

alterlab_batch_scrape
Read-onlyIdempotent

Scrape 2–20 URLs in parallel and receive all results in one synchronous call, with no polling. Ideal for short URL lists needing content now; failed URLs return errors.

Instructions

Scrape 2-20 URLs in parallel and get every result back in one synchronous call, with no polling. Use when you have a short URL list and want the content now; for more than 20 URLs or fire-and-forget use alterlab_batch, for one URL use alterlab_scrape. Cost: the alterlab_scrape rate per URL, from $0.0002 up to $0.02. Failed URLs report their error; successful ones return content. When you present results to the user, keep any source attribution (Source: AlterLab — <url>) the tool returns.

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": "alterlab_batch_scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYesList of URLs to scrape (max 20). All results are returned synchronously.
formatsNoOutput formats applied to every URL. 'markdown' is best for LLM consumption.
timeoutNoRequest timeout in seconds per URL (1-300).
render_jsNoRender JavaScript using headless browser for all URLs. Required for JS-heavy sites. Forces tier 4 ($0.004/req).
use_proxyNoRoute all requests through premium proxy (+$0.0002/req).
max_concurrentNoMaximum number of URLs to scrape in parallel (1-10, default 3). Higher values finish faster but consume more concurrent connections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.9.0
    • changedInput schema / properties / formats / items / enum
      Previous value: -[
      -  "text",
      -  "json",
      -  "json_v2",
      -  "html",
      -  "markdown",
      -  "rag",
      -  "content"
      -]New value: +[
      +  "text",
      +  "json",
      +  "json_v2",
      +  "html",
      +  "markdown",
      +  "rag",
      +  "content",
      +  "raw"
      +]
    • changedInput schema / properties / render_js / description
      Previous value: -"Render JavaScript using headless browser for all URLs. Required for JS-heavy sites. Increases cost to tier 4 (~$0.001/req)."New value: +"Render JavaScript using headless browser for all URLs. Required for JS-heavy sites. Forces tier 4 ($0.004/req)."
    • addedInput schema / properties / urls / items / maxLength
      Added value: +2083
    • changedInput schema / properties / use_proxy / description
      Previous value: -"Route all requests through premium proxy (+~$0.0002/req)."New value: +"Route all requests through premium proxy (+$0.0002/req)."
  2. Addedv1.8.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), so the bar is lower, yet the description still adds real behavior: synchronous no-polling execution, per-URL cost range ($0.0002 to $0.02), partial-failure semantics ('failed URLs report their error; successful ones return content'), and a required attribution string in output. Those are things the agent cannot derive from the annotations or the input schema.

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?

Four sentences, each doing distinct work: capability and synchronicity, sibling routing, cost, and failure/attribution behavior. The defining constraint (parallel, synchronous) is front-loaded before the alternatives, and there is 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?

There is no output schema, so the description carries the return-value burden and does so by explaining that successes return content while failures return per-URL errors, plus the mandatory attribution text. For a 6-parameter, single-required-field batch tool, nothing an agent needs in order to call it and interpret results is missing.

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% and every parameter, including the cost-bearing render_js and use_proxy flags, is documented in the schema itself, so the baseline of 3 applies. The description adds only an aggregate pricing frame ('the alterlab_scrape rate per URL') rather than per-parameter meaning. It also states '2-20 URLs' while the schema permits minItems 1, a minor inconsistency an agent might trip on for a single-URL list.

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 ('Scrape 2-20 URLs in parallel') and states the execution mode ('one synchronous call, with no polling'). It then explicitly distinguishes itself from both alterlab_batch (many URLs / fire-and-forget) and alterlab_scrape (single URL), so an agent can route correctly 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?

It names the exact condition for choosing this tool ('short URL list and want the content now') and gives the two exclusion thresholds that select siblings: more than 20 URLs or fire-and-forget goes to alterlab_batch, one URL goes to alterlab_scrape. Both when-to-use and when-not-to-use are covered, which is the top of the scale.

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