Skip to main content
Glama

Compare CTR between two periods

compare_ctr_periods
Read-onlyIdempotent

Compares clicks, impressions and CTR of two equal-length, non-overlapping periods whose totals you provide, for example from Google Search Console. It splits the click change into an impressions component and a CTR component and checks the dates against known Search Console reporting issues, withholding impression-based figures for affected dates. Use it when you have totals for two periods; for a single what-if, project_clicks_at_ctr and impressions_needed_for_clicks fit better. The result does not establish why CTR changed; the warning NO_AI_CAUSATION is always included.

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": {
      "prior": "<prior>",
      "current": "<current>"
    },
    "name": "compare_ctr_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
priorYesTotals of the earlier period, for example from the Search Console Performance report.
sourceNoWhere the numbers come from: gsc_ui_export (Search Console Performance report or its export), bulk_export (BigQuery bulk export), api (Search Console API) or other. Some reporting issues apply to one source only.
currentYesTotals of the later period, for example from the Search Console Performance report.

Output Schema

NameRequiredDescriptionDefault
periodsYes
versionsYes
warningsYes
anomaliesYes
comparisonYes
decompositionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say this is a read-only, idempotent, non-destructive local computation; the description goes well beyond that by disclosing the decomposition into an impressions component and a CTR component, the cross-check of dates against known Search Console reporting issues, and the withholding of impression-based figures for affected dates. It also pre-announces the always-present NO_AI_CAUSATION warning and the interpretive limit ('does not establish why CTR changed'), which an agent needs in order to report results honestly.

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?

Four sentences, each carrying distinct information, with the core purpose front-loaded and the caveats trailing. It is dense but not padded; the only mild redundancy is restating the Google Search Console provenance already implied by the schema's period descriptions.

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 three-parameter, nested-schema tool with an output schema and full annotation coverage, the description supplies exactly the missing layer: the inter-parameter constraints, the decomposition semantics, the date-issue handling, and the standing caveat. Nothing an agent needs in order to call it correctly or interpret the result is absent.

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 both nested period objects and the source enum are already documented; the baseline would be 3. The description adds meaning the schema cannot express: that the periods must be equal-length and non-overlapping, and that the source choice matters because some reporting issues apply to one source only.

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 names a specific verb and resource ('Compares clicks, impressions and CTR of two ... periods') and pins the exact scope: equal-length, non-overlapping periods whose totals the caller supplies. It is clearly distinguishable from the sibling what-if tools, which operate on a single hypothetical rather than two supplied periods.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit use condition ('Use it when you have totals for two periods') and names the alternatives with the condition that selects them ('for a single what-if, project_clicks_at_ctr and impressions_needed_for_clicks fit better'). The preconditions (equal-length, non-overlapping) are stated up front rather than left to inference.

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.