Skip to main content
Glama
Johnxjp

Todoist Python MCP Server

by Johnxjp

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

Implementation Reference

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

Other Tools

Related Tools

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/Johnxjp/todoist-mcp-python'

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