Skip to main content
Glama
mamrrez

Google Search Console MCP Server

query_search_analytics

Read-onlyIdempotent

Query Google Search Console Search Analytics rows by dimensions, filters, dates, and search type to analyze clicks, impressions, CTR, and position.

Instructions

Search Analytics rows with any dimensions and filters. The general-purpose query tool.

Args: site_url: property (sc-domain:example.com, https://example.com/ or just example.com). days / start_date / end_date: range; explicit dates (YYYY-MM-DD) win over days. dimensions: comma list of query, page, country, device, date, searchAppearance, hour. search_type: web, image, video, news, discover, googleNews. query_filter: a term in ANY language; case-insensitive, and matches its common spellings (ی/ي, ک/ك, half-space, vowel marks, Persian/Arabic digits, е/ё). query_regex / query_regex_exclude: raw RE2 regex (see build_query_regex for a safe one). page_filter: substring of the page URL; page_exact: the exact URL; page_filter_exclude: substring to leave out; page_regex: RE2 regex on the URL. country: ISO-3166-1 alpha-3 (IRN, USA…); device: DESKTOP, MOBILE, TABLET. data_state: all (matches the UI, default) or final. group_variants: merge spelling variants of the same query (only when dimensions=query). level: standard or loose grouping (loose also merges spacing and accent differences). sort_by: clicks, impressions, ctr, position — applied to the fetched rows; Google itself always returns the top rows by clicks. limit: rows shown. max_rows: rows fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
levelNostandard
limitNo
deviceNo
countryNo
sort_byNoclicks
end_dateNo
max_rowsNo
site_urlYes
data_stateNo
dimensionsNoquery
page_exactNo
page_regexNo
start_dateNo
page_filterNo
query_regexNo
search_typeNoweb
query_filterNo
group_variantsNo
search_appearanceNo
page_filter_excludeNo
query_regex_excludeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is free. Beyond that the description discloses real behavioral nuance: sort_by is applied to the fetched rows while Google always returns top rows by clicks, data_state=all mirrors the UI, and grouping behavior differs by level. It does not discuss permissions or result size limits, but the added semantics are substantive.

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?

Purpose is front-loaded in two short sentences, then an argument list where nearly every line adds non-obvious semantics (spelling variants, sort vs. Google ordering, grouping). Dense, but little waste; the format is scannable rather than padded.

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?

For a 22-parameter tool with an output schema and rich annotations, the description supplies the parameter semantics and ordering caveats an agent needs. Remaining gaps (search_appearance filter, any limits on max_rows) are small relative to what is covered.

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

Parameters5/5

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

Schema description coverage is 0% across 22 parameters, so the description carries the full documentation burden and mostly succeeds: it explains site_url formats, date-vs-days precedence, allowed dimension and search_type values, the multilingual/spelling-variant matching of query_filter, regex vs substring filters, ISO country codes, and the limit/max_rows split. Only search_appearance is undocumented as a filter, which is a minor omission against an otherwise thorough mapping.

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

Purpose4/5

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

States a concrete verb+resource (query Search Analytics rows) and positions itself as 'the general-purpose query tool', which implicitly contrasts with the many specialized siblings (top_terms, queries_for_page, striking_distance). It stops short of naming a sibling it is chosen over, so an agent must still infer the boundary.

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?

'The general-purpose query tool' implies it is the fallback when no specialized sibling fits, which is usable guidance. But there is no explicit when-to-use/when-not statement and no named alternative, so the routing decision is left to inference.

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