get_user
Retrieve user details by UUID for administrative oversight in Umami Analytics, enabling account management and access control.
Instructions
Get details of a specific user (admin only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | User UUID |
Implementation Reference
- src/tools/users.ts:42-51 (handler)The `get_user` tool is defined here using `server.tool`. It takes a `userId` argument and calls the Umami client to fetch user details.
server.tool( "get_user", "Get details of a specific user (admin only)", { userId: z.string().describe("User UUID"), }, async ({ userId }) => { const data = await client.call("GET", `/api/users/${userId}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; }