Skip to main content
Glama

list_requests

View and manage all active requests with task summaries in the MCP TaskManager system for streamlined task oversight.

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 handler function that executes the core logic of the 'list_requests' tool by calling formatRequestsList() and returning the formatted list of requests.
    public async listRequests() { return { message: this.formatRequestsList(), }; }
  • Zod schema for validating input parameters of the 'list_requests' tool. It accepts an empty object since no parameters are required.
    const ListRequestsSchema = z.object({});
  • index.ts:175-179 (registration)
    Registration of the 'list_requests' tool within the listTools() method's return array.
    { name: "list_requests", description: "List all requests in the system.", inputSchema: ListRequestsSchema, },
  • Dispatch handler in callTool() method that validates input using the schema and invokes the listRequests() method.
    case "list_requests": { const parsed = ListRequestsSchema.safeParse(parameters); if (!parsed.success) { throw new Error(`Invalid parameters: ${parsed.error}`); } return this.listRequests(); }
  • Helper method used by listRequests() to format the list of requests into a markdown table.
    private formatRequestsList(): string { let output = "Requests:\n"; output += "| ID | Original Request | Tasks Done | Total Tasks |\n"; output += "|-----|-----------------|------------|-------------|\n"; for (const req of this.data.requests) { const doneTasks = req.tasks.filter((t) => t.approved).length; output += `| ${req.requestId} | ${req.originalRequest} | ${doneTasks} | ${req.tasks.length} |\n`; } return output; }

Other Tools

Related Tools

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/Rudra-ravi/mcp-taskmanager'

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