get_all_job_messages
Retrieve all messages associated with a specific job in Alteryx workflows by providing the job ID, enabling efficient tracking and management of job-related activities.
Instructions
Get all the messages for a job
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Implementation Reference
- src/tools.py:497-508 (handler)The core handler function that fetches all messages for the specified job using the Alteryx Server API, checks if the job exists, and formats the response.def get_all_job_messages(self, job_id: str): """Get all the messages for a job""" try: # check if job exists job = self.jobs_api.jobs_get_job_v3(job_id) if not job: return "Error: Job not found" api_response = self.jobs_api.jobs_get_job_messages(job_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"
- src/mcp_server.py:287-290 (registration)Registers the 'get_all_job_messages' tool with the MCP server app, which delegates execution to the underlying tools instance.@self.app.tool() def get_all_job_messages(job_id: str): """Get all the messages for a job""" return self.tools.get_all_job_messages(job_id)