Skip to main content
Glama

Google Ads & Meta Ads

Search Console: Compare Periods

gsc_compare_periods
Read-onlyIdempotent

Compare organic Google Search performance of one Search Console property between two date windows: totals (clicks, impressions, CTR, position) for both with the change, and — when dimensions are given — the rows that gained and lost the most clicks (queries that fell, pages that grew, countries that shifted), each with both windows' figures and the delta. The previous window defaults to the same length immediately before the current one; pass previous_start_date and previous_end_date for year-over-year. Rows are ordered by the size of the click change; row_limit caps how many come back. Read-only.

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_compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNoRow filters, all ANDed: each {dimension, operator, expression}. Examples: one landing page {"dimension":"page","operator":"equals","expression":"https://example.com/pricing"}; non-brand queries {"dimension":"query","operator":"notContains","expression":"acme"}; one country {"dimension":"country","operator":"equals","expression":"usa"}; mobile only {"dimension":"device","operator":"equals","expression":"MOBILE"}; a URL pattern {"dimension":"page","operator":"includingRegex","expression":"/blog/.*"}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex (RE2 syntax). A filtered dimension need not be a grouping dimension.
end_dateNoLast day, YYYY-MM-DD or relative. The last 2-3 days are partial unless data_state is all. Default: 3 days ago.
site_urlNoThe Search Console property: sc-domain:example.com (a domain property) or https://example.com/ (a URL-prefix property), as gsc_list_sites lists it. A bare domain is matched against both forms. May be omitted when the connected login reaches exactly one property.
row_limitNoRows returned, 1-5000 (default 100), the largest click changes first.
dimensionsNoBreak the comparison down by these dimensions (query, page, country, device, searchAppearance). Omit for totals only.
start_dateNoFirst day, YYYY-MM-DD or relative (yesterday, 7daysAgo, 28daysAgo). Dates are Pacific time, as Search Console counts them. Default: 28 days ending 3 days ago, the freshest window whose data is final.
search_typeNoWhich search surface: web (default), image, video, news, discover, googleNews. Discover and Google News allow no query dimension.
previous_end_dateNoLast day of the earlier window.
previous_start_dateNoFirst day of the earlier window. Default: the window of the same length ending the day before start_date.

Output Schema

NameRequiredDescriptionDefault
rowsYesPer-row comparison, largest absolute click change first.
siteYesThe property read, as Google spells it.
totalsYesBoth windows' totals and the change.
endDateYesLast day of the window, YYYY-MM-DD.
startDateYesFirst day of the window, YYYY-MM-DD.
dimensionsYesDimension names, in row key order.
returnedRowsYesRows in `rows`.
rowsComparedYesRows in either window, before row_limit.
previousEndDateYesLast day of the earlier window.
previousStartDateYesFirst day of the earlier window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the closing 'Read-only' is largely a restatement. The description does add real behavior beyond annotations — result rows ordered by magnitude of click change and capped by row_limit — but it does not discuss cost, latency, or what happens with sparse/zero-data windows, leaving it at a solid-but-not-rich 3.

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 purpose and then the outputs, defaults, ordering and limit — a logical order with no filler sentences. The first sentence is long and carries several clauses, and the trailing 'Read-only.' is redundant against annotations, which keeps it from a 5.

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 nine-parameter, zero-required tool with an output schema, everything an agent needs to call it correctly is present: window defaults and relative-date behavior, the previous-window rule, dimensions semantics, ordering and row caps, and read-only status. The output schema covers return shape, so the description's job is fully discharged.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description still adds framing value by explaining that the previous window is auto-derived from start_date and that dimensions control totals-versus-row breakdown, which is more than a restatement of individual field docs. It contributes meaningfully without duplicating every field.

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 verb and resource — comparing organic Search Console performance of one property across two date windows — and enumerates what comes back: totals for both windows plus the rows that gained or lost the most clicks. An agent can distinguish this from gsc_query_search_analytics because the two-window comparison and delta output are named explicitly.

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 clear operating context: the previous window defaults to the equal-length window immediately before, and passing previous_start_date/previous_end_date is described as the year-over-year path. It also explains that omitting dimensions yields totals only. It stops short of stating when to prefer this over the single-window query sibling, so it is a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources