Search performance (clicks, impressions, CTR, position)
gsc_query_analyticsQuery Google Search performance data grouped by dimensions (query, page, country, device, searchAppearance, date, hour) with filters. A single Search Analytics query returns at most 25,000 rows (platform limit): output is capped at 25,000 rows and summary.truncated=true marks an incomplete result — so never treat a shorter rows_total as a complete dataset. Read-only: rows are returned in the response and nothing is written or stored. The hour dimension requires data_state=hourly_all (set automatically when unset).
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": {
"site": "<site>"
},
"name": "gsc_query_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Search Console property: exact (sc-domain:example.com, https://example.com/) or just a domain/URL, matched automatically. | |
| chart | No | Also return a PNG chart of the result as an image, for clients that can display images. | |
| limit | No | Max rows; output is capped at 25000. Check summary.truncated before treating the rows as complete. | |
| range | No | Preset period ending yesterday (your local calendar day). Default last_28_days. Ignored when start_date/end_date are given. | |
| format | No | Use json. csv is not available on this server. | json |
| filters | No | All filters are ANDed. country uses ISO 3166-1 alpha-3 (e.g. POL), device: DESKTOP|MOBILE|TABLET. | |
| end_date | No | YYYY-MM-DD (use together with start_date) | |
| data_state | No | all = include fresh (not finalized) data; hourly_all for hour dimension. | |
| dimensions | No | ||
| start_date | No | YYYY-MM-DD (use together with end_date) | |
| search_type | No | web | |
| aggregation_type | No |