Skip to main content
Glama

open_task_details

Retrieve detailed information about a specific task using its taskId to inspect status, progress, and execution data within the task management system.

Instructions

Get details of a specific task by 'taskId'. This is for inspecting task information at any point.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYes

Implementation Reference

  • The core handler function that implements the logic for the 'open_task_details' tool. It searches all requests for the task by ID and returns formatted details including ID, title, description, status, and completion details if available.
      public async openTaskDetails(taskId: string) {
        for (const request of this.data.requests) {
          const task = request.tasks.find((t) => t.id === taskId);
          if (task) {
            return {
              message: `Task Details:
    ID: ${task.id}
    Title: ${task.title}
    Description: ${task.description}
    Status: ${task.approved ? "Approved" : task.done ? "Done" : "Pending"}
    ${
      task.completedDetails
        ? `Completion Details: ${task.completedDetails}`
        : ""
    }`,
            };
          }
        }
        throw new Error("Task not found");
      }
  • Zod schema defining the input parameters for the 'open_task_details' tool, which requires a 'taskId' string.
    const OpenTaskDetailsSchema = z.object({
      taskId: z.string(),
    });
  • index.ts:170-174 (registration)
    Tool registration in the listTools() method, defining the name, description, and input schema for 'open_task_details'.
    {
      name: "open_task_details",
      description: "Get details of a specific task.",
      inputSchema: OpenTaskDetailsSchema,
    },
  • index.ts:247-253 (registration)
    Dispatcher case in callTool() method that validates input using the schema and delegates to the openTaskDetails handler.
    case "open_task_details": {
      const parsed = OpenTaskDetailsSchema.safeParse(parameters);
      if (!parsed.success) {
        throw new Error(`Invalid parameters: ${parsed.error}`);
      }
      return this.openTaskDetails(parsed.data.taskId);
    }

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/Rudra-ravi/mcp-taskmanager'

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