Enable the Google Search Console API and authenticate with an OAuth 2.0 token using the webmasters or webmasters.readonly scope
Send a POST request to the urlInspection.index.inspect endpoint with a JSON body containing 'inspectionUrl' (the URL to inspect) and 'siteUrl' (the property in GSC, must match exactly)
Parse the response object which includes indexStatusResult (coverageState, robotsTxtState, indexingState, lastCrawlTime, pageFetchState) and richResultsResult if applicable
Check the 'verdictEnum' and 'coverageState' fields to determine whether the URL is indexed, excluded, or has errors
Respect the per-day quota limits by implementing request throttling and exponential backoff on 429 responses
Known gotchas
The API quota is relatively low (on the order of hundreds of requests per day per project); bulk inspection of large sites requires spreading calls across multiple days or projects
The 'siteUrl' parameter must exactly match the property as verified in Search Console, including trailing slashes and the protocol prefix — a mismatch returns a 403 error
Results reflect GSC's cached crawl data, not a live fetch; the response may lag behind actual page state by days or weeks
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