Cohort analysis
get_cohortsCohort analysis: orders grouped by the week they were created (Asia/Tashkent, Monday start), newest first, with how many were delivered within 3, 7, 14 and 30 days of creation (count and rate_percent). A window is null while the cohort is too young (not 0%). meta.average = weighted average over complete cohorts. Use it to see how fast orders turn into sales and whether recent weeks are better or worse. Default: last 12 weeks. Example: {"weeks": 8, "source": "meta_ads"}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_cohorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks | No | ||
| source | No | Only orders from this source (same as order.source). | |
| link_id | No | Only this tracking link. | |
| offer_id | No | Only this offer. |