Skip to main content
Glama

Set Docker Container Autostart

docker_autostart_set
DestructiveIdempotent

Set which Docker containers auto-start on Unraid boot with merge-safe updates to the autostart list, leaving unlisted containers and boot order unchanged. Takes effect on next array/Docker start.

Instructions

Sets which containers auto-start on boot. Merge-safe: reads the current autostart config, applies your changes, and resubmits the complete set (sorted to preserve boot order) so unlisted containers are untouched. Boot-time only — does not start/stop running containers now (use docker_container_action for that); takes effect on the next array/Docker start. Requires confirm: true. Needs Unraid OS 7.3+ (ENABLE_NEXT_DOCKER_RELEASE).

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": {
      "changes": "<changes>"
    },
    "name": "docker_autostart_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesContainers whose autostart setting to change; unlisted containers keep theirs.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
persistNo`true` also writes the WebGUI's saved prefs, which irreversibly reorders the Docker-page container list; leave it false unless that is wanted.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.3
    • addedInput schema / properties / changes / description
      Added value: +"Containers whose autostart setting to change; unlisted containers keep theirs."
    • addedInput schema / properties / changes / items / properties / auto_start / description
      Added value: +"Whether the container starts at boot."
    • addedInput schema / properties / changes / items / properties / id / description
      Added value: +"Container id from docker_container_list; names are rejected."
    • addedInput schema / properties / changes / items / properties / wait / description
      Added value: +"Seconds to wait after starting this container; omit to keep its current wait."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / persist / description
      Added value: +"`true` also writes the WebGUI's saved prefs, which irreversibly reorders the Docker-page container list; leave it false unless that is wanted."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the destructive and idempotent annotations, the description explains the merge-safe read-modify-resubmit behavior, preserves boot order by sorting, and clarifies that unlisted containers are untouched. It also discloses the important timing limitation, version requirement, and confirmation requirement, which are exactly the behavioral details an agent needs for this mutation.

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

Conciseness5/5

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

The description is compact and front-loaded around the core operation, then immediately covers merge safety, timing, alternatives, confirmation, and version requirements. Every sentence adds useful selection or invocation context without filler.

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

Completeness5/5

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

For a destructive mutation with no output schema, the definition covers scope, merge behavior, timing, safety requirements, prerequisites, and alternatives. Nothing critical for correct invocation appears to be missing.

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?

Schema coverage is 100%, so the parameter descriptions already carry most semantics. The main description still adds operational meaning by explaining that the tool reads the current config, applies changes, and resubmits the complete sorted set, which clarifies how the `changes` array interacts with unlisted containers.

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

Purpose5/5

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

The description states a specific verb and resource: setting which containers auto-start on boot. It explicitly distinguishes this from `docker_container_action`, which handles starting/stopping running containers now, so an agent can select the right tool without ambiguity.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance: boot-time autostart changes, not immediate container start/stop. It names the alternative `docker_container_action` for immediate actions, states that changes take effect on the next array/Docker start, and includes prerequisites such as `confirm: true` and Unraid OS 7.3+.

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