Message stats
get_message_statsPer-day message volume and reply rates for a bounded date range (max 92 days, org timezone): inbound/outbound counts, active conversations, and the share of conversations that received a customer message and got a reply the same day. Counts only - no message content. Respects the org AI access settings, so numbers match what the other tools can see. When team numbers are known (team members, contacts labelled as staff, or an employee list confirmed this session), team_reply_rate also counts replies team members write from their own phones; when none are known (staff_numbers_known = 0) only sent_from_number_rate applies; it counts messages sent from this number and is not a response rate.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "get_message_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| days | Yes | ||
| from | Yes | ||
| totals | Yes | ||
| timezone | Yes | ||
| definition | Yes | ||
| metric_label | Yes | ||
| staff_numbers_known | Yes |