get_all_job_messages
Retrieve all messages associated with a specific job to monitor progress and troubleshoot issues.
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)Core handler function implementing the tool logic: checks if job exists via API, fetches job messages using jobs_api.jobs_get_job_messages, formats with pprint.pformat, handles ApiException.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)MCP tool registration: decorator @self.app.tool() registers the function as a tool, which delegates execution to the underlying tools.get_all_job_messages method.@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)