segment_stats
Computes min, p5, p50, mean, p95, max, and coverage for selected PAP channels and events within a specified therapy-day time window.
Instructions
Statistics (min/p5/p50/mean/p95/max, coverage) of channels and the events inside a time window, e.g. date=2026-11-08 start=02:00 end=02:30 (local time within the therapy day).
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": {
"date": "<date>",
"start": "<start>",
"end": "<end>"
},
"name": "segment_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| date | Yes | ||
| start | Yes | ||
| channels | No | ||
| device_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||