Skip to main content
Glama
awwaiid

TaskWarrior MCP Server

by awwaiid

add_task

Create new tasks in TaskWarrior with details like description, due date, priority, project, and tags to organize your workflow.

Instructions

Add a new task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYes
dueNo
priorityNo
projectNo
tagsNo

Implementation Reference

  • Switch case handling the 'add_task' tool: parses input with addTaskRequest schema, builds TaskWarrior 'task add' command from description, due, priority, project, tags, executes via execSync, returns output as text content.
    case "add_task": {
      const parsed = addTaskRequest.safeParse(args);
      if (!parsed.success) {
        throw new Error(`Invalid arguments for add_task: ${parsed.error}`);
      }
    
      let task_args = [parsed.data.description];
      
      if (parsed.data.due) {
        task_args.push(`due:${parsed.data.due}`);
      }
      if (parsed.data.priority) {
        task_args.push(`priority:${parsed.data.priority}`);
      }
      if (parsed.data.project) {
        task_args.push(`project:${parsed.data.project}`);
      }
      if (parsed.data.tags) {
        for (let tag of parsed.data.tags) {
          task_args.push(`+${tag}`);
        }
      }
    
      const content = execSync(`task add ${task_args.join(" ")}`, { maxBuffer: 1024 * 1024 * 10 }).toString().trim();
      return {
        content: [{ type: "text", text: content }],
      };
    }
  • Zod schema defining the input for 'add_task': required description, optional due (ISO), priority (H/M/L), project, tags.
    const addTaskRequest = z.object({
      description: z.string(),
      // Optional fields that can be set when adding
      due: z.string().optional(), // ISO timestamp
      priority: z.enum(["H", "M", "L"]).optional(),
      project: z.string().regex(/^[a-z.]+$/).optional(),
      tags: z.array(z.string().regex(/^a-z$/)).optional(),
    });
  • index.ts:106-110 (registration)
    Tool registration in ListTools response: defines name, description, and converts addTaskRequest Zod schema to JSON schema for input.
    {
      name: "add_task",
      description: "Add a new task",
      inputSchema: zodToJsonSchema(addTaskRequest) as ToolInput,
    },
  • Response schema for 'add_task' aliases the shared taskSchema.
    const addTaskResponse = taskSchema;
Behavior1/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 but provides none. 'Add a new task' implies a write/mutation operation, but there's no information about permissions required, side effects, error conditions, rate limits, or what happens upon success. This leaves the agent completely in the dark about the tool's behavior beyond the basic action implied by the name.

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 maximally concise at just three words. While this represents severe under-specification rather than ideal conciseness, from a pure length perspective, there's zero wasted space. Every word earns its place, though the place is too small for adequate documentation.

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

Completeness1/5

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

Given a mutation tool with 5 parameters, 0% schema description coverage, no annotations, and no output schema, the description is completely inadequate. It provides only the most basic action statement without any of the necessary context about how to use the tool effectively, what it returns, or what constraints apply. This leaves the agent with insufficient information to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 5 parameters (only 1 required), the description provides zero information about any parameters. The schema shows parameters for description, due date, priority, project, and tags, but the description doesn't mention any of these or provide context about their meaning, format, or relationships. This leaves all parameter semantics undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Add a new task' is a tautology that essentially restates the tool name without adding meaningful differentiation. While it specifies the verb 'add' and resource 'task', it doesn't distinguish this tool from its siblings (get_next_tasks, mark_task_done) or provide any scope about what kind of tasks are being added. This is minimal information that barely exceeds a 1 score.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance about when to use this tool versus its siblings. There's no mention of prerequisites, appropriate contexts, or alternatives. An agent would have to guess based on tool names alone, which is insufficient for effective tool selection.

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/awwaiid/mcp-server-taskwarrior'

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