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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The 12-character alphanumeric ID of the task |
Implementation Reference
- index.ts:411-417 (handler)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) }], }; }
- tools.ts:256-271 (schema)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, ];