get_container_status
Retrieve structured Docker container status including name, image, state, ports, and age. Provides error handling if Docker is unavailable.
Instructions
Return structured docker-ps output: per-container name, image, state, status, ports, age.
Shells out to docker ps with a tab-separated format string. Returns a list of containers plus a summary dict. Read-only — does not stop/restart anything.
Returns {"error": "..."} if docker isn't installed or the docker socket is unreachable.
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": "get_container_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||