Skip to main content
Glama

Compare Analytics Periods

gsc_period_comparison
Read-only

Compare Search Console performance across two periods to reveal per-query changes in clicks, impressions, CTR, and position, sorted by absolute click deltas.

Instructions

Period-over-period comparison of Search Analytics: runs the same query for the given window and a baseline window — by default the immediately preceding window of equal length, or baselineStartDate/baselineEndDate (e.g. the same window last year) — then reports per-key deltas (current minus baseline: clicks, impressions, CTR, position) sorted by absolute click change. Best with query / page / device / country dimensions — not with date. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gsc_period_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSearch type: web (default), image, video, news, discover, googleNews.
endDateNoYYYY-MM-DD current-window end (with startDate). Overrides dateRange.
filtersNoFilters applied to both periods, all ANDed.
siteUrlNoProperty like https://www.example.com/ or sc-domain:example.com. Omit if the account has exactly one property.
rowLimitNoRows fetched per period (1-25000, default 2000).
dataStateNoall (fresher, partial) or final (default).
dateRangeNoPreset applied to the current window (previous window is derived); default LAST_30_DAYS.
startDateNoYYYY-MM-DD current-window start (with endDate). Overrides dateRange.
dimensionsNoMatching dimensions across periods: query, page, device, country, searchAppearance. Default ['query'].
baselineEndDateNoYYYY-MM-DD baseline end (with baselineStartDate).
baselineStartDateNoYYYY-MM-DD baseline start (with baselineEndDate), e.g. the same window last year. Default: the window right before the current one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=false, so the safety profile is covered; the description adds genuinely non-obvious behavior such as the derived default baseline window, that filters apply to both periods ANDed, and that results are ranked by absolute click change. It does not cover volume/rate limits or what happens on empty or partial data (dataState=all vs final is only in the schema).

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?

The core comparison semantics and baseline derivation are front-loaded in the first sentence, with supporting enumerations grouped after. It is dense but mostly earns its space; the main waste is the aggregation line for a parameter that isn't in the schema and partial duplication of dimension/type lists already in the schema.

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 an 11-parameter, read-only tool with no output schema, the description covers the hard parts: how the baseline is chosen, which dimensions make sense, that filters apply to both windows, and what the delta rows contain and how they're ordered. The notable gap is the phantom aggregation option, which an agent might try to pass and fail on, plus no note on behavior with sparse or partial data.

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%, so the baseline is 3, and the description does add real value by enumerating filter operators (contains, equals, notContains, notEquals, includingRegex/excludingRegex RE2) that the schema leaves undocumented, plus 'hour' which is absent from the schema's dimensions description. However, it also advertises an "Aggregation: auto / byPage / byProperty" parameter that does not exist in the input schema, which muddies rather than clarifies parameter meaning.

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 description opens with a precise verb+resource: "Period-over-period comparison of Search Analytics," and immediately defines the mechanism (same query run over a current and a baseline window). It also states the output shape (per-key deltas for clicks, impressions, CTR, position, sorted by absolute click change), which cleanly separates it from a plain single-window analytics query.

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 gives a positive usage condition and an explicit exclusion ("Best with query / page / device / country dimensions — not with date"), plus default-baseline behavior versus supplying baselineStartDate/baselineEndDate. What's missing is an explicit pointer to a sibling (e.g. gsc_search_analytics) for the single-period case, so the routing to alternatives 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.