get_job_status
Check the current status of a job execution (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 main handler function that retrieves the job status by making a GET request to the Opus API endpoint `/job/${jobExecutionId}/status` and returns the JSON response as 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)Defines the input schema for the get_job_status tool, which requires a single string parameter: jobExecutionId.inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to check status for", }, }, required: ["jobExecutionId"], },
- src/index.ts:196-210 (registration)Registers the get_job_status tool in the list returned by listTools, providing 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 (handler)The switch case in the CallToolRequestSchema handler that dispatches to the specific getJobStatus method.case "get_job_status": return await this.getJobStatus(args);