Check XML sitemap health
check_sitemapValidate a domain's XML sitemap for presence, accessibility, URL count, lastmod freshness, and support for sitemap-index, image, and video extensions. Use for site-wide indexing audits.
Instructions
Validate a domain's XML sitemap: presence, accessibility, URL count, lastmod freshness, sitemap-index handling, and image/video sitemap extensions.
Read-only. Issues N+1 HTTP GETs: one for robots.txt + sitemap, then up to max_urls_to_check HEADs against sampled URLs.
Deterministic, rule-based; no LLM.
When to use: site-wide indexing audits. Pair with check_robots for a full pre-crawl picture. For per-page checks, use audit_page or check_technical instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Hostname or origin to inspect. Examples: `example.com`, `https://example.com`. The tool tries `/sitemap.xml` then the sitemap URL declared in robots.txt; follows sitemap index files one level deep. Read-only HTTP GETs against the domain only. | |
| max_urls_to_check | No | Cap on how many URLs from the sitemap to sample for lastmod, image/video extension, and structural checks. Default 100. Increase up to 500 for large sites where you want a more representative sample; each extra URL is one HTTP HEAD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The hostname the sitemap was checked for. | |
| status | Yes | Outcome of the sitemap lookup. | |
| findings | Yes | ||
| fetched_at | Yes | UTC ISO-8601 timestamp of the check. | |
| total_urls | Yes | Total URLs declared across the sitemap (and indexed children). | |
| sitemap_url | Yes | Resolved sitemap URL (null when status != found). | |
| urls_with_lastmod | Yes | Count of URLs that carry a lastmod attribute. |