Authenticate with an OAuth2 token that includes the 'https://www.googleapis.com/auth/webmasters' scope (read-write)
Call GET 'webmasters/v3/sites/{siteUrl}/sitemaps' to retrieve all submitted sitemaps and their metadata including 'lastSubmitted', 'isPending', and 'errors'
Use GET 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}' to retrieve per-sitemap details including discovered URL counts and warnings
Submit a new sitemap with PUT 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}' — the feedpath must be URL-encoded
Delete stale or invalid sitemaps with DELETE 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}' to keep the index clean
Automate a weekly GET-and-audit script to detect sitemaps whose 'errors' count has increased or whose 'lastDownloaded' field is stale
Known gotchas
A 200 response from the PUT (submit) endpoint only confirms receipt — it does not mean Google has successfully parsed the sitemap; check 'isPending' and 'errors' in a follow-up GET
The feedpath in the URL must be percent-encoded; submitting a raw URL with query parameters will result in a 400 error
Deleting a sitemap from Search Console does not cause Google to deindex the URLs it listed — it only removes the submission record
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp