Skip to main content
Glama

get_todos

Retrieve all tasks in the current software development plan to track progress and manage implementation details.

Instructions

Get all todos in the current plan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler for the 'get_todos' tool in the MCP server. It checks if a current goal exists, fetches the todos using storage.getTodos, and returns them serialized as JSON.
    case 'get_todos': {
      if (!this.currentGoal) {
        throw new McpError(
          ErrorCode.InvalidRequest,
          'No active goal. Start a new planning session first.'
        );
      }
    
      const todos = await storage.getTodos(this.currentGoal.id);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(todos, null, 2),
          },
        ],
      };
    }
  • src/index.ts:183-190 (registration)
    Registration of the 'get_todos' tool in the list of available tools, including its name, description, and input schema (empty object).
    {
      name: 'get_todos',
      description: 'Get all todos in the current plan',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema for the 'get_todos' tool, which requires no parameters (empty properties).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Helper function in storage that retrieves the list of todos for a specific goal from the implementation plan.
    async getTodos(goalId: string): Promise<Todo[]> {
      const plan = await this.getPlan(goalId);
      return plan?.todos || [];
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It clearly indicates a read-only operation and adds the 'current plan' scope, but it does not disclose return format, ordering, or behavior when no plan is active. For a simple getter, this is adequate but minimal.

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?

The description is a single concise sentence ('Get all todos in the current plan') that conveys all essential information without redundancy or filler. Every word contributes to the meaning.

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

Completeness4/5

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

For a zero-parameter read-only tool, this description is nearly complete. It states the resource and scope. There is no output schema, so the description could theoretically mention the return format, but 'get all todos' sufficiently implies the response. Sibling tool names further clarify context.

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 tool has zero parameters, so the schema fully covers parameter semantics. With 0 params, the baseline is 4; the description adds no parameter-related detail, but none is needed.

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 a specific verb ('Get'), identifies the resource ('all todos'), and scopes it ('current plan'). It clearly distinguishes this from sibling tools like get_plan (plan-level data) and add_todo/remove_todo/update_todo_status (mutating operations).

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 phrase 'in the current plan' implies this is the read-only counterpart to the todo mutation tools, but the description does not explicitly state when to use this tool over alternatives or mention exclusions. No direct alternative or when-not-to-use guidance is provided.

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