Skip to main content
Glama

get_task

Retrieve detailed task information including title, description, status, priority, and custom properties by providing the 12-character alphanumeric task ID in Dart MCP Server.

Instructions

Retrieve an existing task by its ID. Returns the task's information including title, description, status, priority, dates, custom properties, and more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe 12-character alphanumeric ID of the task

Implementation Reference

  • The handler function for the 'get_task' tool. Validates the input ID using getIdValidated, fetches the task using TaskService.getTask(id), and returns the task as JSON text.
    case GET_TASK_TOOL.name: { const id = getIdValidated(args.id); const task = await TaskService.getTask(id); return { content: [{ type: "text", text: JSON.stringify(task, null, 2) }], }; }
  • Defines the tool schema including name, description, and input schema that requires a task 'id' parameter with validation.
    export const GET_TASK_TOOL: Tool = { name: "get_task", description: "Retrieve an existing task by its ID. Returns the task's information including title, description, status, priority, dates, custom properties, and more.", inputSchema: { type: "object", properties: { id: { type: "string", description: "The 12-character alphanumeric ID of the task", pattern: "^[a-zA-Z0-9]{12}$", }, }, required: ["id"], }, };
  • index.ts:192-214 (registration)
    Registers the 'get_task' tool (GET_TASK_TOOL) in the TOOLS array, which is returned by ListToolsRequestSchema handler, making it available to MCP clients.
    const TOOLS = [ // Config GET_CONFIG_TOOL, // Tasks CREATE_TASK_TOOL, LIST_TASKS_TOOL, GET_TASK_TOOL, UPDATE_TASK_TOOL, DELETE_TASK_TOOL, // Docs CREATE_DOC_TOOL, LIST_DOCS_TOOL, GET_DOC_TOOL, UPDATE_DOC_TOOL, DELETE_DOC_TOOL, // Comments ADD_TASK_COMMENT_TOOL, LIST_TASK_COMMENTS_TOOL, // Other GET_DARTBOARD_TOOL, GET_FOLDER_TOOL, GET_VIEW_TOOL, ];

Other Tools

Related 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/its-dart/dart-mcp-server'

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