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 || []; }

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