Skip to main content
Glama

complete_task

Mark a task as completed in Taskwarrior by claiming it with an agent ID, then automatically releasing it after finishing the task to manage workflow efficiently.

Instructions

Mark a task as done. Auto-claims then releases after completion.

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 core logic that executes the 'done' command via Taskwarrior.
    export async function completeTask(id: string, agentId: string): Promise<void> {
      const uuid = await ensureClaim(id, agentId);
      try {
        await runCommand('task', ['rc.confirmation=no', uuid, 'done']);
      } catch (err) {
        throw new Error(`Failed to complete task ${id}: ${(err as Error).message}`);
      }
      await releaseClaim(uuid);
    }
  • src/index.ts:176-191 (registration)
    The registration of the 'complete_task' tool in the MCP server.
    server.tool(
      'complete_task',
      'Mark a task as done. Auto-claims then releases after completion.',
      {
        id: idParam,
        agent_id: agentIdParam,
      },
      async ({ id, agent_id }) => {
        try {
          await completeTask(id, agent_id);
          return { content: [{ type: 'text', text: `Task ${id} completed.` }] };
        } catch (err) {
          return { content: [{ type: 'text', text: (err as Error).message }], isError: true };
        }
      },
    );
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It successfully adds critical behavioral context about the 'auto-claims then releases' mechanism not visible in the schema. However, it omits other essential behavioral traits for a state-mutation tool: whether the operation is idempotent, if 'completing' an already-done task is an error, and what specific side effects occur (notifications, project updates, etc.).

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?

Extremely efficient two-sentence structure with zero redundancy. The first sentence states the primary effect; the second sentence adds the crucial claim/release behavioral detail. Every word earns its place.

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 lack of annotations and output schema, the description provides the minimum viable context for a 2-parameter mutation tool. It explains the action and the transient claim behavior, but leaves gaps regarding error conditions, return values, or the implications of the completion state on related workflows (e.g., dependent tasks).

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 description coverage is 100%, establishing a baseline of 3. The description mentions 'auto-claims' which indirectly hints at the purpose of 'agent_id', but it does not add explicit parameter semantics, validation constraints, or usage examples beyond what the schema already documents for 'id' and 'agent_id'.

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 core action ('Mark a task as done') with a specific verb and resource. However, it does not differentiate from the sibling 'update_task' tool, which could also potentially modify task status, leaving ambiguity about when to prefer 'complete' over a generic update.

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

Usage Guidelines2/5

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

No explicit guidance is provided on when to use this tool versus alternatives (e.g., 'update_task' for partial modifications), nor are prerequisites mentioned (such as task ownership requirements implied by the claim mechanism). The description assumes the agent knows when completion is appropriate.

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