Skip to main content
Glama

delete_task

Remove a task from the task-mcp server by providing its ID and agent identifier. The tool automatically claims the task before deletion to ensure proper management.

Instructions

Delete a task. Auto-claims then releases after deletion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTask ID or UUID
agent_idYesGlobally unique agent identifier (e.g. "claude-opus-<uuid>"). Each agent instance MUST use a distinct ID to prevent collisions between parallel agents.

Implementation Reference

  • The handler function that executes the deletion command for a taskwarrior task.
    export async function deleteTask(id: string, agentId: string): Promise<void> {
      const uuid = await ensureClaim(id, agentId);
      try {
        await runCommand('task', ['rc.confirmation=no', uuid, 'delete']);
      } catch (err) {
        throw new Error(`Failed to delete task ${id}: ${(err as Error).message}`);
      }
      await releaseClaim(uuid);
    }
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It successfully reveals the side-effect behavior (auto-claiming and releasing) that isn't obvious from the schema. However, it fails to explicitly warn that deletion is destructive/permanent, which is critical safety information for a deletion operation without destructiveHint annotations.

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?

The description is optimally concise with two efficient sentences. It front-loads the primary action ('Delete a task') before detailing implementation specifics ('Auto-claims...'). Every word earns its place; there is no redundant or filler text.

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

Completeness3/5

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

Given the simple 2-parameter schema with full coverage and no output schema, the description is nearly sufficient. However, for a destructive mutation tool lacking annotations, the description should explicitly state that the operation is irreversible or permanent to meet minimum completeness standards.

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?

With 100% schema coverage, the baseline is 3. The description adds semantic value beyond the schema by implying that agent_id is used for the auto-claim mechanism mentioned ('Auto-claims'), giving context for why the agent identifier is required rather than just listing it as a technical requirement.

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?

The description clearly states the primary action ('Delete a task') with a specific verb and resource. It distinguishes from sibling tools (create_task, update_task, etc.) by specifying deletion. However, it could strengthen differentiation by explicitly stating this permanently removes the task versus completing or archiving it.

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?

The description implies usage context through the 'Auto-claims then releases' detail, suggesting this handles claiming automatically versus tools that require explicit claiming first. However, it lacks explicit when-to-use guidance (e.g., 'Use this to permanently remove a task rather than completing it') or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maxronner/taskwarrior-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server