Get job GPU metrics
get_job_metricsA job's GPU use while its command ran, oldest first: [{ at, gpus: [{ util, mem_used_mb, mem_total_mb }] }], one point per step seconds, util the average percent and memory the peak over the step. get_job has the totals (gpu_util_avg, gpu_mem_peak_mb). Low util on a long job means the GPU mostly waited: check data loading or the batch size.
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": {
"id": "<id>"
},
"name": "get_job_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job ID | |
| step | No | Seconds per point, 60 to 86400 (default 60) | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |