Skip to main content
Glama

Optuna MCP Server

Official
by optuna

add_trials

Add multiple trials to a study for hyperparameter optimization, enabling efficient analysis and tuning with parameters, distributions, and states using the Optuna MCP Server.

Instructions

Add multiple trials to the study.

Input Schema

NameRequiredDescriptionDefault
trialsYes

Input Schema (JSON Schema)

{ "$defs": { "TrialToAdd": { "properties": { "distributions": { "additionalProperties": true, "title": "Distributions", "type": "object" }, "params": { "additionalProperties": true, "title": "Params", "type": "object" }, "state": { "enum": [ "COMPLETE", "PRUNED", "FAIL" ], "title": "State", "type": "string" }, "system_attrs": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "System Attrs" }, "user_attrs": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "User Attrs" }, "values": { "anyOf": [ { "items": { "type": "number" }, "type": "array" }, { "type": "null" } ], "title": "Values" } }, "required": [ "params", "distributions", "values", "state", "user_attrs", "system_attrs" ], "title": "TrialToAdd", "type": "object" } }, "properties": { "trials": { "items": { "$ref": "#/$defs/TrialToAdd" }, "title": "Trials", "type": "array" } }, "required": [ "trials" ], "title": "add_trialsArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/optuna/optuna-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server