Skip to main content
Glama

MCP Claude Code

by SDGLBL

todo_write

Create and manage structured task lists for coding sessions to organize multi-step tasks, track progress, and ensure thoroughness in completing complex projects.

Instructions

Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user. It also helps the user understand the progress of the task and overall progress of their requests.

When to Use This Tool

Use this tool proactively in these scenarios:

  1. Complex multi-step tasks - When a task requires 3 or more distinct steps or actions

  2. Non-trivial and complex tasks - Tasks that require careful planning or multiple operations

  3. User explicitly requests todo list - When the user directly asks you to use the todo list

  4. User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)

  5. After receiving new instructions - Immediately capture user requirements as todos. Feel free to edit the todo list based on new information.

  6. After completing a task - Mark it complete and add any new follow-up tasks

  7. When you start working on a new task, mark the todo as in_progress. Ideally you should only have one todo as in_progress at a time. Complete existing tasks before starting new ones.

When NOT to Use This Tool

Skip using this tool when:

  1. There is only a single, straightforward task

  2. The task is trivial and tracking it provides no organizational benefit

  3. The task can be completed in less than 3 trivial steps

  4. The task is purely conversational or informational

NOTE that you should use should not use this tool if there is only one trivial task to do. In this case you are better off just doing the task directly.

Examples of When to Use the Todo List

Examples of When NOT to Use the Todo List

python print("Hello World")

This will output the text "Hello World" to the console when executed.

Executes: npm install

The command completed successfully. Here's the output: [Output of npm install command]

All dependencies have been installed according to your package.json file.

Task States and Management

  1. Task States: Use these states to track progress:

    • pending: Task not yet started

    • in_progress: Currently working on (limit to ONE task at a time)

    • completed: Task finished successfully

    • cancelled: Task no longer needed

  2. Task Management:

    • Update task status in real-time as you work

    • Mark tasks complete IMMEDIATELY after finishing (don't batch completions)

    • Only have ONE task in_progress at any time

    • Complete current tasks before starting new ones

    • Cancel tasks that become irrelevant

  3. Task Breakdown:

    • Create specific, actionable items

    • Break complex tasks into smaller, manageable steps

    • Use clear, descriptive task names

When in doubt, use this tool. Being proactive with task management demonstrates attentiveness and ensures you complete all requirements successfully.

Input Schema

NameRequiredDescriptionDefault
session_idYesUnique identifier for the Claude Desktop session (generate using timestamp command)
todosYesThe complete todo list to store for this session

Input Schema (JSON Schema)

{ "$defs": { "TodoItem": { "description": "A single todo item.", "properties": { "content": { "description": "Description of the task to be completed", "minLength": 1, "title": "Content", "type": "string" }, "id": { "description": "Unique identifier for the task", "minLength": 3, "title": "Id", "type": "string" }, "priority": { "description": "Priority level of the task", "enum": [ "high", "medium", "low" ], "title": "Priority", "type": "string" }, "status": { "description": "Current status of the task", "enum": [ "pending", "in_progress", "completed" ], "title": "Status", "type": "string" } }, "required": [ "content", "status", "priority", "id" ], "title": "TodoItem", "type": "object" } }, "properties": { "session_id": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" } ], "description": "Unique identifier for the Claude Desktop session (generate using timestamp command)", "title": "Session Id" }, "todos": { "description": "The complete todo list to store for this session", "items": { "$ref": "#/$defs/TodoItem" }, "minItems": 1, "title": "Todos", "type": "array" } }, "required": [ "session_id", "todos" ], "type": "object" }

Other Tools from MCP Claude Code

Related Tools

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/SDGLBL/mcp-claude-code'

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