Skip to main content
Glama
Search Console MCP

Search Console MCP

Compare two periods

compare_periods
Read-onlyIdempotent

Compare two periods row by row for queries, pages, countries, devices or search appearances to find top gainers, decliners, new and lost rows, and explain why traffic moved.

Instructions

Compares two periods row by row for one dimension (queries, pages, countries, devices or search appearances) and returns the biggest gainers and decliners plus what is new and what disappeared. Use it to explain why traffic moved.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the period in days, used when start_date is not given. Default 28.
limitNoMaximum number of rows in each list to return.
filtersNoFilters; a row must match all of them. Example: [{"dimension":"page","operator":"contains","expression":"/blog/"},{"dimension":"country","operator":"equals","expression":"usa"}]. Countries are ISO 3166-1 alpha-3 codes, devices are DESKTOP, MOBILE or TABLET, and the regex operators use RE2 syntax.
sort_byNoRank gainers and decliners by change in this metric.clicks
end_dateNoLast day of the period, YYYY-MM-DD in Pacific Time, or "today" / "yesterday". Defaults to the latest day Google has complete data for, usually 3 to 4 days ago. A later date includes days that are still incomplete.
site_urlNoSearch Console property, for example "sc-domain:example.com" or "https://www.example.com/". A bare domain or any page URL on the site also works. Optional when GSC_SITE_URL is set or the account has exactly one property.
dimensionNoWhat to compare.query
scan_rowsNoHow many rows to read from Search Console before analysing. Google returns rows sorted by clicks, so a larger scan reaches further into low-click, high-impression rows. Each 25,000 rows is one API call.
compare_toNoWhat to compare against: the same number of days immediately before (default), the same period 52 weeks earlier, or a custom range (set compare_start_date and compare_end_date).previous_period
start_dateNoFirst day of the period, YYYY-MM-DD in Pacific Time. Defaults to `days` before end_date.
search_typeNoWhich Google surface: web (default), image, video, news (the News tab), discover or googleNews.web
compare_end_dateNoLast day of the comparison period when compare_to is "custom".
compare_start_dateNoFirst day of the comparison period when compare_to is "custom".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly/false-destructive/idempotent/open-world, so safety is covered. The description adds the return structure (gainers, decliners, new, disappeared) which is genuinely useful given there is no output schema, but it says nothing about cost (scan_rows implies multiple API calls), partial-data handling for recent dates, or how 'new'/'disappeared' are thresholded.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences with no filler: the mechanism and its output come first, the intended use second. Nothing is redundant and the highest-value information is front-loaded.

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 13-parameter tool with zero required params, full schema coverage, and no output schema, the description supplies the missing piece an agent needs: what the response conceptually contains and the analysis it supports. It is thin on cost/latency implications of scan_rows and default comparison behavior, but the per-parameter schema carries those details.

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 the baseline is 3. The description restates the dimension options ('queries, pages, countries, devices or search appearances'), which merely echoes the schema enum and adds no meaning about compare_to modes, sort_by ranking, or filter semantics beyond what is already documented per-parameter.

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?

Names a specific verb ('compares two periods row by row') plus the scope constraint ('one dimension', with the five allowed dimensions enumerated) and states the output shape: biggest gainers, decliners, new and disappeared rows. That outcome profile is distinctive against siblings like search_analytics or get_performance_overview, which do not describe period-over-period row diffing.

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?

Offers one clear usage cue ('Use it to explain why traffic moved'), which implies the diagnostic scenario. However it never names an alternative (e.g. detect_traffic_anomalies or find_declining_pages) or states when this tool is the wrong choice, so routing 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.