XML Sitemap Check
sitemap_checkDiscover and validate an XML sitemap for SEO compliance: locate via robots.txt or standard paths, then check URL count, size, lastmod validity, off-origin URLs, and duplicates.
Instructions
Discover, fetch and validate an XML sitemap. Finds it via the robots.txt Sitemap: directive, then falls back to /sitemap.xml, /sitemap_index.xml and /sitemap-index.xml. Handles sitemap indexes (following children) and gzipped sitemaps.
Validates: URL count against the 50,000 limit, uncompressed size against 50 MiB, presence and W3C-datetime validity, URLs pointing off-origin, http:// URLs, and duplicates.
Args:
site (string): domain or any URL on it.
sitemap_url (string, optional): explicit sitemap URL.
follow_children (number): child sitemaps of an index to follow (default 3).
response_format ('markdown' | 'json'): output format (default 'markdown').
Returns: { found, type, url_count, child_sitemaps[], with_lastmod, invalid_lastmod[], newest_lastmod, off_origin_urls[], exceeds_url_limit, discovered_via, score, grade, findings[] }.
Example: "Check the sitemap for example.com" -> sitemap_check(site="example.com").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Domain or any URL on it, e.g. 'example.com'. | |
| sitemap_url | No | Explicit sitemap URL. Omit to discover it via robots.txt, then the conventional paths. | |
| follow_children | No | How many child sitemaps of an index to follow (default 3). | |
| response_format | No | Output format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| type | Yes | ||
| bytes | Yes | ||
| found | Yes | ||
| grade | Yes | ||
| score | Yes | ||
| status | Yes | ||
| entries | Yes | ||
| findings | Yes | ||
| url_count | Yes | ||
| with_lastmod | Yes | ||
| child_sitemaps | Yes | ||
| discovered_via | Yes | ||
| duplicate_urls | Yes | ||
| newest_lastmod | Yes | ||
| non_https_urls | Yes | ||
| oldest_lastmod | Yes | ||
| invalid_lastmod | Yes | ||
| off_origin_urls | Yes | ||
| exceeds_url_limit | Yes | ||
| exceeds_size_limit | Yes | ||
| child_sitemaps_followed | Yes |