Skip to main content
Glama

docker_stop_container

Stop a running Docker container by container ID or name, allowing you to shut down unneeded or problematic workloads.

Instructions

Stop a Docker container

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": {
      "container_id": "<container_id>"
    },
    "name": "docker_stop_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
container_idYesContainer ID or name

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare openWorldHint=false, destructiveHint=false and idempotentHint=false, so the description is not the only source of behavior. However, it adds nothing beyond them: it does not say whether the stop is graceful or forced, what happens when the container is already stopped, or whether it fails on a missing container. For a state-changing operation, that leaves meaningful gaps.

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?

One short sentence, front-loaded with the verb and resource, with zero redundant wording. Nothing is padded or buried.

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

Completeness3/5

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

Because an output schema exists, the description need not explain return values, and the only parameter is fully documented. It is still thin for a lifecycle mutation: nothing is said about side effects, error conditions, or the stopped state left behind, so an agent has to guess at the operational consequences.

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

Parameters3/5

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

There is a single parameter, and its schema description ('Container ID or name') is fully covered at 100%. The description adds no extra meaning, such as whether a full ID, a short ID, or a name prefix is accepted, so it sits at the baseline for a fully documented 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 gives a specific verb ('Stop') and resource ('Docker container'), which is unambiguous and clearly distinct from sibling operations like docker_start_container or docker_remove_container. It stops short of naming alternatives explicitly, but the action is legible from the phrase alone.

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?

There is no guidance on when to use this versus docker_remove_container or docker_recreate_container, and no mention of prerequisites such as the container having to be running. The agent must infer all invocation conditions.

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