Query Search Console analytics
query_search_analyticsUse this when the user asks an ad-hoc question that needs raw Search Console rows, like "top queries last 28 days" or "page-level performance for /pricing". Runs searchAnalytics.query on a property: date / query / page / country / device / searchAppearance dimensions, filters, and the web, image, video, news, discover, googleNews or all (combined) search type. Not for totals or period comparisons: use get_site_summary. Eligible requests are served from the GSC Wizard ClickHouse warehouse (longer history); searchAppearance, googleNews or 3+ distinct dimensions use the live Search Console API (dataSource says which). Rows are sorted by clicks, highest first, or by date then clicks when date is a dimension (a live-API result over 5,000 rows keeps clicks order); sortedBy states it. ctr is a 0-100 percentage. Query rows cover only the queries Google lists: coverage.hiddenClicksShare (0-1) is the share of clicks with no query row, so quote totals from coverage.siteTotals, or coverage.filteredTotals when coverage.scope is "filtered", not summed rows. searchAppearance rows cover only results with a special appearance and are not a split of the totals, so their hidden shares are null. Regex filters use RE2 (no lookahead or backreferences; use excludingRegex to exclude). Returns 100 rows by default: pagination says whether the result was truncated; page with startRow or raise rowLimit. 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>"
},
"name": "query_search_analytics"
}
}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". | |
| filters | No | Dimension filters joined with AND, at most 20. Pass an empty list or omit for no filtering. | |
| siteUrl | Yes | The property URL as returned by list_sites (e.g. "sc-domain:example.com"). | |
| rowLimit | No | Rows to return per call (default 100, max 25000). Large values return a lot of raw rows; prefer paging with startRow. | |
| startRow | No | Rows to skip. Use pagination.nextOffset from a previous call to get the next page. | |
| 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". | |
| dimensions | No | ||
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | No | ||
| thenBy | No | ||
| endDate | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| warning | No | ||
| coverage | No | How much of the property total the rows cover, totals inline. Quote totals from here; do not sum rows. | |
| ordering | No | ||
| rowCount | No | ||
| sortedBy | No | ||
| sortOrder | No | ||
| startDate | No | ||
| thenOrder | No | ||
| dataSource | No | ||
| dimensions | No | ||
| pagination | No | ||
| searchType | No | ||
| partialDays | No | ||
| dataMaturity | No | ||
| settledThrough | No | ||
| coverageUnavailable | No | Why coverage is null, when it is. | |
| warehouseLatestDate | No |