Skip to main content
Glama
blizzy78
by blizzy78

task_info

Retrieve detailed information for specific tasks by providing their IDs, enabling status tracking and management within the Task Manager MCP Server.

Instructions

Returns full details for requested tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIDsYesA list of task IDs to retrieve information for

Implementation Reference

  • The main execution logic for the 'task_info' tool: retrieves tasks by IDs from taskDB, collects not found IDs, computes incomplete tasks in tree if applicable, returns structured content.
    export async function handleTaskInfo({ taskIDs }: TaskInfoArgs, taskDB: TaskDB, singleAgent: boolean) { const tasks = new Array<Task>() const notFoundTaskIDs = new Array<TaskID>() for (const taskID of taskIDs) { const task = taskDB.get(taskID) if (!task) { notFoundTaskIDs.push(taskID) continue } tasks.push(task) } const incompleteTaskIDs = notFoundTaskIDs.length === 0 ? taskDB.incompleteTasksInTree(taskIDs[0]).map((t) => t.taskID) : undefined const res = { tasks, notFoundTasks: notFoundTaskIDs, incompleteTasksIdealOrder: singleAgent ? incompleteTaskIDs : undefined, } return { content: [], structuredContent: res, } satisfies CallToolResult }
  • Zod input schema for the task_info tool, requiring a non-empty array of task IDs.
    export const TaskInfoArgsSchema = z.object({ taskIDs: TaskIDSchema.array().min(1).describe('A list of task IDs to retrieve information for'), })
  • tools/index.ts:39-42 (registration)
    Maps the TASK_INFO name to its handler and schema in the central toolHandlers() function, used for dispatching tool calls.
    [TASK_INFO]: { handler: handleTaskInfo, schema: TaskInfoArgsSchema, } satisfies ToolHandlerInfo,
  • Tool metadata definition (name, title, description, inputSchema) included in the tools() array for MCP tool exposure.
    export const taskInfoTool = { name: TASK_INFO, title: 'Get task info', description: 'Returns full details for requested tasks', inputSchema: zodToJsonSchema(TaskInfoArgsSchema, { $refStrategy: 'none' }), }

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/blizzy78/mcp-task-manager'

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