Skip to main content
Glama

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

Implementation Reference

  • 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!"
  • 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")
  • The @mcp.tool() decorator registers the complete_task function as an MCP tool.
    @mcp.tool()

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