Skip to main content
Glama

deactivate_user

Deactivate a user account on Alteryx Servers by specifying the user ID, ensuring secure and controlled access management through the AYX-MCP-Wrapper interface.

Instructions

Deactivate a user account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes

Implementation Reference

  • Core implementation of the deactivate_user tool. Validates user existence, calls the Alteryx Server Users API to deactivate the user, formats and returns the API response.
    def deactivate_user(self, user_id: str): """Deactivate a user by their ID""" try: user = self.users_api.users_get_user(user_id) if not user: return "Error: User not found" api_response = self.users_api.users_deactivate_user(user_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
  • MCP tool registration using @app.tool() decorator. This defines the tool schema from the function signature and docstring, and delegates execution to the Tools class instance method.
    @self.app.tool() def deactivate_user(user_id: str): """Deactivate a user account""" return self.tools.deactivate_user(user_id)
  • Description of the deactivate_user tool in the system prompt for the MCP server, listing available tools.
    - deactivate_user: Deactivate a user

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/jupiterbak/AYX-MCP-Wrapper'

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