Sitemap URL performance
get_sitemap_performanceUse this when the user asks how the URLs in one sitemap perform in Google search, or how many of them get impressions. Fetches a sitemap belonging to the property, extracts its URLs, and joins them with Search Console page performance over a date range. Each URL gets its clicks, impressions, ctr (a percentage, 0-100), and average position (zeros if the page has no GSC data), sorted by clicks then impressions, highest first. Reports how many sitemap URLs actually received impressions (indexedInGscCount). The warehouse reads the sitemap URLs themselves, so a zero is exact. The live API cannot, so it pages through the property's pages (top 100,000 by clicks at most) until every URL is found; truncated: true can also mean some URLs were not reached, so their zeros are unknown rather than "no impressions" (scanLimit is the rows read). Expands one level of a sitemap index (up to 5 child sitemaps; a child that cannot be read is named in childSitemapNote instead of failing the call), joins at most maxUrls URLs (default 500, max 2000) and reports the total number of URLs in the sitemap in sitemapUrlCount, with urlsSkipped and truncated: true when maxUrls cut it, and only fetches http(s) URLs on the property host or a subdomain of it. Served from the ClickHouse warehouse when available, otherwise the live Search Console API (see dataSource). The sitemap is fetched with the user agent "GSCWizard-Bot/1.0 (On-Page SEO Checker)"; if the server blocks it (403/401/429) or no URLs come back, relay the whitelisting advice in the error or crawlNote. Not for the list of submitted sitemaps: use list_sitemaps. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>",
"sitemapUrl": "<sitemapUrl>"
},
"name": "get_sitemap_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | No | Optional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null". | |
| maxUrls | No | ||
| siteUrl | Yes | ||
| startDate | No | Optional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null". | |
| searchType | No | Search type: web (default), image, video, news (the News tab), discover, googleNews (news.google.com), webMultimodal (Google Lens, Circle to Search and image uploads; data from 2026-02-20; not part of all), or all (web + image + video + news + discover combined, position impression-weighted, like the app's "All" filter). Discover, googleNews and webMultimodal carry no query dimension, so query-level results for them are empty; Discover and googleNews also carry no position: it reads null, not 0. | web |
| sitemapUrl | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| urls | No | ||
| range | No | ||
| thenBy | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| warning | No | ||
| nextStep | No | ||
| ordering | No | ||
| sortedBy | No | ||
| urlCount | No | URLs joined with Search Console and returned in `urls` (at most maxUrls). | |
| crawlNote | No | ||
| scanLimit | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| truncated | No | ||
| dataSource | No | ||
| sitemapUrl | No | ||
| partialDays | No | ||
| sitemapNote | No | ||
| urlsSkipped | No | sitemapUrlCount - urlCount: URLs left out of `urls` because of maxUrls. | |
| dataMaturity | No | ||
| emptyBecause | No | ||
| methodLimits | No | ||
| settledThrough | No | ||
| truncationNote | No | ||
| sitemapUrlCount | No | URLs the sitemap holds in total (every child sitemap that was read, summed). A lower bound when `sitemapNote` or `truncationNote` says part of it was not read. | |
| childSitemapNote | No | ||
| indexedInGscCount | No | ||
| failedChildSitemaps | No | ||
| warehouseLatestDate | No |