complete_task
Mark tasks as completed in Todoist by specifying the task ID, enabling efficient task management and progress tracking through direct integration.
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, which marks a Todoist task as completed by calling close_task on the Todoist API. It is registered using the @mcp.tool() decorator. Input schema is defined by the function signature (task_id: str) and docstring.@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)}")