Skip to main content
Glama

Docker service list

docker_service_list

List Docker services in the selected or default multi-context pool to inspect available Swarm workloads and verify service inventory.

Instructions

List services (real services.list via :meth:list_services).

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_service_list"
  }
}

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

C2.5/5.0
Behavior2/5

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

The annotations are sparse (readOnlyHint=false, openWorldHint=true, destructiveHint=false), so the description must carry most of the burden, and it adds almost no behavior: no permissions, no pagination, no filters, and no output shape. There is also mild tension between 'List services' and readOnlyHint=false, though a conservative false hint is not a true contradiction. The agent is left unsure what a listing call actually returns or whether it has side effects.

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?

It is short, but the brevity comes from jargon rather than useful prioritization: the only substantive content is Python docstring markup that an agent cannot use. The operative word 'List' is front-loaded, which is good, but the parenthetical wastes the tool's single sentence.

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 list tool with no output schema, the description does not say what is returned (service names, IDs, modes, replicas), how results are ordered, or how pagination or size limits work. Given that the annotations are thin and there is no output schema, it should tell the agent much more.

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% (one optional 'context' parameter, fully documented in the schema), so the baseline is 3. The description adds nothing about how context selection affects results, but the schema already does that job.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description does state a verb and a resource ('List services') and names the underlying API call (services.list via list_services). But it gives no detail about scope, such as whether it covers all services in the swarm or is filtered by context. It also does not distinguish this tool from the near-identical sibling docker_list_services. The Sphinx markup (``services.list``, :meth:`list_services`) gives source-level detail, not agent-level detail.

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?

The description says nothing about when to use this tool versus alternatives. Sibling tools with very similar names include docker_list_services, docker_service_ps, and docker_inspect_service, and the description never says which one to choose or what condition selects this one.

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