Retention
get_retentionWeekly retention cohorts of one app: how many users (or sessions when the app sends no user) come back in the following weeks. Plans without retention answer with an error.
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": "get_retention"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional end (exclusive), RFC 3339 instant with offset; use with from. | |
| from | No | Optional start, RFC 3339 instant with offset (for example 2026-11-01T00:00:00Z); use with to. | |
| app_id | Yes | App id from list_apps. | |
| period | No | today, yesterday, 7d, 30d or 90d (UTC days, today included). Ignored when from and to are given. | 90d |
| test_mode | No | true reads test (debug) signals only; false (default) reads real signals only. |