Skip to main content
Glama

Merge two workouts

trainrec_merge_workouts

Makes two workouts of one session into one, given both ids and versions: keep keeps its id and name and takes the other's exercises and what either measured (calories, heart rate, route), and the other is removed. For the same session logged twice, or a watch's copy of one you logged. Same day only. The person can undo it in one step in the app. Use it instead of deleting one of the pair: a watch's heart rate is only on its copy.

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": {
      "keep": "<keep>",
      "keepVersion": "<keepVersion>",
      "other": "<other>",
      "otherVersion": "<otherVersion>"
    },
    "name": "trainrec_merge_workouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepYes
otherYes
keepVersionYes
otherVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing what is destroyed (the other workout), what is preserved (keep's id and name), what data flows across (exercises, calories, heart rate, route), the same-day constraint, and that the person can undo it in one step. The only soft spot is that removing a workout sits in mild tension with destructiveHint=false; the explicit one-step undo mostly reconciles it, but the description never states whether the merge is atomic or what happens if a version is stale.

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?

Front-loads the core action and outcome in the first clause, then adds constraints and the alternative. Every clause carries information; the opening sentence is a long run-on that stacks the keep/other outcomes in one breath, which costs a little readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive-ish mutation with no annotations beyond hints, no output schema, and no parameter descriptions, the definition covers motive, preconditions, data flow, and recoverability well. What is missing is failure-mode behavior (stale version, different days, already-merged) and what the caller gets back, which an agent needs before invoking a merge with confidence.

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?

With 0% schema description coverage the description has to carry parameter meaning, and it does define the roles of keep and other and their ids. However, it only alludes to versions ("given both ids and versions") without explaining what a version is, where the agent gets it, or whether keepVersion or otherVersion drives conflict detection — so a full third of the parameters remain semantically opaque.

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 ("Makes two workouts of one session into one") and then spells out the asymmetric outcome: keep retains its id and name and absorbs the other's exercises and measurements, while the other is removed. That asymmetry is exactly the thing an agent could not guess from the name or schema, and it distinguishes the tool from trainrec_delete_workout.

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?

Gives concrete triggering situations ("the same session logged twice, or a watch's copy of one you logged"), an explicit precondition ("Same day only"), and a named alternative it should be preferred over ("Use it instead of deleting one of the pair"), with the reason why. When-to-use, when-not-to-use, and the alternative are all present.

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