service_list
List Docker swarm services on a manager node, with optional filters by ID, name, label, or mode, and an option to show only services managed by this server.
Instructions
List swarm services.
Must run against a swarm manager. One entry per service (the desired state); service_ps
lists a service's tasks, and stack_services groups services by stack.
Args:
filters: Filter by attributes (id, name, label, mode)
managed_only: Only return services created by this MCP server (filters on the docker-mcp-server.managed label);
combines with any filters given
Returns: list: One full service document ({"ID", "Spec", ...}) per service
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": "service_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| managed_only | No |