Skip to main content
Glama

reopen_task

Reopen a completed Todoist task by providing its ID to restore it to an active status for continued management.

Instructions

Reopen a completed task.

Args:
    task_id: The ID of the task to reopen

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes

Implementation Reference

  • MCP tool handler and registration for 'reopen_task'. Calls the TodoistClient's reopen_task method after checking client availability and returns success message.
    @mcp.tool()
    async def reopen_task(task_id: str) -> str:
        """Reopen a completed task.
        
        Args:
            task_id: The ID of the task to reopen
        """
        _check_client()
        
        await todoist_client.reopen_task(task_id)
        return f"Task {task_id} reopened successfully!"
  • TodoistClient helper method that makes the Todoist API POST request to /tasks/{task_id}/reopen to reopen the task.
    async def reopen_task(self, task_id: str) -> None:
        """Reopen a completed task."""
        await self._request("POST", f"/tasks/{task_id}/reopen")

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