Skip to main content
Glama
Quantified Self MCP Server

Quantified Self MCP Server

Read workout sessions

read_workout_sessions
Read-onlyIdempotent

Retrieve individual workout sessions, newest first, with activity, timing, intensity, and heart rate details instead of daily workout-minute totals. Filter by date range or activity type.

Instructions

Read individual workout sessions (not the daily_metrics workout_minutes total), most recent day first. Use this to see what each workout actually was — activity, timing, intensity, heart rate — rather than just a day's summed minutes.

Do not use this tool when:

  • the user just wants the daily workout_minutes total, not individual sessions -> use read_health_data or get_metric_history instead.

Privacy note: this server and its SQLite file are entirely local, but the data returned by this tool becomes part of the conversation sent to whatever model the calling client is configured with. If that model runs in the cloud rather than on your machine, treat this the same as pasting the data into a chat with that provider.

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": "read_workout_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return, 1 to 1000 (default 200).
end_dateNoOnly return sessions on/before this date (YYYY-MM-DD). Omit for no upper bound.
start_dateNoOnly return sessions on/after this date (YYYY-MM-DD). Omit for no lower bound.
activity_typeNoOnly return sessions of this activity type. Omit for all types.

Output Schema

NameRequiredDescriptionDefault
countYes
sessionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.36
    • addedOutput schema / properties / sessions / items / properties / duration_minutes / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / sessions / items / properties / duration_minutes / type
      Removed value: -"integer"
  2. Changed1 schema field changedv1.0.31
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum rows to return (default 200)."New value: +"Maximum rows to return, 1 to 1000 (default 200)."
  3. Addedv1.0.16
  4. Removedv1.0.15
  5. Addedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is free. The description adds two things the annotations cannot: a defined result ordering (most recent day first) and a data-flow/privacy disclosure about returned rows entering the model conversation — non-obvious and directly relevant to whether an agent should fetch this at all. It stops short of describing pagination behavior or how a full 200-row default interacts with the date filters, so not a 5.

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?

Purpose and scope come first, exclusions are bulleted for fast scanning, and the privacy note is visually separated. The privacy paragraph is the longest block and is somewhat verbose for its message, but it is genuinely non-redundant content rather than filler, so only a small deduction.

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?

With an output schema present the description needn't explain return values, and it doesn't waste space doing so. Given a zero-required-parameter, 100%-documented schema with full annotations, the remaining gaps an agent could face — which sibling to use instead, result ordering, and data-egress implications — are all addressed.

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

Parameters3/5

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

Schema description coverage is 100% and all four parameters carry inline descriptions (limit range, date bounds format, activity_type filter), so the schema does the heavy lifting. The description only indirectly touches parameters by mentioning ordering and the activity/heart-rate fields a session contains; it adds no syntax or default-behavior detail beyond the schema. Baseline 3 is correct.

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 ("Read individual workout sessions") and immediately disambiguates from the sibling aggregate data point ("not the daily_metrics workout_minutes total"). The parenthetical plus the ordering note ("most recent day first") tells an agent exactly which resource it gets 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?

Provides both positive guidance ("Use this to see what each workout actually was — activity, timing, intensity, heart rate") and an explicit exclusion with named alternatives (daily totals -> `read_health_data` or `get_metric_history`). The when/when-not pairing is exactly the routing information an agent needs to choose between these siblings.

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