Skip to main content
Glama

Compare two periods

compare_periods
Read-only

Compare summary metrics between a baseline period and a later one to evaluate the impact of a training block. Get both periods' summaries, the delta, and sample sizes.

Instructions

Compare every summary metric between a baseline period and a later one.

Useful for "did the training block change anything" questions. Returns both periods' summaries and the delta, with sample sizes.

Args: baseline_start: ISO 8601 start of the baseline period. baseline_end: ISO 8601 end of the baseline period. comparison_start: ISO 8601 start of the comparison period. comparison_end: ISO 8601 end of the comparison period.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseline_endYes
baseline_startYes
comparison_endYes
comparison_startYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare this as a safe, read-only, non-destructive operation. The description adds useful behavioral context by revealing the output shape: 'both periods' summaries and the delta, with sample sizes.' This goes beyond annotations without contradicting them.

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?

The description is compact and front-loaded: a clear action statement, a usage hint, a return-value summary, and then parameter definitions. Every sentence earns its place and the Args section is cleanly formatted.

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?

Given the tool's simplicity, the presence of an output schema, and strong annotations, the description covers what the tool does, when to use it, what it returns, and all parameters. No critical information is missing.

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 descriptions are absent (0% coverage), so the description's Args list is essential. It explains each parameter's role (start/end of baseline/comparison) and requires ISO 8601 format, providing meaningful guidance beyond property titles alone.

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 clearly states the tool's purpose: comparing every summary metric between a baseline and a later period. This specific verb+resource combination distinguishes it from siblings like summarize_period (single period) and metric_trend (trend analysis).

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?

Provides clear usage context with the example 'did the training block change anything' questions. However, it does not explicitly mention when not to use it or name alternative tools, so it lacks explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kurok/whoopmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server