Skip to main content
Glama
onlymoein

Google Search Console MCP Server

by onlymoein

Query search analytics

query_search_analytics
Read-only

Fetch Google Search Console performance metrics—clicks, impressions, CTR, and average position—grouped by dimensions and filtered, with request validation before querying Google.

Instructions

Clicks, impressions, CTR and average position from the Performance report, grouped by dimensions and filtered. Rows are sorted by clicks. Invalid combinations are rejected with an explanation before Google is called. For Discover, Images, video, Google News or the News tab, the matching query_*_analytics tool offers only what that surface supports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNoFilters, combined with AND.
end_dateNoLast day (inclusive), YYYY-MM-DD in Pacific Time. Defaults to today.
site_urlYesThe property, as listed by list_sites: 'sc-domain:example.com' for a domain property or 'https://www.example.com/' for a URL-prefix property. A bare domain such as 'example.com', or any URL on the site, is resolved to the property that contains it.
row_limitNoRows to return (1-25,000).
start_rowNoZero-based row offset, for paging.
data_stateNo'all' includes fresh data that may still change and matches the Search Console UI; 'final' is finalized data only (lags 2-3 days).all
dimensionsNoGroup rows by these, in order. Omit for ['query']; pass [] for property totals. searchAppearance must be the only dimension (see list_search_appearances). Discover and Google News have no query dimension.
start_dateNoFirst day, YYYY-MM-DD in Pacific Time. Defaults to 28 days ago.
search_typeNoweb, image, video, news (the News tab), discover or googleNews.web
aggregation_typeNo'auto' is right almost always. byProperty cannot be used with page grouping or filters, nor with Discover or Google News.auto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYesOne object per row: dimension values by name, then clicks, impressions, ctr (0-1) and position (absent for Discover and Google News).
notesNo
requestYesThe exact request body sent to Google.
end_dateYes
site_urlYes
row_countYes
data_stateYes
dimensionsYes
start_dateYes
search_typeYes
next_start_rowNoPass as start_row to fetch the next page, if there is one.
aggregation_typeNo
first_incomplete_dateNo
first_incomplete_hourNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses two genuinely useful traits: output ordering ('rows are sorted by clicks') and pre-flight validation ('invalid combinations are rejected with an explanation before Google is called'), which tells the agent bad calls fail cheaply. It says nothing about quotas or rate limits, but the safety profile is otherwise covered by annotations.

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 the call returns, and every sentence carries content (metrics, sort order, validation behaviour, sibling routing). The closing sentence about 'the matching query_*_analytics tool' is slightly abstract and could name the tools more directly, but there is 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 an output schema present and 100% schema coverage, the description needs only to frame purpose and edge behaviour, which it does (sorting, rejected combinations, surface routing). The remaining gap is that dimension/aggregation constraints are left entirely to the schema rather than reinforced, which is acceptable but leaves the description thin for a ten-parameter tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all ten parameters in detail, including dimension combinations and search_type constraints. The description only summarises 'grouped by dimensions and filtered' and the default sort, so it adds little beyond the structured fields; baseline 3 applies.

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?

The first sentence names the exact resource (the Performance report) and the metrics it returns (clicks, impressions, CTR, average position), plus the grouping/filtering operation. The final sentence routes the agent away from the query_*_analytics siblings for Discover/Images/video/News surfaces, so an agent can tell which tool applies without opening a schema.

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

Usage Guidelines4/5

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

It explicitly states when to pick a sibling instead: for Discover, Images, video, Google News or the News tab, use the matching query_*_analytics tool. It gives no guidance against the other query variants (query_hourly_analytics, compare_periods, explain_change, query_search_appearance), so the routing is clear but not exhaustive.

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