transfer_all_assets
Move all assets from one user to another with structured input, ensuring streamlined ownership transitions.
Instructions
Transfer all assets from one user to another
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_owner_id | Yes | ||
| user_id | Yes |
Implementation Reference
- src/tools.py:447-473 (handler)Core implementation of the transfer_all_assets tool in AYXMCPTools class. Transfers user assets (workflows, schedules, collections) to a new owner using the Alteryx API.def transfer_all_assets( self, user_id: str, new_owner_id: str, transfer_workflows: bool, transfer_schedules: bool, transfer_collections: bool, ): """Transfer all assets (workflows, schedules, collections) owned by one user to another.""" try: user = self.users_api.users_get_user(user_id) if not user: return "Error: User not found" new_owner = self.users_api.users_get_user(new_owner_id) if not new_owner: return "Error: New owner not found" contract = server_client.TransferUserAssetsContract( owner_id=new_owner_id, transfer_workflows=transfer_workflows, transfer_schedules=transfer_schedules, transfer_collections=transfer_collections, ) api_response = self.users_api.users_transfer_assets(user_id, contract) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:271-274 (registration)MCP tool registration and thin handler wrapper that delegates to the tools implementation.@self.app.tool() def transfer_all_assets(user_id: str, new_owner_id: str): """Transfer all assets from one user to another""" return self.tools.transfer_all_assets(user_id, new_owner_id)
- src/mcp_server.py:70-70 (schema)Tool description and name listed in the MCP server prompt documentation.- transfer_all_assets: Transfer all user assets