Skip to main content
Glama
Moenamatics

Opus MCP Server

by Moenamatics

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
NameRequiredDescriptionDefault
jobExecutionIdYesThe job execution ID to check status for

Implementation Reference

  • 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), }, ], }; }
  • 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"], }, },
  • The switch case in the CallToolRequestSchema handler that dispatches to the specific getJobStatus method.
    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