Skip to main content
Glama

Search performance (clicks, impressions, CTR, position)

gsc_query_analytics
Read-only

Query 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

NameRequiredDescriptionDefault
siteYesSearch Console property: exact (sc-domain:example.com, https://example.com/) or just a domain/URL, matched automatically.
chartNoAlso return a PNG chart of the result as an image, for clients that can display images.
limitNoMax rows; output is capped at 25000. Check summary.truncated before treating the rows as complete.
rangeNoPreset period ending yesterday (your local calendar day). Default last_28_days. Ignored when start_date/end_date are given.
formatNoUse json. csv is not available on this server.json
filtersNoAll filters are ANDed. country uses ISO 3166-1 alpha-3 (e.g. POL), device: DESKTOP|MOBILE|TABLET.
end_dateNoYYYY-MM-DD (use together with start_date)
data_stateNoall = include fresh (not finalized) data; hourly_all for hour dimension.
dimensionsNo
start_dateNoYYYY-MM-DD (use together with end_date)
search_typeNoweb
aggregation_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / format / description
      Added value: +"Use json. csv is not available on this server."
    • changedInput schema / properties / limit / description
      Previous value: -"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."New value: +"Max rows; output is capped at 25000. Check summary.truncated before treating the rows as complete."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/openWorld/non-destructive, yet the description adds the platform's hard 25,000-row cap, the summary.truncated flag that signals incompleteness, and the automatic hourly_all coupling. These are non-obvious behaviors the schema and annotations do not reveal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with what is queried and capped by the truncation warning and hour rule. Minor redundancy with the schema's limit description, but no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description helpfully names summary.truncated and rows_total so the agent can interpret results, and it covers the destructive/limits profile. It does not explain the trap of overriding data_state manually or how csv/format behaves, but the essentials are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema carries most parameter meaning. The description still adds value by tying the hour dimension to data_state and reinforcing the limit cap; other params such as search_type, aggregation_type, and range are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (query) and resource (Google Search performance data) and enumerates the supported dimensions and filters, so an agent can tell this apart from the sibling report_* tools that analyze rather than fetch raw data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives conditional guidance inside the description (hour dimension requires data_state=hourly_all, set automatically when unset) and a data-integrity rule (never treat a shorter rows_total as complete), but it never says when to choose this tool over report_ctr_outliers or report_quick_wins. Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources