get_session_data_values
Retrieve aggregated session property counts for website analytics by specifying website ID, time range, and optional property filter.
Instructions
Get session data values (aggregated counts for session properties) 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 | |
| propertyName | No | Filter by property name |
Implementation Reference
- src/tools/sessions.ts:73-91 (handler)The handler and registration for "get_session_data_values" tool.
server.tool( "get_session_data_values", "Get session data values (aggregated counts for session properties) 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"), propertyName: z.string().optional().describe("Filter by property name"), }, async ({ websiteId, startAt, endAt, propertyName }) => { const data = await client.call( "GET", `/api/websites/${websiteId}/session-data/values`, undefined, { startAt, endAt, propertyName } ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );