complete_task
Mark a Todoist task as completed by providing its task ID to update task status and manage your to-do list.
Instructions
Mark a task as done
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Implementation Reference
- todoist_server.py:236-246 (handler)The complete_task tool handler, decorated with @mcp.tool(). It marks the specified Todoist task as done using the todoist_api.close_task method, handling errors appropriately.@mcp.tool() def complete_task(task_id: str) -> str: """Mark a task as done""" try: task_id = task_id.strip('"') is_success = todoist_api.close_task(task_id=task_id) if not is_success: raise Exception return "Task closed successfully" except Exception as e: raise Exception(f"Couldn't close task {str(e)}")