service_inspect
Retrieve a Docker swarm service's desired-state spec and rollout status by ID or name to inspect configuration and update progress.
Instructions
Get a swarm service by id or name.
Must run against a swarm manager. Returns the desired-state spec and rollout status - for the
actually-running tasks use service_ps, or the service-tasks://{id_or_name} resource for a
computed rollout summary.
Args: insert_defaults: Merge default values into the output
Returns: dict: The full service document ({"ID", "Version", "Spec", "Endpoint", ...}; "UpdateStatus" during a rolling update)
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": {
"id_or_name": "<id_or_name>"
},
"name": "service_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes | ||
| insert_defaults | No |