Skip to main content
Glama

get_job_status

Check the current execution status of a job (e.g., IN PROGRESS, COMPLETED, FAILED) by providing the job execution ID.

Instructions

Get the current status of a job execution (e.g., IN PROGRESS, COMPLETED, FAILED)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobExecutionIdYesThe job execution ID to check status for

Implementation Reference

  • The core handler function for the 'get_job_status' tool. It extracts the jobExecutionId from input arguments, makes a GET request to the Opus API at `/job/${jobExecutionId}/status`, and returns the status response as formatted JSON text content.
    private async getJobStatus(args: any) { const { jobExecutionId } = args; const response = await this.axiosInstance.get( `/job/${jobExecutionId}/status` ); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • Input schema validation for the get_job_status tool, defining the required jobExecutionId parameter as a string.
    inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to check status for", }, }, required: ["jobExecutionId"], },
  • src/index.ts:196-210 (registration)
    Registration of the get_job_status tool in the tools list returned by listTools handler, including name, description, and input schema.
    { name: "get_job_status", description: "Get the current status of a job execution (e.g., IN PROGRESS, COMPLETED, FAILED)", inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to check status for", }, }, required: ["jobExecutionId"], }, },
  • src/index.ts:88-89 (registration)
    Dispatch registration in the CallToolRequestSchema switch statement that routes calls to the getJobStatus handler.
    case "get_job_status": return await this.getJobStatus(args);

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/Moenamatics/Opus-MCP'

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