Skip to main content
Glama
Analytics MCP Server

Analytics MCP Server

by piyusht007

compare_periods

Read-onlyIdempotent

Compares a KPI across a baseline period and a comparison period, then states whether the change is an improvement based on the KPI’s good direction.

Instructions

Compare a KPI between a baseline period_a and a comparison period_b. Periods are 'YYYY-MM', 'YYYY-MM-DD/YYYY-MM-DD' or a single day. Says whether the change is an improvement given the KPI's good direction.

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": {
      "kpi": "<kpi>",
      "period_a": "<period_a>",
      "period_b": "<period_b>"
    },
    "name": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
kpiYes
filtersNo
period_aYes
period_bYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior — it discloses that the result includes a directional judgement ('whether the change is an improvement given the KPI's good direction') — but says nothing about invalid period formats, empty periods, or how missing data is handled. Useful addition, incomplete disclosure.

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?

Three short sentences with zero filler: the core action is front-loaded, the format syntax follows, and the output semantics close it out. No restatement of the title and no redundant clauses.

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?

The tool is a moderate four-parameter read, an output schema exists so return shape need not be explained, and annotations cover safety. What an agent actually needs beyond structured data — period syntax and the meaning of the directional verdict — is present, with only the filters parameter as a residual gap.

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 0%, so the description must carry the parameter burden. It does well for three of four: it defines period_a as baseline, period_b as comparison, and supplies concrete accepted formats ('YYYY-MM', 'YYYY-MM-DD/YYYY-MM-DD', or a single day) that the schema entirely lacks. However the `filters` parameter is never mentioned, leaving one of four parameters undocumented in both schema and description, so the compensation is partial.

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?

States a specific verb and resource: 'Compare a KPI between a baseline period_a and a comparison period_b', naming the actual argument roles so the agent knows the comparative framing. It does not name a sibling such as explain_change or query_kpi, so differentiation is inferred rather than explicit, which keeps it at 4.

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?

The description makes the usage context clear (comparing two periods for one KPI) but gives no explicit when-to-use versus when-not guidance, no mention of alternatives like explain_change or query_kpi, and no prerequisites. Usage is implied by the verb and argument structure rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.