Skip to main content
Glama

Delete an activity

delete_activity
DestructiveIdempotent

Delete an activity that was logged by hand, by you, or imported from a file: a double entry (the watch synced the same run too), a test, or one that never happened. Give its id (get_activities shows each activity's source). Activities that came from the watch are not deleted here: the user removes those in the Heza app. A planned workout it had ticked off stays done when another activity of the same kind is logged that day, and goes back to 'planned' otherwise. Confirm with the user 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": {
      "activity_id": "<activity_id>"
    },
    "name": "delete_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_idYesHeza activity id (UUID) from get_activities

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the description's burden is reduced — yet it still adds genuinely non-obvious behavior: a planned workout ticked off by the deleted activity stays completed if another same-kind activity is logged that day and otherwise reverts to 'planned'. It also imposes a confirm-with-user precondition, which is material for an irreversible-feeling destructive call.

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 verb and resource, and every sentence carries distinct information (deletable classes, exclusion, side effect, confirmation). The opening sentence is heavy with nested parentheticals, which slows parsing slightly, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter destructive tool with no output schema, the description covers everything an agent needs: eligibility rules, ineligibility, where the id comes from, the downstream state effect, and the confirmation requirement. No gap remains that would cause a misinvocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter already documents the UUID, so the baseline is 3. The description adds provenance value by telling the agent to obtain the id from get_activities and to use that tool's source field to verify the activity is deletable, which is meaningfully more than the schema states.

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

Purpose5/5

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

Opens with a specific verb+resource ("Delete an activity") and immediately scopes it to hand-logged, self-logged, or file-imported entries, with concrete examples (duplicate, test, never happened). It also states the exclusion — watch-sourced activities are not deleted here — so an agent can distinguish this from a generic delete without checking a schema.

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

Usage Guidelines5/5

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

Explicit when-to-use cases (double entry, test entry, entry that never happened), an explicit when-not (watch activities are removed by the user in the Heza app), a pointer to get_activities for discovering the id and its source, and a required confirmation step with the user. Both the selection condition and the alternative path are named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources