Skip to main content
Glama
mikusnuz

umami-mcp

get_event_data_events

Retrieve custom event analytics data for a website by specifying time range and optional event name filtering to track user interactions and behavior patterns.

Instructions

Get event data events (custom event names and counts) for a website

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
websiteIdYesWebsite UUID
startAtYesStart timestamp in milliseconds
endAtYesEnd timestamp in milliseconds
eventNameNoFilter by event name

Implementation Reference

  • The tool "get_event_data_events" is defined and implemented within the registerEventTools function in src/tools/events.ts. It calls the client with a GET request to the Umami API.
    server.tool(
      "get_event_data_events",
      "Get event data events (custom event names and counts) for a website",
      {
        websiteId: z.string().describe("Website UUID"),
        startAt: z.number().describe("Start timestamp in milliseconds"),
        endAt: z.number().describe("End timestamp in milliseconds"),
        eventName: z.string().optional().describe("Filter by event name"),
      },
      async ({ websiteId, startAt, endAt, eventName }) => {
        const data = await client.call(
          "GET",
          `/api/websites/${websiteId}/event-data/events`,
          undefined,
          { startAt, endAt, eventName }
        );
        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