Skip to main content
Glama

annotate_task

Add notes to tasks for tracking updates and context in task management systems, enabling organized collaboration and clear documentation.

Instructions

Add an annotation (note) to a task (auto-claims, renews lease)

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.
annotationYesThe annotation text to add

Implementation Reference

  • The `annotateTask` function implementation in `src/taskwarrior.ts`. It ensures the task is claimed by the agent and then runs the `task annotate` command.
    export async function annotateTask(id: string, annotation: string, agentId: string): Promise<void> {
      const uuid = await ensureClaim(id, agentId);
      try {
        await runCommand('task', [uuid, 'annotate', annotation]);
      } catch (err) {
        throw new Error(`Failed to annotate task ${id}: ${(err as Error).message}`);
      }
    }

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