get_event_data_fields
Retrieve event data fields including property keys and data types for a specific website within a defined time range.
Instructions
Get event data fields (property keys 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 | |
| eventName | No | Filter by event name |
Implementation Reference
- src/tools/events.ts:81-99 (handler)The definition and implementation (handler) of the "get_event_data_fields" tool.
server.tool( "get_event_data_fields", "Get event data fields (property keys 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"), 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/fields`, undefined, { startAt, endAt, eventName } ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );