Skip to main content
Glama

restart_container

Restart a named Docker container to recover a service or apply container changes in your local Traefik reverse proxy setup.

Instructions

Restart 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": {
      "name": "<name>"
    },
    "name": "restart_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesContainer name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing beyond the action itself. It does not state that the restart causes downtime or in-flight request loss, whether the container keeps its configuration and volumes, what happens if the name is unknown, or whether elevated Docker permissions are needed.

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?

A single front-loaded sentence with zero filler. Every word earns its place, and there is nothing redundant 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?

For a one-parameter tool with full schema coverage, the essentials are present, but with no annotations and no output schema, the description is the only place to learn about disruption, return behavior, or failure modes, and it covers none of these. Adequate but thin for a mutating lifecycle operation.

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 only one parameter, and the schema already documents it fully at 100% coverage ("name" — "Container name"). The description adds no syntax, format, or matching-rule detail beyond that, so the baseline of 3 applies.

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 plus resource ("Restart a Docker container"), so its action is unambiguous. It does not, however, distinguish itself from adjacent lifecycle tools in the sibling list such as rebuild_service or start_traefik, leaving the agent to infer the boundary from names 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 choose restart_container over rebuild_service or a stop/start pair, and no mention of preconditions such as the container existing or being running. The agent must infer usage entirely from the tool name.

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