get_user_by_id
Retrieve user details from Alteryx Servers by specifying a user ID. Facilitates user management within the AYX-MCP-Wrapper interface.
Instructions
Get a user by their ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Implementation Reference
- src/tools.py:363-369 (handler)Core handler function that retrieves a specific user from the Alteryx server API using the provided user_id, formats the response with pprint, and handles ApiException errors.def get_user_by_id(self, user_id: str): """Get a user by their ID""" try: api_response = self.users_api.users_get_user(user_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:236-239 (registration)MCP tool registration decorator (@self.app.tool()) that defines the tool entrypoint and delegates execution to the underlying tools instance method.@self.app.tool() def get_user_by_id(user_id: str): """Get a user by their ID""" return self.tools.get_user_by_id(user_id)