Skip to main content
Glama

delete_work_package

DestructiveIdempotent

Permanently deletes a work package and related time/cost entries, relations, attachments, and history; previews first and requires explicit confirmation because it cannot be undone.

Instructions

Delete a work package with its time and cost entries, relations, attachments and history.

This cannot be undone. Up to 17.6 all its descendants are deleted too; 17.7+ only those you may delete, the others lose their parent.

Input Schema

NameRequiredDescriptionDefault
confirmNofalse: preview only, nothing changes. true: applies it; get the user's approval of the preview first.
work_package_idYesWork package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.4

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by enumerating exactly what is destroyed alongside the work package and by disclosing version-dependent behavior: pre-17.6 all descendants are deleted, while 17.7+ only deletable descendants go and the rest are re-parented. Combined with the explicit 'cannot be undone' warning, this is precisely the behavioral context an agent needs before a 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the destructive scope first, then the irreversibility and version caveat. No filler, and the highest-stakes information is front-loaded.

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?

For a destructive, no-output-schema tool, this covers cascade effects, irreversibility, and version-dependent descendant handling. It is slightly short on operational context such as required permissions or what the preview mode returns, but nothing essential to calling it safely is missing.

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 100% and the schema itself is unusually rich (the confirm parameter explains preview-vs-apply and the approval step; work_package_id distinguishes numeric id from display id). The description adds nothing about parameters, so the baseline 3 is warranted — the schema, not the prose, does the work.

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?

States a specific verb ('Delete') plus resource ('work package') and immediately scopes the cascade (time and cost entries, relations, attachments, history). That makes it trivially distinguishable from siblings like delete_relation, delete_attachment, or update_work_package.

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?

Implicitly frames usage by spelling out the consequences of deleting, but never says when to choose this over alternatives (e.g., detaching a relation via delete_relation, or closing instead of deleting). No explicit prerequisites, permission notes, or when-not-to-use guidance.

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