mkt_metric_measure
Calculate read-only KPIs deterministically from supplied events using a versioned metric dictionary; returns null when the denominator is zero instead of fabricating results.
Instructions
只读 KPI 计算:按版本化指标字典对提供的事件确定性测量;分母为 0 返回 null,不伪造业务结果。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metric_id": "<metric_id>",
"events": "<events>"
},
"name": "mkt_metric_measure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| scope | No | ||
| events | Yes | ||
| version | No | ||
| metric_id | Yes | ||
| cohort_end | No |