Skip to main content
Glama

Start or finish a session

update_session
DestructiveIdempotent

Use this when the person starts, finishes or skips a session, or says how it felt. status IN_PROGRESS starts it, DONE finishes it and SKIPPED skips it; feeling is 1 to 5; notes and gym as they say. Null leaves a field as it is. Comes back with an Undo. Do not use to move a session to another day; use move_session.

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>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "update_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
gymNoThe gym they trained at, as they name it; null leaves it.
notesNoTheir notes on the session; an empty string clears them, null leaves them.
statusNoIN_PROGRESS starts it, DONE finishes it, SKIPPED skips it, PLANNED puts it back; null leaves it.
feelingNoHow it felt, 1 to 5; an empty string clears it, null leaves it.
sessionIdYesThe session's id, from get_today or get_schedule.
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. Changed5 schema fields changed
    • addedInput schema / properties / feeling / description
      Added value: +"How it felt, 1 to 5; an empty string clears it, null leaves it."
    • addedInput schema / properties / gym / description
      Added value: +"The gym they trained at, as they name it; null leaves it."
    • addedInput schema / properties / notes / description
      Added value: +"Their notes on the session; an empty string clears them, null leaves them."
    • addedInput schema / properties / sessionId / description
      Added value: +"The session's id, from get_today or get_schedule."
    • addedInput schema / properties / status / description
      Added value: +"IN_PROGRESS starts it, DONE finishes it, SKIPPED skips it, PLANNED puts it back; null leaves it."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety bar is partly pre-carried. The description adds behavior beyond that: partial-update semantics ('Null leaves a field as it is'), which materially reduces the perceived destructiveness, and the fact that the call returns an Undo. It stops short of saying what a status overwrite discards, which is the one remaining ambiguity for a destructive 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?

It is front-loaded with the trigger condition, then the field semantics, then the return, then the exclusion, which is the right order for an agent. The only waste is the partial duplication of the status enum and feeling range already spelled out in the schema.

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?

With an output schema present, the return contract needs no elaboration, and the 'Comes back with an Undo' note is a useful bonus. Six parameters at full schema coverage plus a targeted exclusion leave little missing, though a line on what a destructive status change overwrites would close the last 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 the schema already documents every parameter, including the enum mapping and null semantics. The description restates the same status meanings and the 1-5 feeling range nearly verbatim and adds only a loose gloss for notes and gym ('as they say'), which adds little beyond the schema.

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?

The description names the resource (a session) and the concrete operations it performs: starting, finishing, skipping, and recording how it felt, with each status value mapped to a transition. It is distinguishable from the sibling move_session by explicit exclusion rather than by inference.

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?

The opening clause states exactly when to invoke it ('when the person starts, finishes or skips a session, or says how it felt'), and the closing sentence names the alternative tool and the condition that should route there instead ('Do not use to move a session to another day; use move_session'). Both the positive and negative cases are covered.

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.