Skip to main content
Glama

Optuna MCP Server

Official
by optuna

add_trial

Register a trial in the Optuna study with parameters, distributions, values, state, and attributes for hyperparameter optimization and analysis.

Instructions

Add a trial to the study.

Input Schema

NameRequiredDescriptionDefault
trialYes

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": { "trial": { "$ref": "#/$defs/TrialToAdd" } }, "required": [ "trial" ], "title": "add_trialArguments", "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