portainer_stack_status
Check the health of a Docker stack by summarizing service replicas, update state, and recent task failures. Works on Swarm stacks and falls back to Compose containers, including cron-driven services.
Instructions
Health summary of a stack: every service with running/desired replicas, update state and the most recent task failures.
Start here when asked "is stack X ok / why is X down". Works on Swarm (services + tasks) and falls back to container states on a standalone Compose endpoint. Cron-driven services are judged on their last run, and only failures newer than the last good task are reported.
Args: stack_name: Stack name (Swarm namespace / Compose project) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_name | Yes | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |