Skip to main content
Glama

Log cardio

log_cardio
Idempotent

Use this when the person tells you about cardio they did: a run, a ride, the rower, a walk. Record cardio the person did, with the numbers they give: minutes always; distance, heart rate, level, incline, energy and intervals only when given. Never invent them. effort is a talk test: easy (could hold a conversation), steady (short sentences), hard (a few words). Give sessionId to count it in that session (it fills the session's planned cardio when it is the same exercise), or null for cardio on its own. Null startedAt is just finished. Cardio counts as minutes, never kilograms. Applied immediately with Undo. Do not use for a lifting set; use log_set.

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": {
      "exerciseKey": "<exerciseKey>",
      "minutes": "<minutes>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "log_cardio"
  }
}

Input Schema

NameRequiredDescriptionDefault
kcalNoCalories the machine or watch showed, only if they give it.
levelNoThe machine's resistance level, only if they give it.
effortNoThe talk test: easy (could hold a conversation), steady (short sentences), hard (a few words).
inclineNoIncline in percent, only if they give it.
minutesYesHow long, in minutes.
intervalsNoThe intervals they did; null for steady cardio.
sessionIdNoThe session to count it in, from get_today; null for cardio on its own.
startedAtNoWhen it started, an ISO date-time; null is just finished.
distanceKmNoDistance in kilometres, only if they give it.
exerciseKeyYesWhich cardio: bike, treadmill, run, walk, rower, skierg, stairs, elliptical, swim.
avgHeartRateNoAverage heart rate in beats a minute, only if they give it.
maxHeartRateNoHighest heart rate in beats a minute, only if they give it.
idempotencyKeyYesA new random id for this change (a UUID). Send the same one again only to retry this exact change.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / avgHeartRate / description
      Added value: +"Average heart rate in beats a minute, only if they give it."
    • addedInput schema / properties / distanceKm / description
      Added value: +"Distance in kilometres, only if they give it."
    • addedInput schema / properties / effort / description
      Added value: +"The talk test: easy (could hold a conversation), steady (short sentences), hard (a few words)."
    • addedInput schema / properties / exerciseKey / description
      Added value: +"Which cardio: bike, treadmill, run, walk, rower, skierg, stairs, elliptical, swim."
    • addedInput schema / properties / incline / description
      Added value: +"Incline in percent, only if they give it."
    • changedInput schema / properties / intervals / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "easy": {
      -        "maximum": 3600,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "rounds": {
      -        "maximum": 60,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "work": {
      -        "maximum": 3600,
      -        "minimum": 5,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "work",
      -      "easy",
      -      "rounds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "easy": {
      +        "description": "Seconds of easy going between them.",
      +        "maximum": 3600,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "rounds": {
      +        "description": "How many rounds.",
      +        "maximum": 60,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "work": {
      +        "description": "Seconds of each hard bit.",
      +        "maximum": 3600,
      +        "minimum": 5,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "work",
      +      "easy",
      +      "rounds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / intervals / description
      Added value: +"The intervals they did; null for steady cardio."
    • addedInput schema / properties / kcal / description
      Added value: +"Calories the machine or watch showed, only if they give it."
    • addedInput schema / properties / level / description
      Added value: +"The machine's resistance level, only if they give it."
    • addedInput schema / properties / maxHeartRate / description
      Added value: +"Highest heart rate in beats a minute, only if they give it."
    • addedInput schema / properties / minutes / description
      Added value: +"How long, in minutes."
    • addedInput schema / properties / sessionId / description
      Added value: +"The session to count it in, from get_today; null for cardio on its own."
    • addedInput schema / properties / startedAt / description
      Added value: +"When it started, an ISO date-time; null is just finished."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which already declare write, idempotent, non-destructive, closed-world), the description discloses that the record is applied immediately with an Undo path, that missing numbers must never be fabricated, that cardio is measured in minutes not kilograms, and how a null startedAt is interpreted. These are real behavioral facts an agent cannot get from structured fields.

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?

Front-loaded with the trigger condition, then scope, then per-parameter rules, then the sibling exclusion. Dense but every clause carries information; it is slightly run-on and the effort talk test is restated from the enum description.

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?

For a 13-parameter mutation tool with rich annotations and an output schema, the description covers the trigger, the optionality rules, the session linkage, the undo path, and the sibling boundary. An agent could call this correctly without opening the schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds a genuinely new conditional-requiredness rule — minutes always, everything else only when given — which the schema does not express. It also explains that effort is a talk test and that sessionId backfills the session's planned cardio when the exercise matches, though some of this (effort levels) duplicates the schema wording.

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 ('Record cardio the person did') and enumerates concrete instances (run, ride, rower, walk). It also draws the boundary against the closest sibling by name: 'Do not use for a lifting set; use log_set.'

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?

Gives an explicit trigger ('Use this when the person tells you about cardio they did'), an explicit exclusion with the alternative tool for lifting, and conditional guidance for the sessionId parameter (give it to count in a session, null for standalone cardio). Nothing about tool choice is left to inference.

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.