mmp_fetch_cohorts
Fetch and store one cohort window for one MMP app on the Meta-owned MMP service. Synchronous and slow. Returned cohort rows are paged at up to 1000 rows and 256KiB per page (a single oversized row is returned whole with oversized_row=true); when truncated=true call again with next_cursor as cursor. Returns mmp_not_enabled while MMP is not enabled for the tenant.
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": {
"connection_id": "<connection_id>",
"app_ref": "<app_ref>",
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "mmp_fetch_cohorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | ||
| app_ref | Yes | ||
| date_to | Yes | ||
| date_from | Yes | ||
| connection_id | Yes | ||
| connection_context | No | ||
| selected_source_refs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| rows | No | ||
| error | No | ||
| needs | No | ||
| reason | No | ||
| status | No | ||
| enabled | No | ||
| provider | No | ||
| retryable | No | ||
| truncated | No | ||
| error_code | No | ||
| total_rows | No | ||
| cohort_data | No | ||
| connections | No | ||
| next_action | No | ||
| next_cursor | No | ||
| support_ref | No | ||
| connection_id | No | ||
| oversized_row | No | ||
| invalid_fields | No | ||
| rejected_paths | No | ||
| origin_support_ref | No | ||
| metadata_by_connection | No | ||
| cohort_configs_by_connection | No |