Klaviyo MCP Server

query_metric_aggregates

Analyze and aggregate metric data by specifying measurements, timeframes, and grouping dimensions to extract actionable insights for marketing performance.

Input Schema

NameRequiredDescriptionDefault
end_dateNoCustom end date (ISO format, overrides timeframe)
group_byNoDimensions to group by
measurementYesMeasurement to use (e.g., count, sum, unique)
metric_idYesID of the metric to aggregate
start_dateNoCustom start date (ISO format, overrides timeframe)
timeframeYesTimeframe to use (e.g., last_30_days, this_month)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "end_date": { "description": "Custom end date (ISO format, overrides timeframe)", "type": "string" }, "group_by": { "description": "Dimensions to group by", "items": { "type": "string" }, "type": "array" }, "measurement": { "description": "Measurement to use (e.g., count, sum, unique)", "type": "string" }, "metric_id": { "description": "ID of the metric to aggregate", "type": "string" }, "start_date": { "description": "Custom start date (ISO format, overrides timeframe)", "type": "string" }, "timeframe": { "description": "Timeframe to use (e.g., last_30_days, this_month)", "type": "string" } }, "required": [ "metric_id", "measurement", "timeframe" ], "type": "object" }
ID: l2ix14vt60