Skip to main content
Glama

Crawl a site

crawl_site

Start a multi-page crawl of a site you own. Spends credits per page fetched (call estimate_cost with operation crawl and units = pages first). Returns a crawl id immediately. Does NOT run keyword or rank checks. Does NOT crawl the whole internet; it stops at the plan page cap. Orphans are not_measured when the crawl was capped.

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": {
      "site_id": "<site_id>"
    },
    "name": "crawl_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNoMost pages to fetch. Capped by the plan.
site_idYesA site id from list_sites.
exclude_pathsNoPath patterns to skip, matched like robots.txt Disallow: "/blog/" skips everything under /blog/, "*" matches anything, a trailing "$" pins the end ("/*.pdf$"). Skipped URLs are not fetched, billed or counted toward the page limit.
allow_subdomainsNoAlso follow links to subdomains of the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / exclude_paths
      Added value: +{
      +  "description": "Path patterns to skip, matched like robots.txt Disallow: \"/blog/\" skips everything under /blog/, \"*\" matches anything, a trailing \"$\" pins the end (\"/*.pdf$\"). Skipped URLs are not fetched, billed or counted toward the page limit.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / allow_subdomains / description
      Added value: +"Also follow links to subdomains of the site."
    • addedInput schema / properties / pages / description
      Added value: +"Most pages to fetch. Capped by the plan."
    • addedInput schema / properties / site_id / description
      Added value: +"A site id from list_sites."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing credit consumption per page, the immediate async return of a crawl id, the plan page cap, and the 'not_measured' orphan status when capped — none of which are in the structured fields. The only gap is that it does not say how to retrieve the crawl's results once the id is returned.

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?

Five short sentences, each carrying distinct information: purpose, cost, return, exclusions, and limit semantics. The prerequisite call is placed early, ahead of the lower-priority caveats, so nothing important is buried.

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 an async, credit-spending mutation with no output schema, it covers cost, return value, and limits well. The one meaningful omission is the follow-up path for fetching crawl results after the id is returned, which an agent would need to complete the workflow.

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 baseline is 3, but the description adds real meaning by tying the pages parameter to estimate_cost's 'units = pages' convention and noting it is capped by the plan. It adds little for site_id, exclude_paths, or allow_subdomains, which the schema already documents thoroughly.

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 ('Start a multi-page crawl of a site') and immediately bounds the scope with 'site you own' and 'multi-page', which separates it from the single-page audit_page sibling. The explicit 'Does NOT run keyword or rank checks' further disambiguates it from analysis tools like get_query_gaps.

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?

Gives an explicit prerequisite: call estimate_cost with operation crawl and units = pages first. It also names exclusions (no keyword/rank checks, does not crawl the whole internet) and states the plan page cap, so the agent knows both when to use it and what it will not do.

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.