Skip to main content
Glama

Docker service rm

docker_service_rm

Remove a Docker service by name using a real service.remove operation, with optional multi-context targeting for container management workflows.

Instructions

Remove a service (real service.remove via :meth:remove_service).

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": {
      "service_name": "<service_name>"
    },
    "name": "docker_service_rm"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
service_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

The annotations declare destructiveHint=false and openWorldHint=true, yet the description says the tool removes (destroys) a service. That is a meaningful tension for an agent choosing a safety posture. Beyond that, the description says nothing about consequences: whether running tasks are terminated, whether removal is immediate or reversible, whether it is idempotent when the service is absent, or what errors arise.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, so it is concise and front-loaded. However, half of it is a Sphinx/method cross-reference that does not help an agent choose or invoke the tool, so the brevity comes partly from omitting useful content rather than from discipline.

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

Completeness2/5

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

For a destructive, open-world mutation with no output schema and incomplete parameter documentation, the definition is too thin. An agent gets no statement of effects, prerequisites, or failure modes, and the annotations' destructiveHint=false actively misleads about what removal implies. What an agent needs in order to call this safely is largely missing.

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 only 50%. The 'context' parameter is documented in the schema, but 'service_name' (the required parameter) has no description anywhere. The description does not clarify whether it takes a service ID, a name, or a prefix-matching name. With this coverage gap, the description should compensate for it, but it does not.

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 and resource: 'Remove a service'. That is enough to know what the tool does. However, the parenthetical 'real ``service.remove`` via :meth:`remove_service`' is internal implementation phrasing that adds no decision value, and the description never distinguishes this tool from the sibling 'docker_remove_service', so sibling differentiation is absent.

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 when-to-use or when-not-to-use guidance and no named alternative. The description does not say how this differs from 'docker_remove_service', 'docker_stack_rm', or 'docker_service_update', nor does it state any precondition such as the service needing to exist or being empty.

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

Deploy Server

Other Tools