get_all_collections
Retrieve a complete list of collections from an Alteryx server using the AYX-MCP-Wrapper interface. This tool simplifies access to server resources for efficient management and organization.
Instructions
Get the list of all collections of the Alteryx server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.py:33-40 (handler)Core handler function that executes the tool logic by calling the Alteryx Collections API to retrieve all collections and formats the response.def get_all_collections(self): """Get the list of all collections of the Alteryx server""" try: api_response = self.collections_api.collections_get_collections() return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:122-125 (registration)MCP server tool registration decorator and wrapper function that delegates to the AYXMCPTools instance method.def get_all_collections(): """Get the list of all collections of the Alteryx server""" return self.tools.get_all_collections()
- src/mcp_server.py:40-40 (schema)Tool name and description in the MCP server prompt/system message.- get_all_collections: Get all collections