basecamp_uncomplete_todo
Mark a completed Basecamp todo as incomplete to restore it to your active task list. This action reverses todo completion status for better task management.
Instructions
Mark a todo as incomplete (undo completion).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_id | Yes | Basecamp resource identifier | |
| todo_id | Yes |
Implementation Reference
- src/tools/todos.ts:261-277 (handler)Handler function that initializes the Basecamp client and calls the uncomplete method on the todo resource to mark the specified todo as incomplete. Handles errors with a standard error message.async (params) => { try { const client = await initializeBasecampClient(); await client.todos.uncomplete({ params: { bucketId: params.bucket_id, todoId: params.todo_id }, }); return { content: [{ type: "text", text: "Todo marked as incomplete!" }], }; } catch (error) { return { content: [{ type: "text", text: handleBasecampError(error) }], }; } }, );
- src/schemas/common.ts:10-12 (schema)Zod schema for Basecamp resource IDs (number), used in the input schema for bucket_id and todo_id parameters.export const BasecampIdSchema = z .number() .describe("Basecamp resource identifier");
- src/tools/todos.ts:245-277 (registration)MCP server registration of the basecamp_uncomplete_todo tool, defining its title, description, input schema (using BasecampIdSchema for parameters), annotations, and linking to the handler function.server.registerTool( "basecamp_uncomplete_todo", { title: "Uncomplete Basecamp Todo", description: "Mark a todo as incomplete (undo completion).", inputSchema: { bucket_id: BasecampIdSchema, todo_id: BasecampIdSchema, }, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, }, async (params) => { try { const client = await initializeBasecampClient(); await client.todos.uncomplete({ params: { bucketId: params.bucket_id, todoId: params.todo_id }, }); return { content: [{ type: "text", text: "Todo marked as incomplete!" }], }; } catch (error) { return { content: [{ type: "text", text: handleBasecampError(error) }], }; } }, );