Skip to main content
Glama

web_crawl

Read-only

Crawl an unknown site from a starting URL and return deduplicated Markdown pages while obeying robots.txt, with a crawl ID to resume interrupted runs.

Instructions

Read a site whose pages are not known: crawls from url, returns each page as markdown, deduplicated, robots.txt obeyed, with a crawl_id to resume. map only lists the site's URLs (robots, sitemaps, llms.txt, feeds, links) for a few hundred tokens: do that first. Known URLs: web_fetch urls. Many rows: out_file. Same-site links are paths, join them to the page's url.

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

Input Schema

NameRequiredDescriptionDefault
mapNoList URLs only, fetch no page
urlYesStart; the crawl stays on its domain
alsoNoMore sites; the budget is shared equally
modeNoForce one tier. Leave unset
dedupNoDefault true: skip near-duplicates, naming what they repeat
limitNomap: max URLs, default 1000
queryNoRank pages by relevance, keep relevant blocks, stop when new pages add nothing
outputNopages (default) | llms.txt | llms-full.txt
robotsNoobey (default) | warn | ignore
schemaNoRows from every page, as on web_fetch
scrollNo"auto" or a round count, on every page
tablesNoEvery page's data tables as rows
includeNoOnly URLs containing this, e.g. /docs/
sourcesNomap: robots, sitemap, llms, feeds, links (default all)
timeoutNoms per page, default 45000
crawl_idNoResume an interrupted crawl
out_fileNo.csv .json .jsonl: a path and a count come back
strategyNobest_first (default with query) | bfs | dfs (a manual, a paginated listing)
max_depthNoDefault 2
max_pagesNoDefault 20, max 200
extractionNomarkdown (default) | text | html
max_duration_msNoDefault 120000
max_tokens_totalNoDefault 60000
since_last_crawlNoOnly what the sitemap's lastmod says changed
max_chars_per_pageNoDefault 8000
stop_when_saturatedNoDefault true with query

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changedv2.0.0
    • changedInput schema / properties / also / description
      Previous value: -"More sites to crawl alongside `url`, under the same page and token budget. Each domain gets\nan equal share of the pages, so one large site cannot spend the whole run."New value: +"More sites; the budget is shared equally"
    • changedInput schema / properties / crawl_id / description
      Previous value: -"Resume an interrupted crawl by the `crawl_id` it returned: queue, pages already fetched and\nparameters all come back. web_status lists the ones with work left."New value: +"Resume an interrupted crawl"
    • changedInput schema / properties / dedup / description
      Previous value: -"Skip near-duplicate pages, reporting what they duplicate instead of their content.\nDefault true."New value: +"Default true: skip near-duplicates, naming what they repeat"
    • changedInput schema / properties / extraction / description
      Previous value: -"markdown (default), text, or html."New value: +"markdown (default) | text | html"
    • changedInput schema / properties / include / description
      Previous value: -"Only follow URLs containing this substring (e.g. \"/docs/\")."New value: +"Only URLs containing this, e.g. /docs/"
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "map: max URLs, default 1000",
      +  "type": "integer"
      +}
    • addedInput schema / properties / map
      Added value: +{
      +  "description": "List URLs only, fetch no page",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / max_chars_per_page / description
      Previous value: -"Per-page content cap in chars. Default 8000."New value: +"Default 8000"
    • changedInput schema / properties / max_depth / description
      Previous value: -"Link depth from the start URL. Default 2."New value: +"Default 2"
    • changedInput schema / properties / max_duration_ms / description
      Previous value: -"Give up after this long regardless. Default 120000."New value: +"Default 120000"
    • changedInput schema / properties / max_pages / description
      Previous value: -"Maximum pages to fetch. Default 20, max 200."New value: +"Default 20, max 200"
    • changedInput schema / properties / max_tokens_total / description
      Previous value: -"Whole-crawl token cap. Default 60000."New value: +"Default 60000"
    • changedInput schema / properties / mode / description
      Previous value: -"Leave unset: auto learns the tier per domain."New value: +"Force one tier. Leave unset"
    • changedInput schema / properties / out_file / description
      Previous value: -"Write the pages to this file instead of returning them, as CSV, JSON or JSON Lines\ndepending on the extension. What comes back is a path and a count."New value: +".csv .json .jsonl: a path and a count come back"
    • changedInput schema / properties / output / description
      Previous value: -"Output shape: pages (default), llms.txt, llms-full.txt."New value: +"pages (default) | llms.txt | llms-full.txt"
    • changedInput schema / properties / query / description
      Previous value: -"Rank pages by relevance to these words, keep only the relevant blocks, and stop when new\npages add nothing (see `stop_when_saturated`)."New value: +"Rank pages by relevance, keep relevant blocks, stop when new pages add nothing"
    • changedInput schema / properties / robots / description
      Previous value: -"robots.txt policy: obey (default for crawling), warn, ignore."New value: +"obey (default) | warn | ignore"
    • removedInput schema / properties / schema / anyOf
      Removed value: -[
      -  {
      -    "description": "\"auto\": read the page's own repeated structure; the schema used comes back as\n`induced_schema`, to pass next time.",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "Your own: `{\"name\", \"base_selector\", \"fields\": [{\"name\", \"selector\", \"type\", \"attribute\"}]}`,\nas shown on web_fetch.",
      -    "type": "object"
      -  }
      -]
    • changedInput schema / properties / schema / description
      Previous value: -"Rows instead of prose from every page, as on web_fetch: \"auto\" or your own selectors. With\n`out_file`, one row per item, each carrying its page's `url`."New value: +"Rows from every page, as on web_fetch"
    • addedInput schema / properties / schema / type
      Added value: +[
      +  "string",
      +  "object"
      +]
    • changedInput schema / properties / scroll / description
      Previous value: -"Scroll every page until it stops growing before reading it (`\"auto\"` or a round count),\nfor sites whose listings load as you scroll. Implies browser tiers; slower."New value: +"\"auto\" or a round count, on every page"
    • changedInput schema / properties / since_last_crawl / description
      Previous value: -"Seed from the site's sitemap and fetch only what its `lastmod` says has changed since this\nmachine last read it. A page with no date is always fetched: silence is not \"unchanged\"."New value: +"Only what the sitemap's lastmod says changed"
    • addedInput schema / properties / sources
      Added value: +{
      +  "description": "map: robots, sitemap, llms, feeds, links (default all)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / stop_when_saturated / description
      Previous value: -"Stop once the crawl stops learning anything new about `query`. Default true when a query\nis given."New value: +"Default true with query"
    • changedInput schema / properties / strategy / description
      Previous value: -"Ordering: best_first (default when a query is given), bfs, or dfs to follow one branch to\nits end before starting the next — what a manual or a paginated listing wants."New value: +"best_first (default with query) | bfs | dfs (a manual, a paginated listing)"
    • changedInput schema / properties / tables / description
      Previous value: -"Every page's data tables as typed rows, as on web_fetch."New value: +"Every page's data tables as rows"
    • changedInput schema / properties / timeout / description
      Previous value: -"Timeout in ms per page. Default 45000."New value: +"ms per page, default 45000"
    • changedInput schema / properties / url / description
      Previous value: -"Start URL. Crawl stays on this domain."New value: +"Start; the crawl stays on its domain"
  2. First observedv1.0.3

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already disclose that this is read-only and open-world. The description adds useful behavioral context beyond them: pages are deduplicated, robots.txt is obeyed, a `crawl_id` allows resume, and same-site links are returned as paths relative to the page URL. It does not cover every operational detail, but it meaningfully supplements the annotations.

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?

The description is dense but front-loaded: the core crawl behavior comes first, followed by alternatives and operational notes. The telegraphic phrasing is intentional and efficient, with no filler sentences.

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 complex 26-parameter crawler with no output schema, the description covers the essential purpose, alternatives, key modes, deduplication, robots behavior, resume support, and output routing via `out_file`. It is strong, though it does not fully describe the shape of returned page records beyond saying pages are returned as markdown.

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

Parameters4/5

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

Schema coverage is 100%, so the parameter descriptions already carry most semantics. The tool description still adds cross-parameter guidance, notably that `map` lists only URLs and should be done first, that `out_file` is for many rows, and that same-site links should be joined to the containing page's `url`.

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 states a specific verb and resource: it reads a site whose pages are not known by crawling from `url` and returning pages as markdown. It also clearly distinguishes the `map` mode and `web_fetch` for known URLs, so an agent can tell what this tool does and how it differs from siblings.

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 gives explicit routing guidance: use this when page URLs are not known, use `map` first for a cheap URL listing, use `web_fetch` for known URLs, and use `out_file` for many rows. Those are concrete when-to-use and alternative-selection rules, not just implied context.

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