metrics_metric_timer_stop
Stop a running timer and record its duration in milliseconds. Accumulates count, total, min, max, avg, and last duration for analysis. Returns the recorded duration and updated timer state.
Instructions
[metrics] Stop a running timer and record its duration in milliseconds. Accumulates: count, total_ms, min_ms, max_ms, avg_ms, last_ms. Returns the recorded duration and updated timer state.
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": {
"timer_id": "<timer_id>"
},
"name": "metrics_metric_timer_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |