Skip to main content
Glama

update_recovery_session

Idempotent

Update fields on an existing recovery session log entry. use: correcting or changing something already logged (e.g. wrong duration, quality rating, category, or notes). Send only the fields that change.

SELECTOR: exactly one; id if known, else session_date (+ optional session_category to narrow). More than one session matching -> error with candidate IDs to retry with.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_recovery_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRecovery session ID.
dateNoNew date, YYYY-MM-DD.
notesNoNew notes.
qualityNoNew quality 1-5.
skippedNoNew skipped status.
categoryNoNew category.
strategy_idNoNew strategy ID; null unlinks.
session_dateNoDate the session was logged on, YYYY-MM-DD.
strategy_nameNoNew practice name.
duration_minutesNoNew duration in minutes.
session_categoryNoNarrows session_date to one category when several sessions share that date. Ignored with id.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Updated category. Optional."New value: +"New category."
    • changedInput schema / properties / date / description
      Previous value: -"Updated date (YYYY-MM-DD). Optional."New value: +"New date, YYYY-MM-DD."
    • changedInput schema / properties / duration_minutes / description
      Previous value: -"Updated duration in minutes. Optional."New value: +"New duration in minutes."
    • changedInput schema / properties / id / description
      Previous value: -"Recovery session ID. Alternative to session_date."New value: +"Recovery session ID."
    • changedInput schema / properties / notes / description
      Previous value: -"Updated notes. Optional."New value: +"New notes."
    • changedInput schema / properties / quality / description
      Previous value: -"Updated quality 1-5. Optional."New value: +"New quality 1-5."
    • changedInput schema / properties / session_category / description
      Previous value: -"Optional, narrows session_date to one category when more than one session shares that date. Ignored when id is given."New value: +"Narrows session_date to one category when several sessions share that date. Ignored with id."
    • changedInput schema / properties / session_date / description
      Previous value: -"Alternative to id: the date (YYYY-MM-DD) the session was logged on. Optionally narrow with session_category."New value: +"Date the session was logged on, YYYY-MM-DD."
    • changedInput schema / properties / skipped / description
      Previous value: -"Updated skipped status. Optional."New value: +"New skipped status."
    • changedInput schema / properties / strategy_id / description
      Previous value: -"Updated strategy ID. Optional — set null to unlink."New value: +"New strategy ID; null unlinks."
    • changedInput schema / properties / strategy_name / description
      Previous value: -"Updated practice name. Optional."New value: +"New practice name."
  2. Changed4 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Recovery session ID. Required — do not proceed without it."New value: +"Recovery session ID. Alternative to session_date."
    • addedInput schema / properties / session_category
      Added value: +{
      +  "description": "Optional, narrows session_date to one category when more than one session shares that date. Ignored when id is given.",
      +  "enum": [
      +    "breathwork",
      +    "progressive_muscle_relaxation",
      +    "meditation",
      +    "cold_exposure",
      +    "heat_sauna",
      +    "contrast_therapy",
      +    "lymphatic_drainage",
      +    "stretching_mobility",
      +    "yoga",
      +    "journaling",
      +    "other"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / session_date
      Added value: +{
      +  "description": "Alternative to id: the date (YYYY-MM-DD) the session was logged on. Optionally narrow with session_category.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare mutation, non-destructive, idempotent, and closed-world behavior, so the description's added value is the partial-update contract ('send only the fields that change') and the explicit failure mode: multiple date matches return an error with candidate IDs to retry with. It does not describe side effects on linked strategies or whether omitted fields are preserved, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact, front-loaded parts — purpose, when to use, selector mechanics — with zero redundant wording. The uppercase SELECTOR marker makes the most error-prone aspect easy to scan.

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 an 11-parameter mutation with an output schema and rich annotations, the description covers the parts structured data cannot: the correction intent, the partial-update rule, and the exact disambiguation and retry path. Nothing an agent needs before calling is missing.

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; the description adds meaning beyond the schema by explaining the selector precedence (id first, else session_date plus optional session_category) and the 'ignored with id' rule for session_category. That is genuine interaction-level semantics the schema cannot express, though the individual update fields are left entirely to 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?

States a specific verb and resource — 'Update fields on an existing recovery session log entry' — and immediately names the concrete fields (duration, quality, category, notes). It is clearly distinguishable from log_recovery_session and delete_recovery_session by the correction framing.

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?

Explicitly scopes the use case to 'correcting or changing something already logged' with examples, and adds a selector rule that says exactly which identifier to use and what happens on ambiguity. It tells the agent both when to use it and how to disambiguate the target.

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.