Skip to main content
Glama

safe_restart_container

Restart a Docker container only when write mode is enabled and its name passes the deny/allow guard, preventing unauthorized restarts in read-only setups.

Instructions

Restart a container only if write mode is enabled and its name passes the deny/allow guard.

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": "<container>"
    },
    "name": "safe_restart_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo
containerYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a meaningful safety gate (write-mode check plus name-based deny/allow guard) beyond a plain 'restart'. However, it does not say what happens on refusal (error vs. no-op), that the restart causes downtime, or whether the timeout bounds the stop phase before a kill.

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 the precondition attached to the action; no filler or redundant restatement of the tool name.

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?

An output schema exists, so return values need not be explained, and the safety gate is covered. But for an unannotated mutation tool with 0% parameter coverage, the description should still clarify the timeout's role and the failure behavior when the guard blocks the restart.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for both parameters. It adds useful meaning to 'container' by revealing the value is a name subject to a deny/allow guard, but the 'timeout' parameter (default 10) is never mentioned, leaving half the parameters undocumented in both schema and description.

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 a specific verb and resource ('Restart a container'), which is unambiguous and clearly distinct from the read-only siblings (list_containers, inspect_container, get_container_logs). It does not explicitly name an alternative, but the operation itself leaves no ambiguity about what the tool does.

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

Usage Guidelines4/5

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

It provides a clear gating condition: use only when write mode is enabled and the container name passes the deny/allow guard, which implicitly tells the agent when not to call it. It stops short of naming alternatives or explaining what the agent should do when the guard fails.

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