Pre-deployment checks
nas_docker_checkVerify whether a host port, NAS folder, or GPU vendor is already used by Docker containers before deploying to prevent conflicts; results cover Docker only, not other NAS services.
Instructions
Check for conflicts before deploying. kind "port" tells whether a host port is taken by a container (needs port; protocol optional). kind "dir" tells whether a folder is mounted by a container (needs dir). kind "gpu" tells whether an app is using the discrete GPU of the given vendor (needs vendor; ask the user if unknown). These checks only see Docker containers: occupied: false does not guarantee that the port is free, because other services on the NAS are not covered.
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": {
"kind": "<kind>"
},
"name": "nas_docker_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | For "dir": absolute NAS folder. | |
| kind | Yes | What to check. | |
| port | No | For "port": the host port. | |
| vendor | No | For "gpu": GPU vendor. | |
| protocol | No | For "port": protocol; omit for the NAS default. |