Skip to main content
Glama

analyze_session

Read-only

Analyze one Garmin activity by ID or day to review HR zones, per-lap cardiac drift, strength sets, planned-workout comparison, notes, and RPE vs heart-rate consistency.

Instructions

Deep dive into one activity (by id, else the latest on day, else the latest overall): HR zones, per-lap table with cardiac drift, strength exercises with sets/reps/load, comparison with the planned workout, athlete notes and an RPE vs heart-rate consistency check.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNo
activity_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. Beyond that, the description discloses the fallback resolution behavior (what happens when activity_id is absent) and the breadth of analysis returned, which is genuinely additive context not present in the annotations. No auth or rate-limit notes, but none are needed for a read-only local analytics tool.

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?

A single front-loaded sentence with the purpose first and the resolution rule parenthetically attached; no filler. The long content enumeration is somewhat dense and partly overlaps the existing output schema, but it earns its place by helping the agent distinguish this tool from lighter-weight siblings.

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?

Both parameters are optional, an output schema exists, and the annotations cover safety, so the description only needs to explain selection semantics and analysis scope, which it does. The only omissions are the `day` format and error behavior when no activity exists, both minor given the output schema and defaults.

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 description coverage is 0%, so the description carries the full burden, and it does: it explains that activity_id takes precedence and that day selects the latest activity on that date if no id is given. The remaining gap is the expected format of the `day` string (date encoding), which is undocumented in both schema and description.

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?

"Deep dive into one activity" gives a specific verb and resource, and the parenthetical immediately clarifies scope (single activity, resolved by id or day). The enumerated contents (HR zones, per-lap table, cardiac drift, strength sets/reps/load, planned-workout comparison, RPE check) make it unmistakable versus list-style siblings such as list_activities or trends.

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 establishes clear context for when this applies: a single-session deep dive, with explicit resolution precedence (id, then day, then latest overall) so the agent knows it can call with no arguments. It does not explicitly name an alternative such as plan_vs_done or trends or state when not to use it, so it stops short of full routing guidance.

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