get_user_by_first_name
Retrieve user details by first name using AYX-MCP-Wrapper. Quickly access user information to manage workflows, collections, and schedules on Alteryx Servers.
Instructions
Get a user by their first name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_name | Yes |
Implementation Reference
- src/tools.py:387-393 (handler)Core handler function that executes the tool logic by calling the Alteryx users API with first_name filter and pretty-prints the response or handles errors.def get_user_by_first_name(self, first_name: str): """Get a user by their first name""" try: api_response = self.users_api.users_get_users(first_name=first_name) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:251-254 (registration)MCP tool registration using @app.tool() decorator, which defines the tool name, input schema from type hints and docstring, and delegates execution to the tools instance method.@self.app.tool() def get_user_by_first_name(first_name: str): """Get a user by their first name""" return self.tools.get_user_by_first_name(first_name)