Skip to main content
Glama
Google Search Console Audit MCP

Google Search Console Audit MCP

gsc_compare_periods

Read-onlyIdempotent

Join two periods on one dimension and rank the rows by click delta.

Instructions

Join two periods on one dimension and rank the rows by click delta.

Answers "what changed" without the model diffing two tables by hand. Rows present in only one period are kept, with zeros on the missing side; the biggest movers in both directions are returned, worst first. The meta counts how many rows gained and how many lost clicks. When a side was read only up to its row limit, the meta flags it: a row missing there may only be below the cut.

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

Input Schema

NameRequiredDescriptionDefault
daysNoRolling window length ending today.
typeNoweb, image, video, news, discover or googleNews.web
periodNoNamed range: last_7_days, last_28_days, last_3_months, last_month, this_month, last_16_months.
compareNoBaseline: `previous` (the equally long period before) or `year` (the same period a year earlier; whole months map to the same months).previous
date_toNoEnd date YYYY-MM-DD. Defaults to today.
filtersNoNarrow the data first: list of {dimension, operator, expression}, e.g. {"dimension":"page","operator":"contains","expression":"/blog/"}. Dimensions: query, page, country, device, searchAppearance. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex. All must match.
no_cacheNoBypass the response cache for this call.
site_urlYes`sc-domain:example.com` for a domain property, or `https://example.com/` with the trailing slash for a URL-prefix property. Call gsc_sites if unsure.
date_fromNoStart date YYYY-MM-DD. Overrides period and days.
dimensionNoOne of query, page, country, device, searchAppearance.query
row_limitNoRows returned, capped at 1000.
prev_date_toNoBaseline end YYYY-MM-DD.
prev_date_fromNoBaseline start YYYY-MM-DD. Defaults to the equally long period ending the day before date_from.
min_impressionsNoDrop rows below this impression count in both periods.
response_formatNo`tsv` (default, compact) or `json`.tsv

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.0.0
    • addedInput schema / properties / compare
      Added value: +{
      +  "default": "previous",
      +  "description": "Baseline: `previous` (the equally long period before) or `year` (the same period a year earlier; whole months map to the same months).",
      +  "title": "Compare",
      +  "type": "string"
      +}
    • addedInput schema / properties / filters
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Narrow the data first: list of {dimension, operator, expression}, e.g. {\"dimension\":\"page\",\"operator\":\"contains\",\"expression\":\"/blog/\"}. Dimensions: query, page, country, device, searchAppearance. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex. All must match.",
      +  "title": "Filters"
      +}
    • changedInput schema / properties / row_limit / description
      Previous value: -"Rows returned. Default 100, capped at 1000."New value: +"Rows returned, capped at 1000."
    • addedInput schema / properties / type
      Added value: +{
      +  "default": "web",
      +  "description": "web, image, video, news, discover or googleNews.",
      +  "title": "Type",
      +  "type": "string"
      +}
  2. Addedv3.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the description is free to spend its words on genuinely additive behavior: full-outer-join retention with zeros on the missing side, ordering worst-first, and the meta flagging when a side was truncated at row_limit. That truncation caveat is the kind of interpretation risk an agent could not derive from annotations. It does not cover cache staleness or whether the flagged meta changes the row set.

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?

Front-loaded with the core operation, then the rationale, then the row-inclusion semantics, then the truncation caveat — a sensible order with almost no filler. The sentence about meta gained/lost counts is borderline since an output schema exists, but it is short and aids interpretation.

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 15-parameter comparison tool with an output schema, the description covers the join semantics, ordering, and the row-limit truncation hazard that an agent must know to avoid over-reading the result. Remaining gaps — precedence between `compare` and explicit baseline dates — are moderate but not fatal.

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 coverage is 100% across 15 parameters, so the schema already documents each field well. The description adds nothing about the one real ambiguity: how `compare` (previous/year) interacts with explicit `prev_date_from`/`prev_date_to`, or how `date_from` overrides `period`/`days`. Baseline 3 applies.

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 opening sentence names a specific operation — joining two periods on one dimension and ranking by click delta — which is unmistakably different from the single-window siblings like gsc_query or gsc_performance_overview. No sibling is named explicitly, so the differentiation is by operation semantics rather than routing language.

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?

"Answers 'what changed'" implies the use case, but the description never states when to pick this over querying two periods separately, or when gsc_traffic_drops / gsc_content_decay would be the better sibling. Usage is inferable rather than prescribed.

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