get_all_user_assets
Retrieve all assets associated with a specific user from the AYX-MCP-Wrapper server by providing the user ID, simplifying asset management and access control.
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-402 (handler)Core handler function in AYXMCPTools class that calls the Alteryx API to retrieve all assets owned by the specified user_id and formats 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)MCP tool registration using FastMCP's @app.tool() decorator, providing a thin wrapper that delegates to the underlying tools instance method.@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)