Check robots.txt and the sitemaps
check_sitemapsAudits robots.txt, sitemap indexes and listed URLs; reports blocked/ignored rules, load/parse failures, URL errors, redirects, noindex/canonical issues, invalid lastmod and hreflang mismatches.
Instructions
Reads a site's robots.txt and every sitemap it names (or /sitemap.xml), sitemap indexes included, then each address listed. Reports: robots.txt rules that block the site or are ignored; sitemaps that don't load or don't parse; how many addresses each lists; listed addresses that answer an error, redirect, are disallowed by robots.txt, say noindex or name another page as canonical; lastmod dates that are invalid, in the future or all the same day; language alternates that disagree with the pages. Read-only, one request at a time.
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_sitemaps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The site's address, for example https://example.com | |
| kind | No | Show only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again. | |
| delay_ms | No | Pause between two requests to the site, in milliseconds (one request at a time). | |
| max_pages | No | How many listed addresses to read (at most 1000). | |
| ignore_robots_txt | No | Read pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| facts | Yes | ||
| notes | Yes | ||
| passed | Yes | ||
| target | Yes | ||
| reading | Yes | How to read this answer: the same lines end the text form | |
| findings | Yes | ||
| headline | Yes | ||
| checked_at | Yes | ||
| robots_txt | Yes | "ignored" only when the caller passed ignore_robots_txt | |
| from_earlier_check | Yes | True when this answer re-reads an earlier check (because `kind` was given) |