Skip to main content
Glama

log_workout

Record completed exercises or whole workouts in an athlete’s ledger, batching sessions with a debrief summary so the app displays one consolidated workout card.

Instructions

Record COMPLETED exercise(s) into the athlete's ledger (prefer passing sessions=[...] + debrief_summary in a single batch call for a whole workout so the STRUGGL app displays one consolidated workout card in the connector feed).

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

Input Schema

NameRequiredDescriptionDefault
rpeNo
dateNo
repsNo
setsNo
commentsNo
exerciseNo
sessionsNo
weight_kgNo
distance_kmNo
duration_minNo
exercise_typeNostrength
session_titleNo
debrief_summaryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.4.0
    • addedInput schema / properties / debrief_summary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Debrief Summary"
      +}
    • addedInput schema / properties / exercise / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / exercise / default
      Added value: +null
    • removedInput schema / properties / exercise / type
      Removed value: -"string"
    • addedInput schema / properties / session_title
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session Title"
      +}
    • addedInput schema / properties / sessions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sessions"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "exercise"
      -]
  2. First observedv1.3.1

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare a non-destructive, open-world write (readOnlyHint=false, destructiveHint=false). Beyond that, the description adds a real operational consequence: batching produces one consolidated workout card in the STRUGGL connector feed, which implies separate calls fragment into multiple cards. It still omits duplicate/idempotency behavior and failure modes for a write 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 sentence with the action stated first and the batching preference in a tight parenthetical. The STRUGGL-specific framing earns its place because it explains the batching motive rather than being decoration.

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 13-parameter, zero-required write tool with 0% schema coverage, this is thin: an agent cannot tell how the scalar exercise fields interact with the sessions array, what defaults like exercise_type="strength" mean, or what an unbatchable partial workout should look like. The output schema covers return values, so that is not a gap, but the input-side ambiguity is substantial.

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% across 13 parameters, so the description must carry parameter meaning – yet it explains only sessions and debrief_summary. The remaining eleven (rpe, date, reps, sets, comments, exercise, weight_kg, distance_km, duration_min, exercise_type, session_title) and the relationship between the scalar fields and the sessions array are left entirely undocumented.

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?

A concrete verb ("Record") bound to a specific resource ("COMPLETED exercise(s)") and a definite destination ("the athlete's ledger"). Capitalizing COMPLETED implicitly separates it from the planning sibling plan_workout, though that sibling is never named outright.

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

Usage Guidelines3/5

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

It gives a clear directive for the preferred call shape: send sessions=[...] plus debrief_summary in one batch call per workout. That is invocation guidance rather than selection guidance, though – it never says when to use the per-exercise scalar fields instead, and never explicitly routes planning to plan_workout.

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