Skip to main content
Glama

Log a session as done

log_session
Idempotent

Mark one session done and record how it went: the minutes, distance and vertical gain actually covered, feeling 1 to 5 (1 terrible, 2 hard, 3 ok, 4 good, 5 great), rpe 1 to 10 (how hard it was), tags and a note in the user's own words. The note is where what they learned from the session goes; a lesson to look up again later can also be a diary note linked to the session (add_note with session_id). Fill in only what the user said. done: false un-completes it. Requires signing in.

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": {
      "session_id": "<session_id>"
    },
    "name": "log_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
rpeNoRate of perceived exertion, a whole number 1 to 10: 1 very easy, 3 easy, 5 hard, 7 very hard, 10 all-out.
doneNoDefault true. False un-completes the session.
tagsNoTags for the session; replaces the old ones.
notesNoHow it went, in the user's words.
feelingNo1 terrible, 2 hard, 3 ok, 4 good, 5 great.
session_idYesid of the training session, from get_calendar, get_training_log or add_sessions.
actual_distance_mNoDistance actually covered, in metres.
actual_elevation_mNoVertical gain actually climbed, in metres.
actual_duration_minNoMinutes it actually took.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false, so the safety profile is covered. The description adds two genuinely useful facts beyond that: 'Requires signing in' (auth prerequisite) and that done: false reverses completion. It does not mention that tags replace prior tags, which the schema carries instead.

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 purpose and the primary call guidance are front-loaded in the first clause, and the paragraph reads as a coherent flow from action to fields to notes to completion semantics. It loses some efficiency by re-enumerating the feeling 1-5 and rpe 1-10 scales that the schema already defines verbatim.

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 nine-parameter mutation with no output schema, the description supplies the essentials: what is recorded, the auth requirement, the un-complete toggle, and where related note-taking belongs. The absence of any comparison to update_session is the one notable gap.

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 100%, so every one of the nine parameters is already documented, including the feeling and rpe scales. The description largely restates those scales and adds only modest meaning beyond the schema, chiefly that the note is where session learnings belong.

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?

The description opens with a specific verb and resource: 'Mark one session done and record how it went', then enumerates the actuals it records (minutes, distance, vertical). It implicitly separates itself from add_note by routing lessons to that tool, but never clarifies how it differs from the sibling update_session, which is the most likely source of confusion for an agent.

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?

'Fill in only what the user said' is a concrete invocation rule, and the description explicitly routes lesson-style content to add_note with session_id, which is real alternative-selection guidance. It also states that done: false un-completes rather than logging, but offers no guidance on when to choose this over update_session.

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