Skip to main content
Glama

Docker stack services

docker_stack_services

Lists the services in a specified Docker stack using docker stack services, with optional context selection for multi-context Docker environments.

Instructions

List a stack's services via docker stack services (no SDK).

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": {
      "stack_name": "<stack_name>"
    },
    "name": "docker_stack_services"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already cover the safety profile (openWorldHint, destructiveHint false), so the description's only added detail is '(no SDK)', hinting at direct CLI execution. It omits meaningful behavior for a stack-scoped listing: swarm-mode prerequisites, error behavior for an unknown stack, and output format. Nothing contradicts the annotations, but the added context is thin.

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

Conciseness4/5

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

A single short sentence with zero padding, front-loaded with the verb and resource. It is efficient, though its brevity borders on under-specification rather than maximal clarity.

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 tool with two parameters and no output schema, the description leaves notable gaps: no mention of swarm-mode requirements, no guidance on stack_name semantics, and no return-value expectations. It is minimally adequate for a trivial listing command but not complete.

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 coverage is 50%, and the uncovered parameter is stack_name, which has no description in the schema. The description only implies that stack_name identifies the stack to list; it doesn't clarify format, case sensitivity, or whether it must be an existing stack in the current context.

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: list a stack's services, and names the underlying command. It's clear what the tool does, though it doesn't explicitly contrast with siblings like docker_list_services, which lists services across all stacks.

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 explicit when-to-use guidance and no named alternative. The only signal is implicit in the phrase 'a stack's services' — an agent must infer that this is scoped to one stack, and must guess when to prefer docker_list_services instead.

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