Skip to main content
Glama
DataBody MCP Server

DataBody MCP Server

Official
by databody-ai

import_workout_session

Import completed workout sessions from structured records, preserving actual dates, reps, units, and weights; resolve missing data and reuse client_id to avoid duplicate imports.

Instructions

Import a completed workout from supplied structured records. Preserve actual dates, reps, units and weights; resolve missing data rather than invent it. Reuse client_id to avoid duplicate imports.

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": {
      "client_id": "<client_id>",
      "started_at": "<started_at>",
      "ended_at": "<ended_at>",
      "moves": "<moves>",
      "completed_sets": "<completed_sets>"
    },
    "name": "import_workout_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional session name
movesYesAd hoc moves when no program is selected
notesNoPlain text notes up to 2,000 characters; empty string clears them
day_idNoDay ID from the program
ended_atYesActual end time with UTC offset
client_idYesStable caller-generated ID; reuse the same ID when retrying the same operation
program_idNoUser-owned resource ID returned by a read tool
started_atYesISO 8601 timestamp including UTC offset
completed_setsYesOnly sets that were actually completed

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 supplied, the description must carry the behavioral load, and it does disclose mutation plus two meaningful traits: idempotency via client_id and a data-integrity policy (preserve actuals, do not invent missing values). It omits whether the call creates library moves from the supplied name, how duplicate client_id retries are answered, permission requirements, and whether partial failure is possible.

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, front-loaded with the action, then the data-integrity constraint, then the idempotency rule. No filler and no restating of the tool name.

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 9-parameter import with nested moves and completed_sets and no output schema or annotations, the description covers the core intent and the retry story but leaves open what the call returns, whether new library moves are created, and how program/day linkage is validated. Adequate but with real gaps 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 100%, so the baseline is 3. The description reinforces policy for completed_sets (use actuals rather than planned targets) and for client_id (reuse on retry), but those points already appear in the schema property descriptions, so it adds little new meaning.

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?

"Import a completed workout from supplied structured records" gives a specific verb (import) and resource (completed workout/session) with the key qualifier that the workout is already finished and supplied as records. That separates it from live-session siblings like start_workout_session or log_workout_set, though it never names any sibling explicitly.

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 description implies a backfill/import scenario by requiring 'supplied structured records' and a 'completed workout,' and it gives one concrete operational rule: reuse client_id to avoid duplicate imports. It does not state when to prefer this over log_workout_set or create_workout_one_off, nor any preconditions such as needing a program_id or day_id.

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