Skip to main content
Glama

List services

docker_list_services
Read-onlyIdempotent

Lists Docker Swarm services in the default or a specified context so agents can inspect deployed services and their availability.

Instructions

Invoke the list_services operation.

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_list_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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered without description help. The description adds nothing beyond that — no return shape, no paging, no constraint on context scope — but it also does not contradict the annotations.

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

Conciseness2/5

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

One sentence with no wasted words, but that brevity comes from under-specification rather than discipline. It is not front-loaded with anything useful — no scope, no domain, no routing signal.

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?

The tool is simple (one optional param, no output schema, rich annotations), so a short description could suffice, yet the essentials are still missing: what a "service" is here, what gets returned, and whether swarm mode is required. An agent could call it but could not predict or verify the result.

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?

There is a single optional parameter whose schema description has 100% coverage, already explaining the multi-context pool and the cm_multi_context list_contexts reference. Per the high-coverage baseline, a 3 is appropriate since the description was not obligated to repeat it, though it adds zero meaning of its own.

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

Purpose2/5

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

"Invoke the list_services operation" restates the tool name in verb form without adding a resource or domain. It never says these are Docker Swarm services, so an agent cannot distinguish it from docker_service_list, docker_stack_services, k8s_list_services, or podman_list_services from the text alone.

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 guidance, no prerequisites (e.g. swarm must be initialized), and no mention of any alternative or exclusion. The only signal is the word "list", which the agent must interpret unaided.

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