Skip to main content
Glama

get_activities

List workouts between inclusive dates and return summaries with sport, duration, distance, heart rate, elevation, and training load. Filter by sport to review recent or date-range training.

Instructions

List workouts between start and end (YYYY-MM-DD, inclusive).

    Returns a summary per activity: sport, name, start time, duration (min),
    distance (km), avg/max HR, elevation, training load. Use this to answer
    "what did I do last week?" or "show me every run since April".

    - `sport`: optional filter (e.g. "running", "cycling"). Matches case-insensitively.
    - `force_refresh`: skip the freshness cache and refetch every day in range.

    Use `get_activity_detail(activity_id)` for splits / HR zones of one activity.
    

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "get_activities"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
sportNo
startYes
force_refreshNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the inclusive date semantics, the case-insensitive matching of `sport`, and that `force_refresh` bypasses the freshness cache and refetches every day in range (implying extra cost/latency). It omits any mention of permissions, rate limits, or maximum range span, which for a cache-aware fetch tool are the remaining gaps.

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?

Front-loaded with the core operation, then the return shape, then per-parameter bullets, then the sibling pointer — a sensible ordering. Slight redundancy between the opening sentence and the example questions, and the parameter bullets begin by restating names, but nothing is padding.

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?

No output schema exists, and the description correctly compensates by enumerating the summary fields returned per activity (sport, duration, distance, HR, elevation, training load). With no annotations, it could say more about the freshness cache's default behavior or any range limits, but an agent has enough to invoke it correctly.

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 description coverage is 0%, so the description must compensate — and it does for all four parameters: date format and inclusivity for `start`/`end`, filter values plus case-insensitivity for `sport`, and cache-bypass behavior for `force_refresh`. This is meaning well beyond the bare `type: string` / `type: boolean` schema.

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?

States a specific verb and resource ("List workouts between `start` and `end`") plus the time scope, and immediately distinguishes itself from `get_activity_detail` by pointing there for splits/HR zones. An agent can tell what this tool does and what it does not do without opening the schema.

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

Usage Guidelines5/5

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

Gives concrete use cases ("what did I do last week?", "show me every run since April") and names the alternative tool with the exact condition that selects it (splits / HR zones of one activity). Routing is explicit rather than inferred.

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