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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "get_user_by_name"
}
}Input 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)