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): JSON output is capped at 25,000 rows, and format=csv keeps paginating with startRow until your limit, but it stops as soon as the API rejects the next page and then reports summary.truncated=true — so never treat a shorter rows_total as a complete dataset. format=csv writes the rows to a file and returns the path. 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. JSON output is capped at 25000; format=csv asks for more by paginating, but the API only serves its own maximum — 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 | 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 |