get_workflow_jobs
Retrieve all jobs linked to a specific workflow using workflow_id for streamlined job management and tracking within Alteryx Server environments.
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 handler function that retrieves the list of jobs for a specified workflow using the Alteryx Server V3 API workflows_get_jobs_for_workflow endpoint.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 decorator and wrapper function that delegates the call to the AYXMCPTools instance's get_workflow_jobs 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)