audit_sitemap
Fetch a sitemap.xml and score every URL for citation readiness, returning worst-first results to reveal site-wide issues in one pass.
Instructions
Fetch a sitemap.xml (or sitemap index) and run predict_citation on every URL. Returns results sorted worst-score-first. Surfaces systemic issues across a whole site in one pass. Zero engine keys needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max URLs to score. Sitemap is sliced after parsing. | |
| concurrency | No | Parallel predict_citation calls. Higher is faster but more rate-limit risk. | |
| sitemap_url | Yes | URL of sitemap.xml (or a sitemap index). Nested sitemaps are followed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | URLs whose audit threw an error. | |
| audited | Yes | Number of URLs that were scored. | |
| fetched_at | Yes | UTC ISO-8601 timestamp. | |
| total_urls | Yes | Total URLs found in the sitemap. | |
| sitemap_url | Yes | The sitemap URL that was audited. | |
| worst_first | Yes | Up to 20 lowest-scoring URLs, worst first. | |
| average_score | Yes | Mean predict_citation score across scored URLs. |