Skip to main content
Glama
DataBody MCP Server

DataBody MCP Server

Official
by databody-ai

replace_workout_session_move

Replace only unlogged sets in a workout occurrence with another move at the same queue position, preserving completed sets and the saved program; review replacement load and targets first.

Instructions

Replace only an occurrence's unlogged sets with another move in the same queue position. Preserve completed sets and the saved program. Review replacement load and targets first.

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": {
      "session_id": "<session_id>",
      "expected_revision": "<expected_revision>",
      "move_id": "<move_id>",
      "move": "<move>"
    },
    "name": "replace_workout_session_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
moveYes
move_idYesSession move occurrence ID to replace
client_idNoStable caller-generated ID; reuse the same ID when retrying the same operation
session_idYesUser-owned resource ID returned by a read tool
occurred_atNoOptional original event time with UTC offset, for offline replay
expected_revisionYesCurrent revision returned by the resource; prevents overwriting a newer edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose genuinely useful behavior: completed sets and the saved program are preserved, only unlogged sets are touched. That is a meaningful non-destructiveness guarantee the schema does not state. It still omits failure behavior (what happens if a revision is stale, or if the occurrence has logged sets in flight), reversibility, and required permissions, which matter for a mutation tool.

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 short sentences: the operation and its scope first, the preservation guarantee second, the safety pre-check last. Every sentence carries distinct information and the front-loading matches the order an agent needs it.

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?

This is a moderately complex mutation with a nested move object, revision guard, and idempotency key, and no annotations or output schema. The description covers the preservation semantics well but leaves out the create-new-move versus pass-existing-move_id path that the nested object supports, conflict handling, and what a successful response looks like. Adequate, but gaps remain for a tool of this complexity.

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 83%, so the schema already explains session_id, move_id, expected_revision, client_id, and the nested move/sets object in detail. The description adds only an indirect cue that replacement load and rep targets need review, which loosely maps to the nested weight/reps_min/reps_max fields. That is slightly more than baseline but no parameter is meaningfully re-specified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Replace only an occurrence's unlogged sets with another move in the same queue position" gives a specific verb (replace), a narrow resource (unlogged sets of one occurrence), and the scope constraint (same queue position, only unlogged). An agent can distinguish this from add/remove session move operations. It stops short of naming the sibling tools it supersedes for swap scenarios, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the scope language: use this when swapping a move inside a live session without disturbing completed work, rather than removing and re-adding. The only explicit guidance is the pre-check "Review replacement load and targets first." There is no explicit when-not case or named alternative for wholesale removal or for editing library moves (update_workout_move, set_workout_move_notes).

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

Deploy Server

Other Tools