Skip to main content
Glama

Log a set

log_set
Idempotent

Use this when the person tells you a set they did. Give the session and slot from get_today or get_session, and the load and reps they said. Never invent a number. loadUnit kg or lb as they said it (label for a machine's own numbers); rir only if they say it. setNumber null logs the next set. Comes back with an Undo. Do not use to correct a set already logged; use edit_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": {
      "sessionId": "<sessionId>",
      "slot": "<slot>",
      "load": "<load>",
      "reps": "<reps>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "log_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
rirNoReps in reserve, only when they say it; null otherwise.
loadYesThe weight they lifted, in loadUnit.
repsYesThe reps they did.
slotYesThe exercise's slot in that session, from get_today or get_session.
loadUnitNokg or lb as they said it, or label for a machine's own numbers. Null is kg, or the machine's numbers on a labelled machine.
sessionIdYesThe session's id, from get_today or get_schedule.
setNumberNoWhich set, from 1. Null logs the next set not yet logged.
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. Changed7 schema fields changed
    • addedInput schema / properties / load / description
      Added value: +"The weight they lifted, in loadUnit."
    • addedInput schema / properties / loadUnit / description
      Added value: +"kg or lb as they said it, or label for a machine's own numbers. Null is kg, or the machine's numbers on a labelled machine."
    • addedInput schema / properties / reps / description
      Added value: +"The reps they did."
    • addedInput schema / properties / rir / description
      Added value: +"Reps in reserve, only when they say it; null otherwise."
    • addedInput schema / properties / sessionId / description
      Added value: +"The session's id, from get_today or get_schedule."
    • addedInput schema / properties / setNumber / description
      Added value: +"Which set, from 1. Null logs the next set not yet logged."
    • addedInput schema / properties / slot / description
      Added value: +"The exercise's slot in that session, from get_today or get_session."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true; the description reinforces this consistently by promising an Undo return path and describing the retry contract implicitly through 'Never invent a number'. It adds useful behavioral context (undo availability, optional-field policy) but says nothing about failure modes such as an unrecognized slot or a session that has ended.

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 the sourcing rule, then per-field guidance, then the exclusion. Dense and nearly waste-free, though the telegraphic style ('loadUnit kg or lb as they said it') and the trailing exclusion would read better if the anti-pattern were moved next to the trigger sentence.

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?

An output schema exists so return values needn't be explained, and the description nonetheless adds the Undo affordance. For an 8-parameter mutation tool it covers trigger, sourcing, guardrails, and the edit_set boundary; the only notable omission is what to do when the reported exercise has no matching slot.

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?

With 100% schema coverage the baseline is 3, but the description adds real interpretation: it tells the agent which subset of the eight parameters the person actually verbalizes (session, slot, load, reps) and enforces a don't-guess rule for numeric fields. Minor inconsistency: the description sources the session from 'get_today or get_session' while the schema says 'get_today or get_schedule' for sessionId.

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 set') and immediately scopes it to the conversational trigger ('when the person tells you a set they did'), which distinguishes it from logging cardio, weight, or food. It also explicitly names the sibling it is not (edit_set), so an agent can route correctly 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?

Gives positive guidance (when the person reports a completed set, sourced from get_today or get_session), an explicit exclusion ('Do not use to correct a set already logged; use edit_set'), and the prerequisite upstream tools. When-to-use, when-not-to-use, and the alternative are all present.

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.