Skip to main content
Glama

update_todo_status

Modify the completion status of a specific todo item using its ID in the Software Planning Tool, enabling accurate progress tracking and task management during software development planning.

Instructions

Update the completion status of a todo item

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isCompleteYesNew completion status
todoIdYesID of the todo item

Implementation Reference

  • src/index.ts:191-208 (registration)
    Registration of the 'update_todo_status' tool in the ListToolsRequestSchema handler, including name, description, and input schema.
    { name: 'update_todo_status', description: 'Update the completion status of a todo item', inputSchema: { type: 'object', properties: { todoId: { type: 'string', description: 'ID of the todo item', }, isComplete: { type: 'boolean', description: 'New completion status', }, }, required: ['todoId', 'isComplete'], }, },
  • Input schema definition for the update_todo_status tool, specifying todoId (string) and isComplete (boolean) as required parameters.
    inputSchema: { type: 'object', properties: { todoId: { type: 'string', description: 'ID of the todo item', }, isComplete: { type: 'boolean', description: 'New completion status', }, }, required: ['todoId', 'isComplete'], },
  • The handler function for the update_todo_status tool in the CallToolRequestSchema switch statement. It validates the current goal exists, extracts parameters, calls storage.updateTodoStatus, and returns the updated todo as JSON-formatted text.
    case 'update_todo_status': { if (!this.currentGoal) { throw new McpError( ErrorCode.InvalidRequest, 'No active goal. Start a new planning session first.' ); } const { todoId, isComplete } = request.params.arguments as { todoId: string; isComplete: boolean; }; const updatedTodo = await storage.updateTodoStatus( this.currentGoal.id, todoId, isComplete ); return { content: [ { type: 'text', text: JSON.stringify(updatedTodo, null, 2), }, ], }; }
  • Type definition for Todo interface, which includes the isComplete field updated by the tool.
    export interface Todo { id: string; title: string; description: string; complexity: number; codeExample?: string; isComplete: boolean; createdAt: string; updatedAt: 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/NightTrek/Software-planning-mcp'

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