get_user_by_name
Retrieve user details from Alteryx Servers by entering a last name to manage user information and access.
Instructions
Get a user by their last name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- src/tools.py:379-385 (handler)Main handler implementation: calls the Alteryx API to get users by last name and formats the response.def get_user_by_name(self, name: str): """Get a user by their last name""" try: api_response = self.users_api.users_get_users(last_name=name) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:246-249 (registration)MCP tool registration: decorator registers the wrapper function that delegates to the tools instance.@self.app.tool() def get_user_by_name(name: str): """Get a user by their last name""" return self.tools.get_user_by_name(name)