get_all_user_assets
Retrieve all assets associated with a specific user from the Alteryx server, including workflows, collections, and other resources.
Instructions
Get all the assets for a user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Implementation Reference
- src/tools.py:395-401 (handler)The core handler function that implements the tool logic by calling the Alteryx server API to retrieve all assets for a given user ID and formatting the response.def get_all_user_assets(self, user_id: str): """Get all the assets for a user""" try: api_response = self.users_api.users_get_users_assets(user_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:256-259 (registration)The MCP tool registration decorator and wrapper function that registers the tool and delegates execution to the underlying tools instance.@self.app.tool() def get_all_user_assets(user_id: str): """Get all the assets for a user""" return self.tools.get_all_user_assets(user_id)