Skip to main content
Glama

get_task

Retrieve a specific task by its ID or UUID from the Taskwarrior system. This tool enables agents to access individual task details for management and updates within the task-mcp server's claim-based workflow.

Instructions

Get a single task by ID or UUID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTask ID or UUID

Implementation Reference

  • The 'get_task' tool is registered and implemented directly in src/index.ts using the server.tool handler.
    server.tool('get_task', 'Get a single task by ID or UUID', { id: idParam }, async ({ id }) => {
      try {
        const tasks = await exportTasks({ status: 'all' });
        const task = tasks.find((t) => String(t.id) === id || t.uuid === id);
        if (!task) {
          return {
            content: [{ type: 'text', text: `No task found with id or uuid: ${id}` }],
            isError: true,
          };
        }
        return { content: [{ type: 'text', text: JSON.stringify(task, null, 2) }] };
      } catch (err) {
        return { content: [{ type: 'text', text: (err as Error).message }], isError: true };

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