Skip to main content
Glama

Docker service ps

docker_swarm_service_ps

Lists every task across all Docker Swarm services to inspect running, pending, and failed tasks; optionally run against a named context.

Instructions

List every task across all services (real service.tasks()).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docker_swarm_service_ps"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already carry openWorldHint=true and destructiveHint=false, and the description adds nothing beyond confirming the tool reads swarm state. Notably, readOnlyHint=false while the description says 'List,' which is an unexplained tension an agent must resolve on its own; there is also no mention of whether tasks span all nodes, include stopped/desired-state tasks, or what the response looks like.

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?

One short, front-loaded sentence with no filler. The parenthetical 'real service.tasks()' adds a small implementation hint, but the definition is otherwise as tight as possible; it is arguably too terse rather than padded.

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

Completeness4/5

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

There is no output schema, so the description could ideally say what a task record contains or how results are ordered, and it does not. Still, for a zero-required-parameter listing tool with fully documented schema and annotations, everything an agent needs to call it correctly is either present or provided by structured fields.

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?

With a single optional 'context' parameter at 100% schema coverage, the schema already documents its meaning and even routes to the cm_multi_context list_contexts sibling. The description adds no additional meaning about context selection or default behavior, which is the baseline-3 outcome for fully covered schemas.

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 plus resource, 'List every task across all services,' and the scope qualifier 'across all services' implicitly sets it apart from the sibling docker_service_ps (which presumably scopes to one service). It stops short of naming that sibling explicitly, so the differentiation is inferential rather than stated.

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?

Usage is only implied: an agent can infer this is the swarm-wide listing versus a per-service listing, but the description never says when to prefer it, whether it should be avoided on large swarms, or which sibling to use instead. No exclusions or prerequisites are given.

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