Skip to main content
Glama

get_current_user

Retrieve details of the currently authenticated ClickUp user to verify identity and access permissions for task management operations.

Instructions

Get details of the currently authenticated user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main tool handler function that fetches and formats the current user data using the ClickUpClient.
    async def get_current_user(self) -> Dict[str, Any]: """Get details of the currently authenticated user.""" user = await self.client.get_current_user() return { "id": user.get("id"), "username": user.get("username"), "email": user.get("email"), "initials": user.get("initials"), "color": user.get("color"), "profilePicture": user.get("profilePicture"), "role": user.get("role"), }
  • Input schema definition for the get_current_user tool, which requires no parameters.
    Tool( name="get_current_user", description="Get details of the currently authenticated user", inputSchema={ "type": "object", "properties": {}, }, ),
  • Registers the get_current_user method as a tool handler in the internal tools dictionary.
    "get_task_analytics": self.get_task_analytics, # User management "list_users": self.list_users, "get_current_user": self.get_current_user, "find_user_by_name": self.find_user_by_name,
  • Helper method on ClickUpClient that makes the API request to retrieve the current user data.
    async def get_current_user(self) -> Dict[str, Any]: """Get the current authenticated user.""" data = await self._request("GET", "/user") return data.get("user", {})

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