Skip to main content
Glama
Google Search Console MCP Server

Google Search Console MCP Server

Compare search performance

compare_performance
Read-only

Compares two periods or years of Google Search Console data, returning totals, changes, and top queries or pages with previous values to spot winners, losers, and brand trends.

Instructions

Compares a period with the one before it (or the year before).

Returns totals for both periods with the change, and, with a dimension, the top rows (e.g. top queries or pages) with their previous values. Use it for "top queries this month vs last month", winners and losers, and brand vs non-brand trends.

Args: site_url: The property, exactly as list_sites returns it. dimension: Optional 'query', 'page', 'country', 'device' or 'searchAppearance'. Leave out for totals only. start_date: Start of the current period. Default '30daysAgo'. end_date: End of the current period. Default '3daysAgo'. comparison: 'previous_period' (same length, immediately before) or 'previous_year' (same dates a year earlier). search_type: 'web' (default), 'image', 'video', 'news', 'discover' or 'googleNews'. filters: Same as query_search_analytics; applied to both periods. brand_terms: Optional brand terms, e.g. ['acme', 'acme shoes']. Adds brand and non-brand totals (queries containing any term, case insensitive) for both periods. sort_by: 'clicks', 'impressions', 'ctr', 'position', 'clicks_change', 'impressions_change' or 'position_change' (current period). descending: Sort order. Use False with 'clicks_change' for the biggest losers. row_limit: Rows to return after sorting. Default 50. fetch_limit: Rows fetched per period before joining, up to 25,000. Rows outside it count as zero, so raise it for long-tail work.

Note: changes in position are current minus previous, so negative means better. Brand plus non-brand totals are lower than the overall total because Google leaves anonymised queries out of query filters; the gap is reported as 'anonymised_or_unmatched'.

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": "compare_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNo
sort_byNoclicks
end_dateNo3daysAgo
site_urlYes
dimensionNo
row_limitNo
comparisonNoprevious_period
descendingNo
start_dateNo30daysAgo
brand_termsNo
fetch_limitNo
search_typeNoweb

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description still adds real behavioral context, notably that fetch_limit caps rows at 25,000 and rows beyond it count as zero, that position change is current-minus-previous (negative is better), and that brand + non-brand totals fall short of the overall total due to anonymised queries reported as 'anonymised_or_unmatched'. That is useful, though it stops short of describing pagination or the exact response shape.

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 and use cases are front-loaded, followed by a scannable Args block and a short note. The Args list is long but nearly every line adds information an agent needs, so it does not read as padding; only minor tightening is possible.

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

Completeness5/5

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

For a 12-parameter tool with no output schema, the definition explains both inputs and the shape of the result (totals for both periods with change, top rows with previous values, the anonymised_or_unmatched gap). Nothing essential to correct invocation appears missing.

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 coverage is 0%, so the description carries the full burden and does: it enumerates accepted values for dimension and search_type, explains comparison modes, documents defaults for dates, row_limit and fetch_limit, and clarifies the non-obvious descending=False + clicks_change 'losers' interaction. This is meaningfully more than the schema provides.

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 comparison operation over a period vs prior period/year, and the dimension-mode output (top rows with previous values). It is clearly distinguishable from query_search_analytics, which it references only as a filters precedent.

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?

Gives concrete use cases ('top queries this month vs last month', winners/losers, brand vs non-brand trends) and notes when to omit dimension for totals only. It stops short of an explicit 'use the other tool instead when X' exclusion, but the context is clear enough to select the tool.

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