get_session_data_properties
Retrieve session data property names and types for website analytics within specified timeframes using Umami Analytics.
Instructions
Get session data property names and their data types 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/sessions.ts:54-71 (handler)The tool 'get_session_data_properties' is registered and implemented in 'src/tools/sessions.ts' within the 'registerSessionTools' function. It fetches session data property names and types for a website using the UmamiClient.
server.tool( "get_session_data_properties", "Get session data property names and their data types 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}/session-data/properties`, undefined, { startAt, endAt } ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );