Skip to main content
Glama

taskComplete

Mark tasks as completed in Routine by specifying the task ID. Streamline your productivity by managing task statuses directly through the MCP server.

Instructions

Complete a task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • Handler function that executes the taskComplete tool: takes task ID, sends RPC request to 'task.complete', returns JSON response or error.
    async ({ id }) => { try { const data = await sendRpcRequest("task.complete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.complete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } }
  • Input schema for taskComplete tool: requires a string 'id' for the task ID, validated with Zod.
    /* {"$id":"#task-id","$schema":"https://json-schema.org/draft/2019-09/schema","type":"string"} */ id: z.string(), },
  • src/tools.ts:286-312 (registration)
    Registration of the taskComplete tool via server.tool call, including name, description, input schema, and handler function.
    "taskComplete", "Complete 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.complete", [id]); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching task.complete: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } } );

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