Skip to main content
Glama
DataBody MCP Server

DataBody MCP Server

Official
by databody-ai

update_workout_program

Edit a future workout program by adding, editing, removing, duplicating, or reordering days and moving occurrences, without changing an active session.

Instructions

Edit the future program, including add/edit/remove/duplicate/reorder days and move occurrences. Does not change an active session.

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": {
      "program_id": "<program_id>",
      "expected_revision": "<expected_revision>"
    },
    "name": "update_workout_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoComplete ordered day list. A supplied days array replaces the previous list; retain IDs for existing days and moves.
nameNoProgram name
program_idYesUser-owned resource ID returned by a read tool
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.7/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. It correctly signals a mutation and discloses the session-vs-program boundary, which is genuinely useful. However, it omits the most consequential behaviors documented only in the schema: that a supplied days array wholesale replaces the prior list, and that expected_revision guards against overwriting concurrent edits.

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?

Two tight sentences with zero filler, and the capability list is front-loaded before the scope exclusion. Every clause earns its place.

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 four-parameter mutation tool with no annotations and no output schema, the definition states purpose and scope but leaves out the replace-all semantics of the days array and the revision-conflict behavior. The rich schema compensates partially, but an agent could still misjudge the destructive scope of an edit.

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 100%, so every parameter including nested days/moves/sets already carries its own documentation. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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?

The description uses a specific verb and resource ("Edit the future program") and enumerates the supported operations: add/edit/remove/duplicate/reorder days and move occurrences. It also draws a clear scope line with "Does not change an active session," which separates it from the update_workout/update_workout_session family without naming them.

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?

It gives a clear when-to-use signal (editing a future program's structure) and an explicit when-not (active sessions). What's missing is routing to related siblings such as create_workout_program for a new program or update_workout_move for per-move edits, so the agent must infer those boundaries.

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