remove_workflow_from_collection
Remove a workflow from an Alteryx collection using workflow and collection IDs to manage workflow organization.
Instructions
Remove a workflow from a collection by its ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection_id": "<collection_id>",
"workflow_id": "<workflow_id>"
},
"name": "remove_workflow_from_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | ||
| workflow_id | Yes |
Implementation Reference
- src/tools.py:98-110 (handler)Core implementation of the remove_workflow_from_collection tool. Validates existence of collection and workflow, then calls the Alteryx collections API to remove the workflow from the collection.
def remove_workflow_from_collection(self, collection_id: str, workflow_id: str): """Remove a workflow from a collection by its ID""" try: collection = self.collections_api.collections_get_collection(collection_id) if not collection: return "Error: Collection not found" workflow = self.workflows_api.workflows_get_workflow(workflow_id) if not workflow: return "Error: Workflow not found" api_response = self.collections_api.collections_remove_workflow_from_collection(collection_id, workflow_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}" - src/mcp_server.py:151-154 (registration)MCP server tool registration. Decorated with @self.app.tool() and delegates execution to the AYXMCPTools instance.
@self.app.tool() def remove_workflow_from_collection(collection_id: str, workflow_id: str): """Remove a workflow from a collection by its ID""" return self.tools.remove_workflow_from_collection(collection_id, workflow_id)