sitemap-audit
Sitemap Audit
Check the sitemaps a property has submitted, measure how much of one sitemap Google actually shows in search, group the URLs that never show by their likely cause, and, when the user wants it, submit or resubmit a published sitemap. The user's request may contain a property, a sitemap URL, a section path, a date range, or "bing"; use it to skip resolution, pick the sitemap, or widen the engine side. For a diagnosis that spends inspection quota, hand over to the indexing-health skill.
Workflow
-
Resolve the property. If the user's request or the conversation names a property, use it. Site URLs use GSC formats:
sc-domain:example.comorhttps://www.example.com/. Otherwise calllist_sitesand pick the obvious match. If several plausible properties exist, ask the user which one before continuing. Note the property'sgscScopefromlist_sites("full" or "readonly"): step 6 depends on it. For the Bing side,list_bing_sitesshows which sites Bing has verified (isVerifiedinsiteDetails) and answersnotConfigured: truewhen Bing Webmaster Tools is not connected. -
Submitted sitemaps. Call
list_sitemapswithsiteUrl. Readsitemaps[], sorted bypath:lastSubmitted,lastDownloaded,isPending,isSitemapsIndex,type,warnings,errors, andcontents[]withtypeandsubmittedper content type.- Google has deprecated
contents[].indexedand it typically reads 0, so never present it as an indexed count or as evidence that nothing is indexed. - Flag
errorsabove 0 (Google could not parse part of the file) andwarningsabove 0 (usually URLs that redirect, 404 or are blocked). - Flag
isPendinglong afterlastSubmitted(Google has not fetched it yet) and alastDownloadedolder than the site's publishing cadence (a daily news sitemap downloaded two weeks ago is stale). - An empty list carries
emptyBecauseandnextStep; say Search Console lists no sitemap and offer step 6.
- Google has deprecated