restart_container
Restart a Docker container by providing its name or ID to resolve stop/start issues quickly.
Instructions
Restart a Docker container.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_or_id | Yes |
Restart a Docker container by providing its name or ID to resolve stop/start issues quickly.
Restart a Docker container.
| Name | Required | Description | Default |
|---|---|---|---|
| name_or_id | Yes |
Changes observed during successful MCP inspections.
v0.1.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description only restates the operation implied by the name and adds no behavioral detail beyond the annotations, such as what happens to the container's processes, network, or state during restart. It doesn't contradict the annotations, but it also doesn't expand on them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. It is concise, though it is so brief that it doesn't carry any additional useful structure.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no output schema and no parameter descriptions, the description is too thin to be complete: it doesn't state what the restart will do to a stopped container, what errors may occur, or what the result will be. An agent could invoke it, but it would have to guess at edge-case behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has a single required parameter with no description (0% coverage), and the description doesn't mention name_or_id or clarify how Docker identifies the container. The property name 'name_or_id' is mildly suggestive, but the description adds no parameter-level meaning.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Restart') and a clear resource ('a Docker container'), so an agent can tell this performs a container restart operation. It doesn't explicitly contrast with sibling tools like start_container or stop_container, so it stops short of full differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given about when to restart rather than start or stop a container, or about prerequisites such as the container needing to exist. The description leaves all usage decisions to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.