Skip to main content
Glama
optuna

Optuna MCP Server

Official
by optuna

plot_slice

Generate a slice plot image to visualize how parameter values affect the objective value in Optuna optimization studies.

Instructions

Return the slice plot as an image.

    Args:
        params:
            Parameter list to visualize. The default is all parameters.
        target:
            An index to specify the value to display. To plot nth objective value, set this to n.
            Note that this is 0-indexed, i.e., to plot the first objective value, set this to 0.
        target_name:
            Target’s name to display on the axis label.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo
targetNo
target_nameNoObjective Value
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description must fully disclose behavior. It only states it returns an image but omits details like side effects, required state (e.g., existing study), output format, or permissions. This lack of transparency could lead to incorrect invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description starts with a concise first sentence but then expands into an Args block. It is not overly verbose but could be more succinct. The structure is reasonable but not optimal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and many sibling tools, the description is incomplete. It does not specify the return type (e.g., base64 image, file path) or prerequisites (e.g., an existing study). This leaves gaps for an agent to confidently invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description adds significant value: it explains 'params' as a parameter list defaulting to all, 'target' as a 0-indexed objective index, and 'target_name' as axis label. This clarifies meaning beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Return the slice plot as an image.' This is a clear verb+resource statement. However, it does not differentiate from sibling plot tools like plot_contour or plot_optimization_history, lacking context for when to choose slice plot.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. It only describes parameters, leaving the agent to infer usage without any when-to-use or when-not-to-use hints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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