remove_schedule_from_collection
Remove a specific schedule from a collection by providing the collection ID and schedule ID to manage workflow automation efficiently.
Instructions
Remove a schedule from a collection by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | ||
| schedule_id | Yes |
Implementation Reference
- src/tools.py:127-139 (handler)The primary handler function executing the tool logic: validates collection and schedule existence, then calls the Alteryx collections API to remove the schedule from the collection.def remove_schedule_from_collection(self, collection_id: str, schedule_id: str): """Remove a schedule from a collection by its ID""" try: collection = self.collections_api.collections_get_collection(collection_id) if not collection: return "Error: Collection not found" schedule = self.schedules_api.schedules_get_schedule(schedule_id) if not schedule: return "Error: Schedule not found" api_response = self.collections_api.collections_remove_schedule_from_collection(collection_id, schedule_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:161-164 (registration)MCP tool registration decorator and wrapper function that delegates execution to the tools instance's handler.@self.app.tool() def remove_schedule_from_collection(collection_id: str, schedule_id: str): """Remove a schedule from a collection by its ID""" return self.tools.remove_schedule_from_collection(collection_id, schedule_id)
- src/mcp_server.py:48-48 (registration)Tool name and description in the system prompt for the MCP server.- remove_schedule_from_collection: Remove a schedule from a collection