get_job_by_id
Retrieve details and current state of an existing job in Alteryx Servers by providing the job ID.
Instructions
Retrieve details about an existing job and its current state
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |
Implementation Reference
- src/mcp_server.py:292-296 (registration)MCP tool registration for get_job_by_id, decorated with @self.app.tool() and delegates to the tools class method.@self.app.tool() def get_job_by_id(job_id: str): """Retrieve details about an existing job and its current state""" return self.tools.get_job_by_id(job_id)
- src/tools.py:510-517 (handler)Core handler implementation that fetches the job details using the jobs_api and formats the output with error handling.def get_job_by_id(self, job_id: str): """Retrieve details about an existing job and its current state. Only app workflows can be used.""" try: api_response = self.jobs_api.jobs_get_job_v3(job_id) return pprint.pformat(api_response) except ApiException as e: return f"Error: {e}"