Skip to main content
Glama

crawl_site

Crawl a site to get a manifest of pages with titles and snippets, scoped by path. Page content is cached, so call fetch_url on any listed URL to read the full text.

Instructions

Crawl a site and return a manifest of pages with titles and snippets. Full page content is cached — call fetch_url on any page URL for the full text. Strategy: Firecrawl (JS rendering) → sitemap-first → BFS (if enabled). A start URL with a path (e.g. https://example.com/docs) limits the crawl to pages under that path unless include_path is given; include_path '/' crawls the whole site.

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

Input Schema

NameRequiredDescriptionDefault
urlYesBase URL to crawl. Its path scopes the crawl when include_path is omitted
max_pagesNoMaximum pages to crawl (default 20, max 100)
exclude_pathNoExclude URLs matching this path prefix (e.g. '/blog')
include_pathNoOnly include URLs matching this path prefix (e.g. '/docs'); replaces the start URL's default scope, '/' for the whole site
same_domain_onlyNoKeep only pages on the start URL's hostname, for every strategy (default true). false follows off-site links only when the server has BFS crawling enabled; otherwise the crawl stays on the site and the result says so

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / include_path / description
      Previous value: -"Only include URLs matching this path prefix (e.g. '/docs')"New value: +"Only include URLs matching this path prefix (e.g. '/docs'); replaces the start URL's default scope, '/' for the whole site"
    • changedInput schema / properties / same_domain_only / description
      Previous value: -"Restrict crawl to the same domain (default true)"New value: +"Keep only pages on the start URL's hostname, for every strategy (default true). false follows off-site links only when the server has BFS crawling enabled; otherwise the crawl stays on the site and the result says so"
    • changedInput schema / properties / url / description
      Previous value: -"Base URL to crawl"New value: +"Base URL to crawl. Its path scopes the crawl when include_path is omitted"
  2. First observedv3.12.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the return format (titles and snippets), that full page content is cached as a side effect, and the strategy chain Firecrawl JS rendering → sitemap-first → BFS when enabled. It omits operational traits such as cost, latency, or rate limits, which keeps it from a 5.

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?

Three dense sentences, front-loaded with purpose and return shape, then the follow-up tool, then scoping. Every clause carries information an agent needs; nothing is repeated or padded.

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?

For a 5-parameter crawl tool with no output schema, the description supplies the return shape, the caching side effect, the fallback strategy chain, and the path-scoping rules. An agent has everything needed to invoke it correctly and to know when to switch to fetch_url.

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?

Schema coverage is 100%, so the schema already documents each parameter. The description nevertheless adds behavioral meaning: the start URL's path scopes the crawl when include_path is omitted, and include_path '/' overrides that to crawl the whole site — clarifying the interaction between two parameters that the schema documents only in isolation.

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 first sentence gives a specific verb (crawl) and resource (a site) plus the exact return shape — a manifest of pages with titles and snippets. The follow-up explicitly routes full-text needs to the sibling fetch_url, so the boundary between crawling and fetching is unambiguous.

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?

It states clearly when to use the alternative: call fetch_url on any page URL when full text is needed, implying crawl is for discovery/indexing. It also explains the scoping rule for start URLs with paths versus include_path '/'. It stops short of stating explicit exclusions such as 'do not use for a single known page', but the routing is strong.

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