Skip to main content
Glama
Loopback Training Server

Loopback Training Server

delete_workout

Permanently removes a recorded HealthKit workout by ID, clearing outdated or incorrect entries from your training data; re-sync from iPhone if needed.

Instructions

Delete a recorded workout by ID.

This permanently removes a HealthKit workout record from the database. The workout can be re-synced from the iPhone if needed.

Args: workout_id: UUID of the workout to delete.

Returns: Confirmation with the deleted workout ID.

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": {
      "workout_id": "<workout_id>"
    },
    "name": "delete_workout"
  }
}

Input Schema

NameRequiredDescriptionDefault
workout_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.36

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that removal is permanent and that the record can be re-synced from the iPhone, which is real behavioral value. It does not say whether related data (feedback, fuel logs, splits) is cascaded or orphaned, nor what permissions are required.

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-loaded with the action and scope in the first line, followed by useful consequences, then Args/Returns blocks. The boilerplate is slightly padded but each section carries information.

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?

With no output schema, the 'Returns: Confirmation with the deleted workout ID' line is necessary and present, and the recoverability note distinguishes this from an irreversible operation. The remaining gap is the lack of any note on related-record impact for a destructive tool with zero annotation coverage.

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 coverage is 0% and the only parameter is an untyped string field, so the description's 'UUID of the workout to delete' is the sole source of format semantics. That is a genuine addition, but it is the minimum needed for a destructive identifier and adds nothing on validation or sourcing the UUID.

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: 'Delete a recorded workout by ID.' The qualifier 'recorded' plus 'HealthKit workout record' implicitly separates it from delete_scheduled_workout, though no sibling is named.

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 name and the 'recorded workout' framing, but there is no explicit when-to-use, when-not-to-use, or routing to alternatives such as deleting a scheduled workout instead. The re-sync note hints at when deletion is safe but does not state a condition.

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