Skip to main content
Glama

taskUncomplete

Revert a completed task to an incomplete status using Routine's task management system by specifying the task ID.

Instructions

Uncomplete a task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • src/tools.ts:835-861 (registration)
    Registration of the 'taskUncomplete' MCP tool, including inline Zod schema for input (task ID) and the handler function that proxies to the backend RPC 'task.uncomplete'.
    "taskUncomplete", "Uncomplete a task.", { /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), }, async ({ id }) => { try { const data = await sendRpcRequest("task.uncomplete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.uncomplete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );
  • The handler function executes the tool logic by sending an RPC request to 'task.uncomplete' with the task ID and returns the JSON response or an error message.
    async ({ id }) => { try { const data = await sendRpcRequest("task.uncomplete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.uncomplete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • Zod schema for the input parameter 'id' which is a string representing the task ID.
    /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), },

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/routineco/mcp-server'

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