get_time_stats
Analyze message activity patterns by hour, weekday, or day to determine peak activity times using timezone-aware bucketing.
Instructions
Get message count distribution bucketed by hour, weekday, or day. Use for "when are people most active" type questions. Timezone-aware bucketing.
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": {
"session_id": "<session_id>",
"type": "<type>"
},
"name": "get_time_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID | |
| type | Yes | Bucket granularity | |
| start_time | No | Start time (Unix seconds) | |
| end_time | No | End time (Unix seconds) | |
| format | No | Output format: text (default) or json | |
| timezone | No | Timezone for bucketing (default Asia/Shanghai) |