Skip to main content
Glama

restart_compose

DestructiveIdempotent

Stops and starts a Dokploy compose service to perform a restart; images are not rebuilt, traffic drops between calls, and a failed start leaves the stack stopped.

Instructions

Restart a compose service by stopping it and starting it again.

Dokploy has no single compose restart procedure. Traffic drops between the two calls, and images are not rebuilt. If start fails, the stack is left stopped.

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": {
      "compose_id": "<compose_id>"
    },
    "name": "restart_compose"
  }
}

Input Schema

NameRequiredDescriptionDefault
compose_idYescomposeId from list_compose_services or get_project.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds behavior the agent could not otherwise know: the operation is a two-call sequence with no atomic restart, traffic drops in between, images are not rebuilt, and a failed start leaves the stack stopped. That failure-mode and downtime disclosure is exactly the context annotations cannot convey.

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?

Three short sentences, front-loaded with the action and its mechanism, followed by the operational caveats. No filler and nothing repetitive of the schema or annotations.

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?

With an output schema present and annotations covering the safety profile, the remaining burden is explaining the restart mechanics and risks, which the description does fully. Nothing an agent needs in order to call this correctly, or to warn about the down window, is missing.

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?

Schema description coverage is 100% and the single compose_id parameter already documents its source ('from list_compose_services or get_project'). The description adds no further meaning about the parameter, so the baseline of 3 applies.

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?

States a specific verb and resource ('Restart a compose service') and immediately explains the mechanism ('by stopping it and starting it again'), which is what distinguishes a restart from a redeploy in this family. An agent can tell what the tool does and what it does not do (no rebuild) 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 Guidelines3/5

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

The line 'images are not rebuilt' implicitly signals when to prefer this over a rebuild-style operation, and the stated downtime warns against casual use. However, no alternative sibling (e.g. a compose redeploy) is named and there is no explicit when/when-not statement, so the routing guidance remains inferred rather than stated.

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