log-metric
Log a metric value to an MLflow run by specifying metric name, value, and run ID. Optionally include timestamp and step.
Instructions
Log a single metric value to a run
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": {
"runId": "<runId>",
"key": "<key>",
"value": "<value>"
},
"name": "log-metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| key | Yes | Metric name | |
| value | Yes | Metric value | |
| timestamp | No | Unix timestamp ms (defaults to now) | |
| step | No | Step at which metric was recorded |