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
| Name | Required | Description | Default |
|---|---|---|---|
| jobExecutionId | Yes | The job execution ID to check status for |
Implementation Reference
- src/index.ts:321-335 (handler)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), }, ], }; }
- src/index.ts:200-209 (schema)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);