Skip to main content
Glama

Delete Tasks

delete_task
DestructiveIdempotent

Moves one or more tasks to Trash under the board's rule: a task's creator, or someone at the workspace's task-delete floor. Each task refused (not found, not allowed) is listed with the reason. Only the task's creator or a workspace admin can restore it, so the result names the call that brings back the ones the person can restore and says who can restore the rest.

Input Schema

NameRequiredDescriptionDefault
userIdNoNot needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user.
taskIdsYesOne to 50 task ids.

Output Schema

NameRequiredDescriptionDefault
undoNoThe call that reverses this one, with its arguments.
refusedNo
trashedNo
restoreNoteNoThe trashed tasks this person cannot restore, and who can.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only flag destructive=true and idempotent=true; the description adds substantial context beyond that: deletion is reversible via Trash, refusals are reported per-task with reasons, and restoration is restricted to the creator or a workspace admin. That is exactly the behavioral depth an agent needs before a destructive batch 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?

Three sentences, front-loaded with the action and its rule, and every sentence carries information. The final sentence is somewhat convoluted ('says who can restore the rest'), costing a little readability but not enough to waste the content.

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?

With an output schema present, return structure needn't be spelled out, yet the description still explains the meaningful parts of the result (refusal reasons, restore-call naming, restore authorization). For a destructive batch tool this is complete.

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% for both parameters, so the schema already documents taskIds limits and the userId signed-in caveat. The description's permission rules loosely imply the userId context but add no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 (moves to Trash), resource (one or more tasks), and the governing rule (board's delete policy), so an agent knows exactly what the operation does and that it is a soft delete rather than a permanent purge. This cleanly separates it from sibling restore_task, which the description implicitly references.

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

Usage Guidelines4/5

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

Gives clear conditions for use: the caller must be the task's creator or at the workspace's task-delete floor, and it explains what happens to refused tasks. It stops short of explicitly routing the agent to restore_task as the alternative for undoing, though it gestures at it by describing the restore call.

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