Skip to main content
Glama

compare_periods

Compare a health metric across two date ranges to evaluate changes. Returns per-period statistics and a delta showing which period performed better.

Instructions

Compare a health metric between two date ranges. Dates: YYYY-MM-DD.

Examples:

  • Sleep before vs after starting magnesium: period_a = two weeks before, period_b = two weeks after

  • HRV this month vs last month: period_a_start='2026-05-01', period_a_end='2026-05-31', period_b_start='2026-06-01', period_b_end='2026-06-18'

  • Steps during a work trip vs home baseline

Returns per-period stats and a delta showing which period was better.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metric_typeYes
period_a_startYes
period_a_endYes
period_b_startYes
period_b_endYes
label_aNoPeriod A
label_bNoPeriod B

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description bears full responsibility. It notes the date format and states the tool returns per-period stats and a delta, but does not disclose potential side effects, authentication requirements, or rate limits.

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?

The description is efficiently structured with the main purpose first, followed by examples. It is slightly verbose with multiple examples, but each adds value. No unnecessary sentences.

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?

Given the tool has 7 parameters and no schema descriptions, the description adequately covers the inputs. It also mentions the output schema exists, reducing the need to detail return values. Slightly less complete due to missing behavioral details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with no parameter descriptions. The description adds significant meaning by explaining each parameter through examples, covering metric_type, date ranges, and labels, thus fully compensating for the lack of schema documentation.

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 a health metric between two date ranges, using specific verbs and resources. It distinguishes itself from sibling tools like 'get_metric_stats' and 'query_metric' by focusing on period comparison.

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 provides relevant examples of when to use the tool (e.g., sleep before/after supplements, month-over-month HRV). However, it does not explicitly exclude alternative tools or give when-not-to-use guidance.

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/jefflitt1/health4ai'

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