Skip to main content
Glama

manage_recovery_strategy

Destructive

Add, update, end, or delete a recovery/mindfulness strategy. use: the user describes a new practice, changes a schedule, stops a practice, or removes one. Infer category from the name and schedule from context; start_date defaults to today. ASK only if name is missing.

SELECTOR for update/end/delete: exactly one; id if known, else strategy_name (case-insensitive substring, e.g. "sauna"). strategy_name matching more than one strategy -> error with candidate IDs to retry with.

AFTER a successful 'add': do NOT just confirm and stop. Reply by (1) restating the assumed schedule (sessions per period, duration, time of day, start date) in plain language, and (2) asking the user to confirm or correct it, especially optional fields you did NOT set (duration_minutes, time_of_day). Example: "Logged sauna starting today, assuming once per week. Sound right? About how long do you usually go for, and what time of day, morning or evening?" A correction -> call this tool again with action='update'. The goal is accurate adherence data, not a silent confirmation.

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": {
      "action": "<action>"
    },
    "name": "manage_recovery_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoStrategy ID. See SELECTOR.
nameNoStrategy name, e.g. 'Box Breathing'; needed for add. On update, sets a new name.
notesNoFree-text notes.
actionYesOperation to perform.
categoryNoInfer from the name.
end_dateNoYYYY-MM-DD; default today for end.
start_dateNoYYYY-MM-DD; default today on add.
period_unitNoDefault 'week'.
time_of_dayNoWhen during the day: ['morning'], ['evening'], etc.
strategy_nameNoStrategy name substring, case-insensitive (e.g. "sauna"). See SELECTOR.
duration_minutesNoTarget minutes per session.
sessions_per_periodNoTarget sessions per period; default 1.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"What to do. Required."New value: +"Operation to perform."
    • changedInput schema / properties / category / description
      Previous value: -"Category. Infer from name."New value: +"Infer from the name."
    • changedInput schema / properties / duration_minutes / description
      Previous value: -"Target minutes per session. Optional."New value: +"Target minutes per session."
    • changedInput schema / properties / end_date / description
      Previous value: -"End date (YYYY-MM-DD). Default to today for end action."New value: +"YYYY-MM-DD; default today for end."
    • changedInput schema / properties / id / description
      Previous value: -"Strategy ID. Required for update, end, delete unless strategy_name is given."New value: +"Strategy ID. See SELECTOR."
    • changedInput schema / properties / name / description
      Previous value: -"Strategy name (e.g. 'Box Breathing'). Required for add; on update, sets a new name."New value: +"Strategy name, e.g. 'Box Breathing'; needed for add. On update, sets a new name."
    • changedInput schema / properties / notes / description
      Previous value: -"Free-text notes. Optional."New value: +"Free-text notes."
    • changedInput schema / properties / period_unit / description
      Previous value: -"Period unit. Default: 'week'."New value: +"Default 'week'."
    • changedInput schema / properties / sessions_per_period / description
      Previous value: -"Target sessions per period. Default: 1."New value: +"Target sessions per period; default 1."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date (YYYY-MM-DD). Default to today for add."New value: +"YYYY-MM-DD; default today on add."
    • changedInput schema / properties / strategy_name / description
      Previous value: -"Alternative to id for update/end/delete: strategy name substring, case-insensitive (e.g. \"sauna\")."New value: +"Strategy name substring, case-insensitive (e.g. \"sauna\"). See SELECTOR."
    • changedInput schema / properties / time_of_day / description
      Previous value: -"When during the day: ['morning'], ['evening'], etc. Optional."New value: +"When during the day: ['morning'], ['evening'], etc."
  2. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Strategy ID. Required for update, end, delete."New value: +"Strategy ID. Required for update, end, delete unless strategy_name is given."
    • changedInput schema / properties / name / description
      Previous value: -"Strategy name (e.g. 'Box Breathing'). Required for add."New value: +"Strategy name (e.g. 'Box Breathing'). Required for add; on update, sets a new name."
    • addedInput schema / properties / strategy_name
      Added value: +{
      +  "description": "Alternative to id for update/end/delete: strategy name substring, case-insensitive (e.g. \"sauna\").",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the mutation risk profile is known. The description adds real behavioral detail beyond that: default start_date of today, default period_unit 'week', and the multi-match error returning candidate IDs to retry with. It does not explain what delete removes irreversibly versus what end preserves, which is the main residual gap.

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?

Well front-loaded, with labeled blocks for use cases, SELECTOR rules, and post-add behavior, and the action scope appears in the first clause. The AFTER block is longer than strictly necessary, though it is the highest-value guidance for this tool, so the length is mostly justified.

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 12-parameter destructive tool with an output schema and rich annotations, the description covers operation semantics, defaults, selector logic, and the required follow-up confirmation flow. Remaining gaps are update granularity (whether omitted fields are preserved or cleared) and the concrete difference between end and delete.

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 baseline would be 3, but the description genuinely adds meaning: it directs inference of category from the name and schedule from context, states start_date defaults to today, and defines the id-versus-strategy_name precedence and case-insensitive substring matching. That is usable semantics not fully captured in the schema descriptions.

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 opening sentence names the resource and enumerates all four supported operations (add, update, end, delete) with specific verbs. Combined with the action enum, an agent can immediately tell this apart from siblings like log_recovery_session or list_recovery_strategies, which handle sessions and reads rather than strategy lifecycle.

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?

Provides concrete when-to-use triggers mapped to user behavior: a new practice, a changed schedule, stopping, or removing one. It also resolves the ambiguous update/end/delete selector case explicitly (exactly one of id or strategy_name) and specifies the substring-match failure mode. It stops short of naming alternatives such as log_recovery_session for recording a completed session, so no explicit when-not guidance.

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.