Skip to main content
Glama
DiversioTeam

ClickUp MCP Server

by DiversioTeam

list_users

Retrieve all workspace members to manage team access and assign tasks in ClickUp project workflows.

Instructions

List all users in the workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_idNoWorkspace ID (optional, uses default if not provided)

Implementation Reference

  • The core execution logic for the 'list_users' tool. Fetches workspace members from ClickUp API via client and returns formatted list.
    async def list_users(self, workspace_id: Optional[str] = None) -> Dict[str, Any]:
        """List all users in the workspace."""
        members = await self.client.get_workspace_members(workspace_id)
    
        return {
            "users": [
                {
                    "id": member.get("id"),
                    "username": member.get("username"),
                    "email": member.get("email"),
                    "initials": member.get("initials"),
                    "color": member.get("color"),
                    "profilePicture": member.get("profilePicture"),
                }
                for member in members
            ],
            "count": len(members),
        }
  • MCP Tool schema definition for 'list_users', specifying input parameters and description.
    Tool(
        name="list_users",
        description="List all users in the workspace",
        inputSchema={
            "type": "object",
            "properties": {
                "workspace_id": {
                    "type": "string",
                    "description": "Workspace ID (optional, uses default if not provided)",
                },
            },
        },
    ),
  • Registers the list_users method in the ClickUpTools class's internal tools dictionary for dynamic dispatching.
        # User management
        "list_users": self.list_users,
        "get_current_user": self.get_current_user,
        "find_user_by_name": self.find_user_by_name,
    }

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/DiversioTeam/clickup-mcp'

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