Skip to main content
Glama

Delete work package

delete_work_package
Destructive

Permanently removes a work package and attached comments, attachments, time entries, and relations after explicit confirmation; no API-side undo.

Instructions

Permanently delete a work package and everything attached to it.

Use only on explicit user instruction. Deletion removes the work package with its comments, attachments, time entries and relations, and OpenProject offers no API-side undo.

Returns a small confirmation object once OpenProject accepts the deletion.

Pitfalls: children are not deleted with the parent, so check get_work_package(id, include=['children']) first and decide what happens to them. If you only want the work package out of the way, update_work_package(id, status=<a closed status>) is almost always the better answer — get_project_metadata lists which statuses this instance treats as closed.

Input Schema

NameRequiredDescriptionDefault
idYesWork package id to delete permanently.
confirmNoMust be true. Ask the user to confirm first — the API offers no undo. Calling with confirm=false returns a confirmation_required error rather than deleting anything.

Output Schema

NameRequiredDescriptionDefault
idYes
deletedYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.0
    • removedOutput schema / description
      Removed value: -"Outcome of ``delete_work_package``."
    • removedOutput schema / properties / deleted / description
      Removed value: -"True once OpenProject accepted the deletion."
    • removedOutput schema / properties / id / description
      Removed value: -"Id of the work package that was deleted."
    • removedOutput schema / properties / message / description
      Removed value: -"Human-readable confirmation."
  2. First observedv0.1.0

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 and non-idempotent, but the description goes well beyond them: it enumerates exactly what is destroyed (comments, attachments, time entries, relations), states there is no API-side undo, discloses the confirm-gate behavior, and warns that children are not cascaded. That last point is the kind of non-obvious behavior an agent cannot infer from annotations or schema.

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 core action and the safety gate, then organized into clearly labeled paragraphs (deletion scope, return, pitfalls/alternatives). The only near-waste is the sentence describing the returned confirmation object, which duplicates what the output schema already provides.

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 destructive two-parameter mutation tool with an output schema, everything an agent needs is present: cascade scope, irreversibility, confirmation requirement, the children caveat, and a recommended safer alternative. Nothing material is left to inference.

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%, so both parameters are already well documented, including the confirm=false failure mode — baseline would be 3. The description adds a small amount of extra framing by tying the child-check to the id argument and reinforcing the irreversibility rationale behind confirm, but it does not introduce new parameter semantics beyond the schema.

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 and resource plus the key qualifier ("Permanently delete a work package and everything attached to it"), which is immediately distinguishable from siblings like delete_work_package_relation or delete_project. The scope of the deletion is stated up front rather than buried.

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?

Explicitly gates usage ("Use only on explicit user instruction") and names concrete alternatives with the condition that selects them: update_work_package with a closed status to get the item out of the way, and get_project_metadata to discover which statuses count as closed. It also tells the agent to check for children first via get_work_package, which is a genuine when-to-do-this-before rule.

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