get_workflow_by_id
Retrieve a specific workflow from Alteryx Server using its unique identifier to access and manage automation processes.
Instructions
Get a workflow by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes |
Implementation Reference
- src/tools.py:150-156 (handler)The core handler function implementing the get_workflow_by_id tool. It calls the Alteryx workflows API to retrieve the workflow by ID, formats the response using pprint, and handles ApiException errors.def get_workflow_by_id(self, workflow_id: str): """Get a workflow by its ID""" try: api_response = self.workflows_api.workflows_get_workflow(workflow_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:172-175 (registration)MCP tool registration decorator and wrapper function in the server that delegates execution to the AlteryxTools instance method.@self.app.tool() def get_workflow_by_id(workflow_id: str): """Get a workflow by its ID""" return self.tools.get_workflow_by_id(workflow_id)