get_list_assignees
Retrieve all team members who can be assigned tasks from a specific ClickUp list to facilitate task delegation and management.
Instructions
Get all members (potential assignees) of a list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ClickUp list ID |
Implementation Reference
- The handler function that executes the tool logic: extracts list_id, calls assigneeService.getListMembers, and returns the JSON-stringified response wrapped in MCP content format.handler: async (input) => { const { list_id } = input; const response = await assigneeService.getListMembers(list_id); return { content: [{ type: "text", text: JSON.stringify(response) }], }; },
- Input schema defining the required 'list_id' parameter as a string.inputSchema: { list_id: z.string().describe("ClickUp list ID"), },
- src/index.ts:52-54 (registration)Includes the getListAssigneesTool in the array of tools to be registered with the MCP server.// Assignee tools getListAssigneesTool,
- src/index.ts:89-91 (registration)Registers all tools from the array (including get_list_assignees) to the MCP server by calling server.tool for each.tools.forEach((tool) => { server.tool(tool.name, tool.description, tool.inputSchema, tool.handler); });
- Supporting utility method that makes the API request to ClickUp to retrieve members (assignees) for a given list ID.async getListMembers(listId: string) { // Using the endpoint from https://developer.clickup.com/reference/getlistmembers return this.request<{ members: ClickUpUser[] }>(`/list/${listId}/member`); }