get_all_collections
Retrieve all collections from an Alteryx server to manage and organize workflows, users, and schedules through the AYX-MCP-Wrapper interface.
Instructions
Get the list of all collections of the Alteryx server
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_all_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.py:33-39 (handler)Core handler logic for get_all_collections tool: calls Alteryx collections_api to retrieve all collections and formats the response using pprint.pformat, with error handling.
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:121-124 (registration)MCP tool registration and wrapper handler for get_all_collections using FastMCP @app.tool decorator, delegates to AYXMCPTools instance.
@self.app.tool() def get_all_collections(): """Get the list of all collections of the Alteryx server""" return self.tools.get_all_collections()