Skip to main content
Glama

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
NameRequiredDescriptionDefault
job_idYes

Implementation Reference

  • 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}"
  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jupiterbak/AYX-MCP-Wrapper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server