uncompleteTask
Use this API tool to mark a previously completed task as incomplete in the Godspeed task application, ensuring accurate task status updates. Requires task ID as input.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:195-206 (handler)The handler function for the MCP 'uncompleteTask' tool. It takes a task ID, calls the GodspeedAPI.uncompleteTask method, and returns the result as formatted JSON text content or an error message.async ({ id }) => { try { const result = await godspeedApi.uncompleteTask(id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}` }] }; } }
- src/index.ts:192-194 (schema)Zod input schema for the 'uncompleteTask' tool, requiring a single 'id' parameter of type string.{ id: z.string() },
- src/index.ts:190-207 (registration)Registration of the 'uncompleteTask' MCP tool using server.tool(), including name, input schema, and handler function.server.tool( "uncompleteTask", { id: z.string() }, async ({ id }) => { try { const result = await godspeedApi.uncompleteTask(id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}` }] }; } } );
- src/godspeed.ts:282-284 (helper)Helper method in GodspeedAPI class that marks a task as incomplete by calling updateTask with is_complete: false.async uncompleteTask(id: string): Promise<ApiResponse<Task>> { return this.updateTask({ id, is_complete: false }); }