get_task
Retrieve detailed information about a specific task in Zoho Projects by providing the project ID and task ID to access task details and status.
Instructions
Get details of a specific task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| task_id | Yes | Task ID |
Implementation Reference
- src/index.ts:720-727 (handler)The handler function that executes the get_task tool by fetching task details from the Zoho Projects API endpoint and returning the JSON data as MCP-formatted text content.private async getTask(projectId: string, taskId: string) { const data = await this.makeRequest( `/portal/${this.config.portalId}/projects/${projectId}/tasks/${taskId}` ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/index.ts:307-314 (schema)Input schema defining the required parameters project_id and task_id for the get_task tool.inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, task_id: { type: "string", description: "Task ID" }, }, required: ["project_id", "task_id"], },
- src/index.ts:304-315 (registration)Tool registration in the MCP server's setTools call, specifying name, description, and input schema for get_task.{ name: "get_task", description: "Get details of a specific task", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID" }, task_id: { type: "string", description: "Task ID" }, }, required: ["project_id", "task_id"], }, },
- src/index.ts:574-575 (registration)Dispatch logic in the CallToolRequestHandler switch statement that routes get_task invocations to the handler method.case "get_task": return await this.getTask(params.project_id, params.task_id);