Skip to main content
Glama
brysontang

DeltaTask MCP Server

by brysontang

get_task_by_id

Retrieve detailed information for a specific task using its unique identifier from the DeltaTask task management system.

Instructions

Get details for a specific task by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes

Implementation Reference

  • server.py:17-23 (handler)
    MCP tool handler for 'get_task_by_id' registered with @mcp.tool(). It calls TaskService.get_task_by_id and handles not found case.
    @mcp.tool()
    async def get_task_by_id(task_id: str) -> dict[str, Any]:
        """Get details for a specific task by ID."""
        task = service.get_task_by_id(task_id)
        if not task:
            return {"error": "Task not found"}
        return task
  • TaskService helper method that retrieves task by ID from repository, adds subtasks recursively, and returns the task or error.
    def get_task_by_id(self, task_id: str) -> Dict[str, Any]:
        """Get a specific task by ID with its subtasks."""
        task = self.repository.get_todo_by_id(task_id)
        if not task:
            return {"error": "Task not found"}
        
        # Add subtasks
        self._recursively_add_subtasks(task)
        
        return task

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/brysontang/DeltaTask'

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