disable_stream
Deactivate a specific stream in Nginx Proxy Manager to stop its traffic routing and processing functions.
Instructions
Disable a stream
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | The ID of the stream to disable |
Implementation Reference
- src/npm_mcp/client.py:306-308 (handler)The handler method in NPMClient that performs the actual API call to disable a stream.
async def disable_stream(self, stream_id: int) -> None: stream_id = _validate_int_id(stream_id, "stream_id") await self._request("POST", f"/api/nginx/streams/{stream_id}/disable") - src/npm_mcp/server.py:163-163 (registration)Tool registration in list_tools().
Tool(name="disable_stream", description="Disable a stream", inputSchema=_id_schema("stream_id", "The ID of the stream to disable")), - src/npm_mcp/server.py:429-431 (handler)The tool call dispatcher branch for disable_stream.
elif name == "disable_stream": await npm_client.disable_stream(arguments["stream_id"]) return _msg_response("Stream disabled successfully")