Skip to main content
Glama

Batch Crawl

batch_crawl

Crawl up to three URLs in one call with fallback, optionally saving per-URL Markdown and an index.json to a directory for persistent results.

Instructions

Crawl multiple URLs with fallback. Max 3 URLs per call. Use output_path (directory) to persist full per-URL markdown + index.json; the return shape stays a list, each success item gets an output_file key.

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

Input Schema

NameRequiredDescriptionDefault
urlsYesURLs to crawl (max 3)
overwriteNoOverwrite existing per-URL files inside output_path. Defaults to False (existing files cause an output_path_exists error, returned as a single-element list).
output_pathNoAbsolute directory path to persist per-URL markdown files + index.json. Existing regular files at this path are rejected; otherwise the directory is created if missing (dot-containing names like /tmp/run.v1 are fine). The list return shape is preserved; each successful item gains an 'output_file' key. Failed items (success=False) are NOT written as .md but still appear in index.json with output_file=null.
wait_for_jsNoWait for JS (default: False)
base_timeoutNoTimeout per URL (default: 30)
extract_mediaNoExtract media (default: False)
generate_markdownNoGenerate markdown (default: True)
include_content_in_responseNoWhen True (with output_path), keep full markdown/content in each list item. Defaults to False so the response stays token-efficient.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.0
    • addedInput schema / additionalProperties
      Added value: +false
    • removedOutput schema / description
      Removed value: -"Generic wrapper for non-object return types."
  2. Changed1 schema field changedv0.4.2
    • changedInput schema / properties / output_path / description
      Previous value: -"Absolute directory path to persist per-URL markdown files + index.json. Existing regular files at this path are rejected; otherwise the directory is created if missing (dot-containing names like /tmp/run.v1 are fine). The list return shape is preserved; each successful item gains an 'output_file' key. Failed items (success=False) are NOT written as .md but still appear in index.json with file=null."New value: +"Absolute directory path to persist per-URL markdown files + index.json. Existing regular files at this path are rejected; otherwise the directory is created if missing (dot-containing names like /tmp/run.v1 are fine). The list return shape is preserved; each successful item gains an 'output_file' key. Failed items (success=False) are NOT written as .md but still appear in index.json with output_file=null."
  3. Addedv0.3.2
  4. Removedv0.1.6
  5. First observedv0.1.7

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the persistence side effects (per-URL markdown plus index.json) and that the return shape stays a list with an output_file key per success, but says nothing about failure handling beyond the word 'fallback', rate limits, or what triggers errors such as output_path_exists.

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?

Two compact sentences, front-loaded with the core action and limit before moving to the persistence option. The semicolon-joined clause is dense but every element (URL cap, output_path role, return shape, output_file key) carries information.

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?

An output schema exists and the input schema is fully described, so the description only needs to cover the unstated operational essentials. It does that for the URL cap and the persistence flow, though it leaves open how it differs from multi_url_crawl and what 'fallback' concretely means.

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 the schema already documents every parameter including overwrite, output_path, and include_content_in_response in more detail than the description does. The description restates the output_path behavior rather than adding new semantics, so the baseline 3 applies.

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?

States a specific verb and resource ('Crawl multiple URLs with fallback') plus a hard scope limit ('Max 3 URLs per call'), which implicitly separates it from the single-URL siblings crawl_url and crawl_url_with_fallback. It never names an alternative explicitly, so the distinction with multi_url_crawl and deep_crawl_site must be inferred.

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?

The description gives a capacity rule (max 3 URLs) and a hint about when to supply output_path, but no explicit when-to-use/when-not-to-use guidance and no routing to or away from the many crawl/search siblings. Usage is only implied by the batch-versus-single framing.

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