Skip to main content
Glama
mikusnuz

umami-mcp

get_user_usage

Retrieve usage statistics for a specific user within defined time periods to monitor analytics activity and track user engagement patterns.

Instructions

Get usage statistics for a specific user (admin only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesUser UUID
startAtNoStart timestamp in milliseconds
endAtNoEnd timestamp in milliseconds

Implementation Reference

  • The handler implementation for the 'get_user_usage' tool, including its schema registration and API call logic.
    server.tool(
      "get_user_usage",
      "Get usage statistics for a specific user (admin only)",
      {
        userId: z.string().describe("User UUID"),
        startAt: z.number().optional().describe("Start timestamp in milliseconds"),
        endAt: z.number().optional().describe("End timestamp in milliseconds"),
      },
      async ({ userId, startAt, endAt }) => {
        const data = await client.call("GET", `/api/users/${userId}/usage`, undefined, {
          startAt,
          endAt,
        });
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/mikusnuz/umami-mcp'

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