Skip to main content
Glama
DataBody MCP Server

DataBody MCP Server

Official
by databody-ai

undo_workout_set

Revert the last logged workout set during rest while preserving extra moves and sequence changes. Use it to correct accidental or incorrect set entries in an active session.

Instructions

Undo the last logged set during rest; preserve extra moves and sequence changes.

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>"
    },
    "name": "undo_workout_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 one valuable trait: extra moves and sequence changes are preserved rather than reverted. It says nothing about what happens if no set exists, whether the undo is itself reversible, concurrency/revision behavior, or authorization needs.

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?

A single tight sentence with the operation front-loaded and the preservation guarantee in the second clause; no filler. However, 'during rest' is slightly cryptic without surrounding context.

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?

The description covers the action, the target scope, and the non-destructive guarantee, which is adequate given the remaining details live in the well-described schema. It leaves error conditions and the result of the undo unstated, a minor gap for an undo tool with no output schema.

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 session_id, expected_revision, client_id, and occurred_at are already documented in the schema. The description adds no meaning about which parameters to use or how they interact with the undo operation; baseline 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?

States a specific verb and resource: 'undo the last logged set', with a timing qualifier 'during rest'. That distinguishes it reasonably from mutating siblings such as update_workout_set or remove_workout_session_set, though it doesn't explicitly contrast them.

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?

The phrase 'during rest' implies the usage context (mid-session, between sets) and 'last logged set' narrows the target, so some when-to-use guidance is present. There is no explicit when-not guidance and no named alternative for removing an arbitrary (non-last) set.

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