get_task_details
Retrieve detailed information about a specific task by its ID using the MCP Orchestrator Server, enabling efficient task tracking and management.
Instructions
Get details of a specific task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ID of the task to get details for |
Implementation Reference
- src/index.ts:307-322 (handler)The core handler logic for the 'get_task_details' tool. It extracts the task_id from arguments, retrieves the task from the in-memory tasks object, throws an error if not found, and returns the task details as JSON text content.case "get_task_details": { const { task_id } = request.params.arguments as { task_id: string }; debug(`Getting details for task ${task_id}`); const task = tasks[task_id]; if (!task) { throw new McpError(ErrorCode.InvalidRequest, `Task ${task_id} not found`); } return { content: [{ type: "text", text: JSON.stringify(task, null, 2) }] }; }
- src/index.ts:447-460 (registration)Tool registration in the ListTools response, defining the name, description, and input schema (requiring 'task_id' string). This advertises the tool's availability and expected inputs to MCP clients.{ name: "get_task_details", description: "Get details of a specific task", inputSchema: { type: "object", properties: { task_id: { type: "string", description: "ID of the task to get details for" } }, required: ["task_id"] } }
- src/index.ts:450-459 (schema)Input schema definition for the 'get_task_details' tool, specifying an object with a required 'task_id' string property.inputSchema: { type: "object", properties: { task_id: { type: "string", description: "ID of the task to get details for" } }, required: ["task_id"] }