gsc query search analytics
gsc_query_search_analyticsRetrieve Google Search Console search analytics data—clicks, impressions, CTR, and position—filtered by queries, pages, countries, devices, dates, and search appearances.
Instructions
Query Google Search Console Search Analytics. Returns clicks, impressions, CTR, and average position for queries, pages, countries, devices, dates, and search appearances. Use gsc://metrics, gsc://dimensions, gsc://filters, and gsc://compatibility for available fields and rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results. | |
| filters | No | Filters combined according to this tool's query schema. Use provider field names and the declared operators. | |
| metrics | No | Native: clicks, impressions, ctr, position. Calculated: ctrOpportunity, clicksPerImpression, impressionShare, clickShare. | |
| orderBy | No | Field used to order report rows. | clicks |
| siteUrl | No | Search Console property URL, e.g. https://example.com/ or sc-domain:example.com. Uses GSC_SITE_URL when omitted. | |
| startRow | No | Optional 0-based row offset for explicit pagination. | |
| dataState | No | final=stable data, all=fresh daily data, hourly_all=fresh hourly data (use hour dimension). | all |
| dateRange | No | Explicit reporting start and end dates in YYYY-MM-DD format. | |
| datePreset | No | Named reporting period. Use the custom date range when you need exact start and end dates. | last28days |
| dimensions | No | Up to 5 dimensions selected from query, page, country, device, date, hour, searchAppearance. | |
| searchType | No | Search surface to report, such as web, image, video, news or Discover. Availability depends on the property. | web |
| autoPaginate | No | When true, omit rowLimit so the GSC client auto-paginates until exhaustion. | |
| orderDirection | No | Sort direction for the selected ordering field. | DESC |
| aggregationType | No | Official GSC aggregation. byProperty is incompatible with page grouping/filtering and Discover/Google News. byNewsShowcasePanel requires discover/googleNews plus searchAppearance equals NEWS_SHOWCASE, and forbids page grouping/filtering or another searchAppearance filter. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |