Skip to main content
Glama

list_requests

View all user requests with their task summaries and status to track progress in the TaskFlow MCP task management system.

Instructions

List all requests with their basic information and summary of tasks. This provides a quick overview of all requests in the system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function for 'list_requests' that delegates to the TaskFlowService.listRequests() method.
    async list_requests() { return service.listRequests(); },
  • JSON Schema definition for the 'list_requests' tool input (empty object since no parameters).
    list_requests: { type: "object", properties: {}, required: [], },
  • Registration of the 'list_requests' tool (as LIST_REQUESTS_TOOL) in the server's list of available tools.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ PLAN_TASK_TOOL, GET_NEXT_TASK_TOOL, MARK_TASK_DONE_TOOL, OPEN_TASK_DETAILS_TOOL, LIST_REQUESTS_TOOL, ADD_TASKS_TO_REQUEST_TOOL, UPDATE_TASK_TOOL, DELETE_TASK_TOOL, ADD_SUBTASKS_TOOL, MARK_SUBTASK_DONE_TOOL, UPDATE_SUBTASK_TOOL, DELETE_SUBTASK_TOOL, EXPORT_TASK_STATUS_TOOL, ADD_NOTE_TOOL, UPDATE_NOTE_TOOL, DELETE_NOTE_TOOL, ADD_DEPENDENCY_TOOL, GET_PROMPTS_TOOL, SET_PROMPTS_TOOL, UPDATE_PROMPTS_TOOL, REMOVE_PROMPTS_TOOL, ARCHIVE_COMPLETED_REQUESTS_TOOL, LIST_ARCHIVED_REQUESTS_TOOL, RESTORE_ARCHIVED_REQUEST_TOOL, ], }));
  • Core service method that loads task data and formats the list of all requests with summary statistics.
    public async listRequests() { await this.loadTasks(); const requestsList = formatRequestsList(this.data); return { status: "requests_listed", message: `Current requests in the system:\n${requestsList}`, requests: this.data.requests.map((req) => ({ requestId: req.requestId, originalRequest: req.originalRequest, totalTasks: req.tasks.length, completedTasks: req.tasks.filter((t) => t.done).length, })), }; }
  • Tool object definition for 'list_requests', exported and imported for server registration.
    export const LIST_REQUESTS_TOOL: Tool = { name: "list_requests", description: "List all requests with their basic information and summary of tasks. This provides a quick overview of all requests in the system.", inputSchema: { type: "object", properties: {}, }, };

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/pinkpixel-dev/taskflow-mcp'

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