get_workflow_jobs
Retrieve all jobs linked to a specific workflow in Alteryx Server to monitor execution status and manage task progress.
Instructions
Get all jobs associated with a workflow
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes |
Implementation Reference
- src/tools.py:203-212 (handler)Core implementation of get_workflow_jobs: retrieves the workflow, checks existence, calls the Alteryx API to get jobs, and formats the response.def get_workflow_jobs(self, workflow_id: str): """Get the list of jobs for an existing workflow""" try: workflow = self.workflows_api.workflows_get_workflow(workflow_id) if not workflow: return "Error: Workflow not found" api_response = self.workflows_api.workflows_get_jobs_for_workflow(workflow_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:202-205 (registration)MCP tool registration using @app.tool() decorator; thin wrapper delegating to the tools instance method.@self.app.tool() def get_workflow_jobs(workflow_id: str): """Get all jobs associated with a workflow""" return self.tools.get_workflow_jobs(workflow_id)