Skip to main content
Glama

Update Docker Container(s)

docker_container_update
Destructive

Updates Unraid Docker containers by pulling new images and recreating them for selected IDs or all with available updates; requires confirmation.

Instructions

Pulls the latest image(s) and recreates container(s). ids updates those containers (force-pull regardless of update-available); all updates every container with a known-available update (returns none if the cache is cold — not an error). Updating an orphaned container with no template is a silent no-op. Requires confirm: true. Needs Unraid OS 7.3+. docker_container_list shows which containers have an update available.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docker_container_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo`true` updates every container with a known available update; cannot be combined with `ids`.
idsNoContainer ids from docker_container_list to update; cannot be combined with `all`.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / all / description
      Added value: +"`true` updates every container with a known available update; cannot be combined with `ids`."
    • 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 / ids / description
      Added value: +"Container ids from docker_container_list to update; cannot be combined with `all`."
    • 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?

Annotations declare destructive=true, idempotent=false, openWorld=false, but the description adds non-obvious edge behavior beyond them: a cold cache returns none rather than an error, orphaned containers with no template are a silent no-op, and `ids` forces a pull even when no update is detected. It is also honest that this is a destructive recreate gated on `confirm: true`.

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?

Five short sentences, each carrying a distinct constraint, with the core action front-loaded and the mode differences immediately after. No filler; parentheticals are used to carry caveats compactly rather than as padding.

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?

No output schema exists, so the description compensates by stating what a cold-cache call returns (none, not an error) and what a silent no-op looks like. With 4 fully documented parameters, destructive annotations, and a missing-update prerequisite stated, an agent has everything needed to invoke this correctly.

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 baseline is 3, but the description goes further by explaining the semantic asymmetry between `ids` (force-pull) and `all` (update-available only) that the schema text does not convey. The cold-cache return behavior is attached to `all` in prose, adding real meaning over the schema.

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?

Opens with a specific verb pair and resource: 'Pulls the latest image(s) and recreates container(s).' This clearly separates it from docker_container_action (lifecycle) and docker_container_list (discovery), so an agent knows exactly what the operation does without opening the schema.

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?

Explicitly distinguishes the two modes: `ids` force-pulls regardless of update availability, `all` only touches containers with a known available update and cannot be combined with `ids`. It also names docker_container_list as the way to find which containers have updates and states the confirm and OS-version prerequisites, covering when and how to use it.

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