Skip to main content
Glama

remove_todo

Delete a specific task from your software development plan by providing its unique identifier to maintain an organized project workflow.

Instructions

Remove a todo item from the current plan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
todoIdYesID of the todo item to remove

Implementation Reference

  • MCP tool handler for 'remove_todo': validates current goal, extracts todoId from arguments, calls storage.removeTodo, and returns success message.
    case 'remove_todo': {
      if (!this.currentGoal) {
        throw new McpError(
          ErrorCode.InvalidRequest,
          'No active goal. Start a new planning session first.'
        );
      }
    
      const { todoId } = request.params.arguments as { todoId: string };
      await storage.removeTodo(this.currentGoal.id, todoId);
    
      return {
        content: [
          {
            type: 'text',
            text: `Successfully removed todo ${todoId}`,
          },
        ],
      };
    }
  • src/index.ts:169-182 (registration)
    Registers the 'remove_todo' tool in the list of available tools, including its description and input schema.
    {
      name: 'remove_todo',
      description: 'Remove a todo item from the current plan',
      inputSchema: {
        type: 'object',
        properties: {
          todoId: {
            type: 'string',
            description: 'ID of the todo item to remove',
          },
        },
        required: ['todoId'],
      },
    },
  • Core implementation that removes the specified todo from the plan by filtering the todos array and persisting changes to storage.
    async removeTodo(goalId: string, todoId: string): Promise<void> {
      const plan = await this.getPlan(goalId);
      if (!plan) {
        throw new Error(`No plan found for goal ${goalId}`);
      }
    
      plan.todos = plan.todos.filter((todo: Todo) => todo.id !== todoId);
      plan.updatedAt = new Date().toISOString();
      await this.save();
    }
  • Defines the input schema for the 'remove_todo' tool: requires a 'todoId' string.
    inputSchema: {
      type: 'object',
      properties: {
        todoId: {
          type: 'string',
          description: 'ID of the todo item to remove',
        },
      },
      required: ['todoId'],
    },

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must convey behavioral traits. The verb 'Remove' clearly signals a mutating operation, and no contradictory behavior is stated. However, it does not disclose whether the removal is permanent, any required prerequisites, or side effects on the plan.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, direct sentence with no redundancy. It is appropriately sized and front-loaded with the action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter mutation with no output schema or annotations, the description clearly states the action and scope. However, it omits details about return values, error conditions, or prerequisites, and the meaning of 'current plan' is left implicit. These gaps limit its completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema fully documents todoId, and the description adds the important context that removal occurs 'from the current plan', which hints that todoId must belong to an active plan. This contextualizes the parameter beyond its basic ID label.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Remove' with resource 'a todo item' and scope 'from the current plan', clearly distinguishing it from sibling tools like add_todo, get_todos, and update_todo_status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies a use case (removing an item) but provides no explicit guidance on when to use this tool over alternatives such as update_todo_status (which changes status) or explicit exclusions. Sibling tools exist but are not referenced.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.