Skip to main content
Glama

Log exercise

log_exercise
Idempotent

Log a physical activity (e.g. 'I ran 8 km in 45 minutes'). If it already finished, give duration_min; if the user only says they just finished, omit time and the start is computed as now minus the duration. Without duration it is logged as in progress (finish it later with finish_exercise). A finished activity needs duration_min. Put distance or other details in details.

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": {
      "kind": "<kind>"
    },
    "name": "log_exercise"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesType of activity; use 'other' with `name` if none fits.
nameNoName of the activity when kind is 'other' (e.g. 'climbing').
timeNoWhen it STARTED. When it happened, in the user's local time: 'HH:MM' (today), 'YYYY-MM-DDTHH:MM', or ISO 8601 with offset. Omit it for right now. Never in the future.
detailsNoFree details such as distance ('8 km').
intensityNo
duration_minNoDuration in minutes, if finished.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, idempotent write, so the description carries a lower burden, and it does add real behavioral model detail: no duration means the entry is stored as in-progress and the start time is computed as now minus duration. It does not explain what the idempotentHint=true annotation means in practice (e.g. whether re-logging the same input merges or creates a second entry), which is a meaningful gap 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?

The core rule is front-loaded in the first two sentences and the example anchors it. There is noticeable redundancy: 'If it already finished, give duration_min' and 'A finished activity needs duration_min' say the same thing, and the in-progress state is described twice, which slightly dilutes a short description.

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 6-parameter write tool with no output schema, the description covers the state model and the follow-up path to finish_exercise, which is the main thing an agent could get wrong. It leaves the intensity parameter unexplained and gives no hint about what a successful log returns, but those are secondary here.

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 83%, so the schema already documents kind, name, time, details, and duration_min well. The description's note that distance belongs in `details` largely repeats the schema's own example, and it adds only the finished-vs-in-progress dependency for duration_min; the intensity parameter is never mentioned in either place.

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 ('Log a physical activity') with a concrete example, and immediately distinguishes the in-progress case from the finished case by naming the sibling finish_exercise. An agent can tell this apart from log_meal, log_glucose, and the other siblings without opening any schema.

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

Usage Guidelines4/5

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

Gives explicit conditional routing: supply duration_min when the activity is finished, omit time when the user just finished, and use finish_exercise later for in-progress entries. What is missing is guidance on the reverse case (when not to use this tool) or on handling duplicate/overlapping activities, so it is strong but not exhaustive.

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.