Skip to main content
Glama

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

Implementation Reference

  • 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)}` }] }; } }
  • 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)}` }] }; } } );
  • 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 }); }

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/AliNagy/godspeed-mcp'

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