get_event_values
Retrieve event and session property values for a website within specified timeframes to analyze user interactions and behavior patterns.
Instructions
Get event or session property values for a website
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID | |
| startAt | Yes | Start timestamp in milliseconds | |
| endAt | Yes | End timestamp in milliseconds |
Implementation Reference
- src/tools/events.ts:42-59 (handler)The handler implementation for the "get_event_values" tool. It retrieves event or session property values from the Umami API.
server.tool( "get_event_values", "Get event or session property values 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"), }, async ({ websiteId, startAt, endAt }) => { const data = await client.call( "GET", `/api/websites/${websiteId}/values`, undefined, { startAt, endAt } ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );