set_metric_names
Set metricnames. Metricnames are labels used to distinguish what each objective value is.
How to use it
set_metric_names is exposed by the Optuna MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the set_metric_names tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL OPTUNA MCP LISTINGOther tools in Optuna MCP (39)
Suggest new parameters using Optuna.
Get the best trial.
Return trials located at the Pareto front in the study.
Create a new Optuna study with the given studyname and directions.
The directions of optimization (list of literal strings minimize/maximize, optional).
Get all study names from the storage.
Get the directions of the study.
Get metricnames.
Get user attributes in a trial.
Get all trials in a CSV format.
a flag to include all dominated trial's objective values (boolean, optional).
the key of the user attribute (string, required).
Launch the Optuna dashboard.
The list of metric names for each objective (list of strings, required).
the name of the sampler (string, required).
parameter list to visualize (list of strings, optional).
Return the contour plot as an image.
Return the EDF plot as an image.
Return the hypervolume history plot as an image.
Return the optimization history plot as an image.
Return the parallel coordinate plot as an image.
Return the parameter importances plot as an image.
Return the Pareto front plot as an image for multi-objective optimization.
Return the rank plot as an image.
Return the slice plot as an image.
Return the timeline plot as an image.
a list of reference points to calculate the hypervolume (list of floats, required).
the search space for Optuna (dictionary, required).
Set the sampler for the study.
Set user attributes for a trial.
name of the study (string, required).
index to specify which value to display (integer, optional).
target’s name to display on the axis label (string, optional).
objective name list used as the axis titles (list of strings, optional).
a list of indices to specify the objective values to display. (list of integers, optional).
Report the result of a trial.
the trial number (integer, required).
the value of the user attribute (any type, required).
the result of the trial (float or list of floats, required).