taskComplete
Mark tasks as completed in Routine by specifying the task ID. Streamline your productivity by managing task statuses directly through the MCP server.
Instructions
Complete a task.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/tools.ts:293-311 (handler)Handler function that executes the taskComplete tool: takes task ID, sends RPC request to 'task.complete', returns JSON response or error.async ({ id }) => { try { const data = await sendRpcRequest("task.complete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.complete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
- src/tools.ts:289-292 (schema)Input schema for taskComplete tool: requires a string 'id' for the task ID, validated with Zod./* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), },
- src/tools.ts:286-312 (registration)Registration of the taskComplete tool via server.tool call, including name, description, input schema, and handler function."taskComplete", "Complete a task.", { /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), }, async ({ id }) => { try { const data = await sendRpcRequest("task.complete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.complete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );