calculate_engagement
CAPABILITY: read. Calculate engagement rates for supplied post metrics. This read-only, deterministic operation performs no mutation or network request. Returns {perPost: [{interactions, denominator, basis, rate}], medianRate, aggregateRate, totalInteractions, totalDenominator}; rates are percentages. Returns {error: "invalid_input"} when a post is malformed or bases differ. CAPABILITY: read: side-effect-free.
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": {
"posts": "<posts>"
},
"name": "calculate_engagement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | Post metrics to score. Every post in one call must use the same basis. |