Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

delete_user

Remove a user account from Nginx Proxy Manager by specifying their unique ID to manage access control and user permissions.

Instructions

Delete a user by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYesThe ID of the user to delete

Implementation Reference

  • The actual implementation of the delete_user logic, which makes a DELETE request to the NPM API.
    async def delete_user(self, user_id: int) -> None:
        user_id = _validate_int_id(user_id, "user_id")
        await self._request("DELETE", f"/api/users/{user_id}")
  • The tool handler in the MCP server that calls the delete_user method on the NPM client.
    elif name == "delete_user":
        await npm_client.delete_user(arguments["user_id"])
        return _msg_response("User deleted successfully")
  • Registration of the delete_user tool within the MCP server's tool list.
    Tool(name="delete_user", description="Delete a user by ID", inputSchema=_id_schema("user_id", "The ID of the user to delete")),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeryBigSad/nginx-proxy-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server