get-best-run
Find the run achieving the optimal metric value in your MLflow experiment. Specify the metric and whether to maximize or minimize.
Instructions
Find the run with the best (max/min) value of a metric in an experiment
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": {
"metric": "<metric>"
},
"name": "get-best-run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| experimentId | No | Experiment ID (defaults to MLFLOW_EXPERIMENT_ID) | |
| metric | Yes | Metric key to optimize on (e.g. 'accuracy', 'loss') | |
| ascending | No | True to minimize (e.g. loss); default maximizes | |
| filter | No | Additional filter on top of metric ordering |