complete_task
Mark tasks as completed in Todoist using task IDs to track progress and manage workflows.
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)MCP tool handler function that marks a Todoist task as completed by calling the client method. The @mcp.tool() decorator registers it as an MCP tool and defines the schema from params/docstring.@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 method in TodoistClient class that performs the actual API call to complete the task via Todoist REST API.async def complete_task(self, task_id: str) -> None: """Mark a task as completed.""" await self._request("POST", f"/tasks/{task_id}/close")
- todoist_mcp/server.py:196-196 (registration)The @mcp.tool() decorator registers the complete_task function as an MCP tool.@mcp.tool()