Skip to main content
Glama

Compare two days

compare_days
Read-onlyIdempotent

Measure one day against one specific earlier day (for example a Sunday against the Saturday before it): the change in every headline figure, and which channels, sources, landing pages, campaigns, referring URLs, countries and devices account for it.

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": {
      "date": "<date>",
      "other_date": "<other_date>"
    },
    "name": "compare_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe later day, YYYY-MM-DD, in the site's time zone.
siteNoWhich site: its domain (for example example.com) or its id from list_sites. Leave it out for the account's first site.
other_dateYesThe earlier day to compare it with, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent and closed-world behavior, so the safety profile is covered. The description adds value beyond them by disclosing the analytical payload — per-dimension attribution of the change, not just a single delta figure. It stops short of stating ordering, rounding, or what happens when the earlier day is missing data.

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?

A single front-loaded sentence with a parenthetical example; no filler or restatement of the title. The list of breakdown dimensions is long but each item is load-bearing information about what the result contains.

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 no output schema and only three parameters, the description carries the burden of telling the agent what comes back, and it does so by naming the dimensions attributed. It is adequate for a simple read-only comparison tool; only edge-case behavior (missing day, time zone handling) is unaddressed.

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 date, other_date and site are already documented, including which date is the later one. The description reinforces the directionality of the comparison ("earlier day") but adds no new syntax, format, defaulting, or site-selection nuance beyond the schema.

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 opens with a specific verb and resource: "Measure one day against one specific earlier day," and enumerates the output scope (headline figure deltas plus the channels, sources, landing pages, campaigns, referring URLs, countries and devices responsible). This clearly separates it from a single-day breakdown tool by the two-date comparison framing, though no sibling is 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?

Usage context is concrete and unambiguous: compare one day to "one specific earlier day," with a worked example (a Sunday against the Saturday before it). The "one specific earlier day" wording implicitly excludes range-over-range comparisons, but no alternative tool is named for cases where the agent wants a rolling or period comparison.

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