Get usage and analytics
cometchat_get_usageReturns an app's usage over the last 1-90 days (default 30): monthly active users, peak concurrency, and voice, video, recording and transcription minutes.
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": {
"app_id": "<app_id>"
},
"name": "cometchat_get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back (default 30) | |
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| metrics | No | Which metrics (default: all) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date (ISO) | |
| from | Yes | Start date (ISO) | |
| app_id | Yes | App ID | |
| metrics | Yes |