Skip to main content
Glama

SearchCon

Compare two periods

compare_periods
Read-only

Use this to explain traffic changes: compares a period with the previous period or the same period last year and returns total changes plus the biggest gaining and losing queries/pages.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the range when start_date is omitted. Default 28.
limitNoGainers and losers to return each. Default 15.
deviceNo
countryNoISO 3166-1 alpha-3 country code, lowercase (e.g. 'usa', 'gbr', 'nga').
end_dateNoYYYY-MM-DD. Omit for the latest complete day (Search Console lags ~3 days).
site_urlYesSearch Console property exactly as list_sites returns it, e.g. 'sc-domain:example.com' or 'https://www.example.com/'. A bare domain also works.
dimensionNoWhat to break the change down by. Default 'query'.
compare_toNoDefault 'previous_period' (the same number of days just before).
start_dateNoYYYY-MM-DD. Omit to use the last `days` days.
search_typeNoGoogle surface. Default 'web'.
page_containsNoOnly URLs containing this text, e.g. '/blog/'.
query_containsNoOnly queries containing this text.
query_not_containsNoExclude queries containing this text (e.g. the brand name).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds the output shape (totals plus top movers), which is real context, but says nothing about the ~3-day data lag, comparison-basis behavior, or how ties/zeros are handled. An output schema exists, so return-value detail is partly redundant rather than load-bearing.

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?

One front-loaded sentence that opens with the use case and ends with the return shape; no filler or repetition. It is slightly run-on, but every clause carries information.

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?

With 13 parameters but 92% schema coverage, an output schema, and full annotations, the description's job is mainly to frame the tool's intent, which it does. A brief note on the comparison basis (equal-length windows, data lag) would close the remaining gap for a fairly complex analytical tool.

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 92%, so the schema already explains days, compare_to, dimension, dates, filters and defaults. The description only echoes compare_to ('previous period or the same period last year') and the query/page breakdown at a high level, adding little beyond structured fields.

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 uses a specific verb and resource ('compares a period with the previous period or the same period last year') and states what comes back: total changes plus biggest gaining and losing queries/pages. That is enough to separate it from a plain performance-report sibling, but it never names an alternative tool, so the differentiation is inferred rather than explicit.

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?

'Use this to explain traffic changes' gives a clear situational trigger — diagnosing movement rather than pulling raw metrics. It stops short of stating when not to use it (e.g. for absolute reporting) or naming the sibling that should be used instead.

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