Skip to main content
Glama
Quantified Self MCP Server

Quantified Self MCP Server

Log a workout session

log_workout_session

Record an individual workout session with activity type, timing, intensity, and heart-rate data so multiple sessions per day are tracked separately from daily workout-minute totals.

Instructions

Record one workout as a structured event — activity, timing, intensity, and heart-rate response — rather than folding it into the day's workout_minutes total. Use this alongside (not instead of) log_daily_metric/log_measurement for workout_minutes: this is what lets explain_metric_change say what the workout was, not just how long it ran. A day can have more than one session; each call adds a new row.

Do not use this tool when:

  • the user only wants to record the day's total exercise minutes as a single number, with no activity type/timing/intensity -> use log_daily_metric (workout_minutes) or log_measurement 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

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": {
      "date": "<date>",
      "activity_type": "<activity_type>",
      "duration_minutes": "<duration_minutes>"
    },
    "name": "log_workout_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day the workout happened, YYYY-MM-DD.
notesNoFree-text notes, e.g. route or how it felt. Optional.
sourceNoWhere this came from, e.g. "Apple Watch", "manual". Optional.
intensityNoOne of "low", "moderate", "high". Optional.
start_timeNoWhen it started, HH:MM (24-hour) or a full ISO timestamp. Optional.
activity_typeYesWhat kind of workout, e.g. "running", "cycling", "strength". Free-form.
avg_heart_rateNoAverage heart rate during the workout, bpm. Optional.
max_heart_rateNoPeak heart rate during the workout, bpm. Optional.
duration_minutesYesHow long it lasted, in minutes.

Output Schema

NameRequiredDescriptionDefault
sessionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.36
    • addedOutput schema / properties / session / properties / duration_minutes / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / session / properties / duration_minutes / type
      Removed value: -"integer"
  2. Addedv1.0.16
  3. Removedv1.0.15
  4. Addedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that each call appends a new row ('a day can have more than one session; each call adds a new row'), which concretely explains the non-idempotent behavior implied by idempotentHint=false. The privacy note about data entering the conversation sent to a cloud model is context that no annotation carries.

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 core purpose and the 'do not use when' rule are front-loaded and easy to scan. The privacy paragraph is longer than typical but carries non-redundant information; slight trimming of its wording would make it tighter without losing meaning.

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?

An output schema exists, so return values need not be explained, and the schema fully documents all nine parameters. Given the append-only mutation and the multi-session-per-day nuance, the description covers everything an agent needs to invoke this correctly alongside its siblings.

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%, so every parameter is already documented in the schema with types and examples. The description's mention of activity, timing, intensity, and heart rate mirrors those fields but adds no format or validation detail beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and resource ('Record one workout as a structured event') and immediately names the fields captured (activity, timing, intensity, heart-rate response). It explicitly contrasts with log_daily_metric/log_measurement, so an agent can distinguish it from the closest siblings without opening a 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?

It gives both a positive routing rule ('use this alongside (not instead of) log_daily_metric/log_measurement') and an explicit exclusion section with a concrete condition ('user only wants the day's total exercise minutes... with no activity type/timing/intensity') plus the named alternatives to use instead.

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