Skip to main content
Glama

Adjust a strength guide to today's recovery (returns it, pushes nothing)

adjust_guide
Read-only

Adjusts a strength guide to the user's HRV and morning recovery, returning a lighter plan with reasons for review before pushing.

Instructions

Adjusts a strength guide spec (the arguments of push_strength_guide) to how recovered the user is on date (default today), and RETURNS the adjusted spec with the reasons. It does not push anything: show the user the changes, and push the returned guide with push_strength_guide only if they agree. Reads get_baselines for date: HRV (metrics.hrv.latestVsBand) and recovery on waking (metrics.recoveryMorning.latestVsBand) against the user's own band of the last 28 days. Rules: neither below the band, or no reading yet -> unchanged (it never adds load or sets); one of the two below -> one set less on every exercise with 3 or more sets (the 'NxM' in detail is rewritten to match; an exercise whose detail has no matching 'NxM' keeps its sets and says so in reasons); both below -> that, plus every load in detail (the first 'kg', not bodyweight) 10% lower rounded to 2.5 kg, a plates breakdown is dropped when the load changed, and an exercise's target is dropped whenever that exercise changed at all (sets or load; a reason says so, last stays). Output: { level ('unchanged' | 'lighter' | 'reduced'), adjusted (whether anything changed), signals: { hrv, recoveryMorning } (below | within | above | null), reasons, changes: [{ exercise, from: { sets, detail }, to: { sets, detail } }], guide (the full adjusted spec), baselineErrors (only when a baseline section failed) }. The band is the middle half of the user's own recent days, not a medical reference. To put the adjusted guide in the approval queue, pass queuePayload (queue_adjustment's exact arguments: kind adjusted_guide, the adjusted guide as payload, reasons, source; null when nothing was changed) to queue_adjustment: this tool queues nothing and pushes nothing. Read-only.

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": {
      "guide": "<guide>"
    },
    "name": "adjust_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe day whose HRV and recovery are compared with the band, YYYY-MM-DD (default today: the night that led into it). A day with no reading yet leaves the guide unchanged.
guideYesThe strength guide spec to adjust: the same arguments as push_strength_guide (without guideId).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered structurally. The description adds substantial behavioral detail beyond that (the three adjustment tiers, which fields get rewritten or dropped, the 28-day band semantics, baselineErrors). However, it also restates 'Read-only' which duplicates the annotation, and the density means an agent must parse a lot to extract the actual behavior.

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

Conciseness3/5

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

Purpose and the non-push constraint are front-loaded, which is good, but the body is one very dense block that folds in rules, output shape, and queueing guidance without visual breaks. It is information-rich yet hard to scan; breaking rules, output, and queueing into separate lines would improve usability at similar length.

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?

No output schema exists, yet the description fully specifies the return object (level, adjusted, signals, reasons, changes, guide, baselineErrors) and the three rule branches. For a complex, nested-input tool with no output schema, this is complete enough for an agent to call and interpret results correctly.

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, but the description adds meaning beyond the schema: it clarifies guide is 'the same arguments as push_strength_guide (without guideId)' and explains the date default as 'the night that led into it' with the no-reading-unchanged consequence. These are genuine semantic additions rather than schema repetition.

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 states a specific verb and resource ('Adjusts a strength guide spec') and immediately scopes what it is not ('does not push anything'), naming push_strength_guide as the pushing sibling. An agent can distinguish this from push_strength_guide and queue_adjustment without opening any 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?

Explicit when/when-not guidance: 'show the user the changes, and push the returned guide with push_strength_guide only if they agree,' plus the exact condition for using queuePayload with queue_adjustment. It even states the null case (queuePayload null when nothing changed), leaving no inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.