Check XML sitemaps
check_sitemapDiscover, parse, and validate XML sitemaps to report URL counts, duplicates, indexing blocks, and broken or non-canonical entries so you can fix crawl and indexability issues.
Instructions
Find, parse and sanity-check XML sitemaps.
Discovers sitemaps from robots.txt Sitemap: lines, /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml; follows sitemap indexes; reads gzip sitemaps with size limits. Reports URL counts, lastmod statistics, duplicates, URLs on other hosts, http URLs on https sites, URLs blocked for Googlebot by robots.txt, and fetches an evenly spaced sample of URLs to flag non-200, noindex and canonicalised entries.
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": "check_sitemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A site URL (sitemaps are discovered) or a sitemap URL. | |
| sample_size | No | How many sitemap URLs to fetch for status checks (0-100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||