Skip to main content
Glama

list_tasks

Retrieve tasks from TodoPomo MCP Server with optional status and priority filters to manage productivity workflows.

Instructions

List all tasks with optional filtering

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by status
priorityNoFilter by priority

Implementation Reference

  • Handler for the list_tasks tool: filters tasks by status and priority if provided, otherwise lists all, and returns JSON with tasks and count.
    case "list_tasks": { let filteredTasks = data.tasks; if (args.status && args.status !== "all") { filteredTasks = filteredTasks.filter((t) => t.status === args.status); } if (args.priority && args.priority !== "all") { filteredTasks = filteredTasks.filter( (t) => t.priority === args.priority ); } return { content: [ { type: "text", text: JSON.stringify( { success: true, tasks: filteredTasks, count: filteredTasks.length }, null, 2 ), }, ], }; }
  • src/index.ts:111-129 (registration)
    Registration of the list_tasks tool in the TOOLS array, including name, description, and input schema.
    { name: "list_tasks", description: "List all tasks with optional filtering", inputSchema: { type: "object", properties: { status: { type: "string", enum: ["pending", "in-progress", "completed", "all"], description: "Filter by status", }, priority: { type: "string", enum: ["low", "medium", "high", "all"], description: "Filter by priority", }, }, }, },
  • Input schema for list_tasks tool defining optional status and priority filters.
    inputSchema: { type: "object", properties: { status: { type: "string", enum: ["pending", "in-progress", "completed", "all"], description: "Filter by status", }, priority: { type: "string", enum: ["low", "medium", "high", "all"], description: "Filter by priority", }, }, },

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/PratyayRajak/todopomo-mcp'

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