Skip to main content
Glama
Google Search Console MCP Server

Google Search Console MCP Server

Query search analytics

query_search_analytics
Read-only

Retrieve clicks, impressions, CTR, and position from Google Search Console, broken down by query, page, country, device, or date with filters and paging.

Instructions

Queries Search Console performance: clicks, impressions, CTR, position.

Rows come back sorted by clicks. With no dimensions you get one row of totals. Data is usually two to three days behind; the most recent days are partial unless data_state is 'all'.

Args: site_url: The property, exactly as list_sites returns it. start_date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'. end_date: Same formats. Defaults to '3daysAgo' (complete data). dimensions: Any of 'query', 'page', 'country', 'device', 'date', 'searchAppearance' (and 'hour' with data_state 'hourly_all'). Countries are ISO 3166-1 alpha-3 codes in lower case (e.g. 'gbr'); devices are DESKTOP, MOBILE or TABLET. search_type: 'web' (default), 'image', 'video', 'news', 'discover' or 'googleNews'. Discover and Google News don't support the query dimension. filters: Filters combined with AND, each {'dimension': 'query', 'operator': 'contains', 'expression': 'shoes'}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex (RE2 syntax; prefix '(?i)' for case-insensitive). aggregation_type: 'auto', 'byPage' or 'byProperty'. Totals by page count a URL once per result; by property count the site once. data_state: 'final' (complete days only), 'all' (includes fresh, partial data) or 'hourly_all'. row_limit: Rows to return, 1 to 25,000. Default 1,000. start_row: Zero-based offset for paging; use next_start_row from the previous call.

Note: queries Google treats as anonymised are left out of rows that have the query dimension, so those rows add up to less than the totals.

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_url": "<site_url>"
    },
    "name": "query_search_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNo
end_dateNo3daysAgo
site_urlYes
row_limitNo
start_rowNo
data_stateNofinal
dimensionsNo
start_dateNo30daysAgo
search_typeNoweb
aggregation_typeNoauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description adds substantial behavior beyond them: data lags two to three days, recent days are partial unless data_state='all', rows are sorted by clicks, an empty dimension list yields one totals row, and anonymized queres are dropped from query-dimension rows so they sum to less than totals. It also explains pagination semantics via next_start_row and the aggregation counting difference, which are exactly the surprises an agent would otherwise hit.

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

Conciseness5/5

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

The lead sentences front-load the purpose and the two behavioral gotchas (sort order, totals row, data lag) before the argument list, and the Args block is one dense line per parameter with no filler. Every sentence, including the closing anonymized-query note, carries information an agent needs to interpret results correctly.

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 10-parameter tool with no output schema and no schema descriptions, the definition is unusually complete: it covers every parameter, the return ordering, the totals case, pagination, and a known data-completeness caveat. The only residual gap is that it doesn't state the response envelope or how next_start_row is surfaced, though the behavior around it is described.

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 10 parameters, so the description carries the full burden and does: it gives date formats ('today', 'yesterday', 'NdaysAgo'), the allowed dimension values with an 'hour' caveat, ISO 3166-1 alpha-3 lower-case country codes, device enums, search_type values, filter object shape with all six operators and RE2 syntax notes, row_limit bounds, and start_row offset semantics. This is meaningfully more than the schema's bare types and defaults.

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?

The description opens with a specific verb and resource ("Queries Search Console performance") and immediately names the returned metrics (clicks, impressions, CTR, position), so the agent knows exactly what the tool produces. It falls short of a 5 because it never distinguishes itself from similarly-named siblings such as get_queries_for_page or compare_performance, which an agent could plausibly pick instead.

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?

Usage context is clear: defaults are stated (start_date 30daysAgo, end_date 3daysAgo for complete data, row_limit 1000, data_state 'final'), and a real constraint is given (Discover and Google News don't support the query dimension). There is no explicit "use this instead of X" routing, and no statement of when a single-site query is the wrong choice, so it stops at clear context rather than full guidance.

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