Skip to main content
Glama

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
NameRequiredDescriptionDefault
task_idYes

Implementation Reference

  • 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!"
  • 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")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dan-bailey/todoist-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server