Skip to main content
Glama

Compare periods

compare_periods
Read-only

Compare a client's own numbers in two periods from Go Shift's stored daily history: spend, results, cost per result, ROAS, CPM, CTR, CPC, in total and per platform, and whether each difference is real (at least 15% with enough results or clicks in both periods) or too small or too thin to call. compare_to: previous (the same number of days before, default), last_year (same dates a year earlier), hijri (the same Hijri dates a year earlier: use it for Ramadan, the Eids and Hajj, which move about 11 days a year), or custom (compare_start, compare_end). Call it before you explain a drop or a rise, recommend a budget change, or plan for a season: the differences it returns are facts, and it lists the seasons that overlap each period as context, not as causes. If a period isn't stored it says so and gives no numbers: never estimate them. Free (no usage balance).

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": {
      "folder": "<folder>"
    },
    "name": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesClient folder name.
accountNoOne ad account of the client (ID or name). Default: all its accounts.
end_dateNoPeriod A end, YYYY-MM-DD. Default: yesterday.
compare_toNoDefault previous.
start_dateNoPeriod A start, YYYY-MM-DD. Default: the last 7 finished days.
compare_endNoOnly for compare_to=custom.
compare_startNoOnly for compare_to=custom.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description still adds real value beyond them: the 15%-significance threshold, the fact that seasons are listed as context and not causes, the 'never estimate' rule when a period isn't stored, and that the call is free with no usage balance. However, it doesn't cover latency, caching, or output volume, so it adds solid but not rich behavioral context.

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?

It is front-loaded with the purpose and metrics, then moves to modes and triggers, with zero filler sentences. The single dense paragraph is long and crams metrics, enums, thresholds, and caveats together, so scannability suffers compared with a short bulleted structure.

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 7-parameter read-only analytics tool with no output schema, the description explains what is returned (per-metric and per-platform comparisons, a real-vs-too-thin verdict, overlapping seasons) and what happens on missing data. The only gaps are output format and volume details, which matter little here.

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 coverage is 100%, so the baseline is 3, but the description goes beyond it by explaining what each compare_to enum value means, including the custom case's dependency on compare_start/compare_end and the default of 'previous'. It doesn't add similar depth for folder/account or the start/end defaults beyond what the schema already says.

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 leads with a specific verb and resource ('Compare a client's own numbers in two periods from Go Shift's stored daily history') and enumerates the metrics returned, so an agent can distinguish it immediately from reporting or budget siblings. Scope (stored daily history, client folder, optional account) is stated up front.

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 explicit trigger conditions: 'Call it before you explain a drop or a rise, recommend a budget change, or plan for a season.' It also disambiguates the compare_to modes and names the exact scenario that selects each one ('hijri ... use it for Ramadan, the Eids and Hajj').

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