Skip to main content
Glama

compare_periods

Read-onlyIdempotent

Compare average daily metrics between two date ranges to identify changes in activity, sleep, HRV, readiness, stress, GPS, and body composition.

Instructions

Read-only. Compare average daily metrics between two date ranges.

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": {
      "from1": "<from1>",
      "to1": "<to1>",
      "from2": "<from2>",
      "to2": "<to2>"
    },
    "name": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
to1Yes
to2Yes
from1Yes
from2Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description merely restates 'Read-only' rather than extending it. It does add one behavioral fact beyond the annotations — that values are aggregated to average daily metrics — but says nothing about which metrics are compared, how partially covered days or missing data are handled, or the comparison output format.

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?

Two short sentences with the safety note front-loaded and the operation immediately after — no wasted prose. The 'Read-only' prefix duplicates the readOnlyHint annotation, which is minor redundancy rather than bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with four required, entirely undescribed string parameters and no output schema, the description leaves critical calling details unspecified: date format, which metrics are averaged, and what the comparison returns. The safety profile is covered by annotations, but the operational contract is not.

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

Parameters2/5

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

Schema description coverage is 0%, so all four parameters (from1, to1, from2, to2) are undocumented, and the description only implies that they pair into two ranges. It provides no date format, timezone convention, ordering constraint, or validation rule, so it does not compensate for the schema gap.

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 names a specific verb (compare) and a specific object (average daily metrics) scoped to two date ranges, so an agent knows exactly what operation it performs. It does not differentiate against potentially overlapping siblings like get_trend or get_daily_summary, which keeps it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when this tool should be chosen over alternatives, nor any stated prerequisites, exclusions, or constraints on the date ranges. The agent must infer usage entirely from the one-line purpose statement.

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