Skip to main content
Glama

Marrow Health: Apple Health for your AI

Log a workout

log_workout

Record a workout the user did but did not track: a run, a ride, a class. Goes to Apple Health as a workout. For weightlifting with sets and reps use log_strength instead.

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": {
      "activity": "<activity>",
      "minutes": "<minutes>"
    },
    "name": "log_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNoYYYY-MM-DD on the user's phone (default today, up to 30 days back, never the future)
kcalNoActive calories burned, if known
nameNoWhat to call it (optional)
timeNoHH:MM it started, 24 hour, phone time
minutesYesHow long it lasted
activityYes
idempotency_keyNoOptional. The same key never logs twice. Use a new one to log an identical entry again on purpose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write, so the description does not need to restate that. It adds genuinely new behavioral context by disclosing the external destination ('Goes to Apple Health as a workout'), which is a side effect the annotations cannot express. It stops short of covering duplicate handling despite shipping an idempotency_key, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the positive case, the destination side effect, and the exclusion ordered by importance. Nothing redundant and no filler.

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?

For a 7-parameter mutation with no output schema, the description covers purpose, exclusion routing, and the external write destination, while the schema carries parameter detail. It leaves unaddressed what the caller gets back or how duplicate entries behave, but otherwise an agent can invoke it confidently.

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 86%, so the schema already documents day bounds, time format, kcal and idempotency semantics. The description's activity examples loosely map to the enum but add no new meaning about the seven parameters, 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?

Uses a specific verb and resource ('Record a workout') and immediately scopes it to untracked activity types ('a run, a ride, a class'), which cleanly separates it from log_strength and the other log_* siblings.

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?

States both when to use it (a workout the user did but did not track) and when not to (weightlifting with sets and reps), naming the correct alternative log_strength explicitly. An agent can route without reading either schema.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources