Skip to main content
Glama

Compare Two Search Analytics Periods

gsc_compare_periods
Read-onlyIdempotent

Compare two Google Search Console date ranges to see property-wide metric changes and identify top dimension winners and losers.

Instructions

Compares two date ranges (e.g., last 28 or 90 days vs. the previous period) to identify true property-wide totals as well as top dimension winners and losers.

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": {
      "siteUrl": "<siteUrl>"
    },
    "name": "gsc_compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of days per period when explicit dates are omitted (e.g., 28 or 90).
limitNoNumber of winners and losers to return.
sortByNoMetric delta used to rank winners and losers.clicksDiff
filtersNoOptional AND-combined dimension filters.
siteUrlYesProperty URL, e.g. "sc-domain:example.com" or "https://example.com/".
dimensionNoDimension to compare (query, page, country, or device).query
fetchLimitNoMax dimension rows fetched per period for winner/loser comparison (default: 1000).
searchTypeNoSearch type (default: web).web
currentEndDateNoOptional explicit current end date (YYYY-MM-DD).
minImpressionsNoMinimum combined impressions (current + previous) required for winners/losers (filters single-impression noise).
previousEndDateNoOptional explicit previous end date (YYYY-MM-DD).
currentStartDateNoOptional explicit current start date (YYYY-MM-DD).
previousStartDateNoOptional explicit previous start date (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds the useful behavioral detail that results are period-over-period deltas with property-wide totals and ranked winners/losers. It does not clarify how explicit dates interact with the days parameter or what the response shape looks like, leaving gaps beyond the annotations.

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?

A single, front-loaded sentence with no filler or repetition. It is efficient, though its brevity leaves some ambiguity that a slightly longer treatment could have resolved.

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

Completeness3/5

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

For a 13-parameter tool with no output schema, the description is thin: it never explains the returned comparison structure, how the two periods are derived when explicit dates are supplied, or how filters constrain the comparison. Annotations cover the read-only profile, but the description should carry more weight given the tool's complexity.

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 description coverage is 100%, so every parameter is already documented in the schema and the baseline is 3. The description's phrases about 'last 28 or 90 days' and 'top dimension winners and losers' loosely map to days, limit and sortBy but add no syntax or format detail beyond the schema's own descriptions.

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 names a specific verb and resource — comparing two date ranges of Search Analytics data — and specifies the outputs it produces (property-wide totals plus top dimension winners and losers). It is clear what the tool does, but it never positions itself against the sibling gsc_search_analytics, so an agent must infer the distinction from the name alone.

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 mention of 'last 28 or 90 days vs. the previous period' and 'winners and losers' implies the comparison use case, giving a reasonable hint about when to reach for it. However, there is no explicit statement of when to prefer this over gsc_search_analytics, nor any exclusion or prerequisite, so guidance remains implicit.

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