complete_task
Mark Todoist tasks as completed using their task ID to track progress and maintain organized task lists.
Instructions
Mark a task as completed.
Args:
task_id: The ID of the task to complete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Implementation Reference
- todoist_mcp/server.py:196-207 (handler)The primary MCP tool handler for 'complete_task', registered via @mcp.tool() decorator. It validates the client and delegates to TodoistClient.complete_task, returning a success message.@mcp.tool() async def complete_task(task_id: str) -> str: """Mark a task as completed. Args: task_id: The ID of the task to complete """ _check_client() await todoist_client.complete_task(task_id) return f"Task {task_id} completed successfully!"
- todoist_mcp/client.py:142-145 (helper)Supporting client method that performs the actual Todoist API call to close (complete) the task.async def complete_task(self, task_id: str) -> None: """Mark a task as completed.""" await self._request("POST", f"/tasks/{task_id}/close")