Skip to main content
Glama

Compare periods

compare_periods
Read-only

Compare two date ranges across recovery, HRV, sleep, strain, and more. See per-metric changes, percent change, and whether each metric improved or declined.

Instructions

Compare two date ranges across recovery, HRV, resting heart rate, sleep, strain, calories, and workout count - with per-metric change, percent change, and an improved/declined/unchanged assessment. Period A is the baseline; period B is compared against it.

All four arguments accept: today | yesterday | N days ago | last week |
this month | YYYY-MM-DD | ISO datetime. Example: compare "last month" to
"this month" by using the same expression for a period's start and end.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
period_a_startYes
period_a_endYes
period_b_startYes
period_b_endYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds behavioral context beyond the readOnlyHint annotation by detailing the output (per-metric change, percent change, improved/declined/unchanged assessment). No contradiction with annotations; readOnlyHint is consistent with a read-only comparison operation.

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 two concise paragraphs. The first paragraph states purpose and output, the second explains date format and usage. No unnecessary words; every sentence adds value. Front-loaded with key information.

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 complexity of 4 required string parameters with flexible date formats and the presence of an output schema, the description provides sufficient context: it explains the date format variety, the baseline logic, and the metrics covered. No gaps for an AI agent to correctly invoke the tool.

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?

The input schema has 0% description coverage, but the description explains that all four parameters accept the same flexible date expressions (e.g., 'today', 'yesterday', 'last week') and provides an example. This adds significant meaning beyond the bare schema, though per-parameter specifics could be more explicit.

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 compares two date ranges across specific health metrics and provides per-metric change, percent change, and an assessment. This distinguishes it from sibling tools like 'get_daily_summary' and 'get_health_overview' which do not perform comparisons.

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?

The description explains that Period A is the baseline and Period B is compared against it, and provides examples of acceptable date expressions (e.g., 'last week', 'YYYY-MM-DD') and a usage example ('compare last month to this month'). It does not explicitly mention when not to use or compare to alternative tools, but the guidance is clear for typical use.

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/rajdeepmondaldotcom/whoop-mcp-server'

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