signal_stats
Summarize signal behavior over a time range—counts, extrema with times, time-weighted mean/deviation, first/last values, and state seconds for text/boolean signals to compare runs.
Instructions
Summarize signals over a time range: count, min and max with their times, mean, standard deviation, first and last. Includes the value already in effect when the range starts; mean and deviation are weighted by time. count is the number of samples that arrived, so 0 means the value did not update. Text and boolean signals report the seconds spent in each value. Call it on two logs to compare runs.
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": {
"source": "<source>",
"signals": "<signals>"
},
"name": "signal_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Like start. Omit for the end of the source | |
| start | No | Seconds from the start of the source; negative counts back from the end | |
| source | Yes | 'live', 'latest', or a log path from list_logs | |
| signals | Yes | Signal names or struct field paths | |
| enabled_only | No | Only use data from while the robot was enabled |