Skip to main content
Glama
Moenamatics

Opus MCP Server

by Moenamatics

get_job_results

Retrieve results from completed job executions in the Opus workflow automation platform. Provide a job execution ID to access output data when the job status is COMPLETED.

Instructions

Get the results of a completed job execution. Only works when job status is COMPLETED

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobExecutionIdYesThe job execution ID to retrieve results for

Implementation Reference

  • The main handler function for the 'get_job_results' tool. It extracts the jobExecutionId from arguments, makes a GET request to `/job/${jobExecutionId}/results` using the axios instance, and returns the response data as formatted JSON text content.
    private async getJobResults(args: any) { const { jobExecutionId } = args; const response = await this.axiosInstance.get( `/job/${jobExecutionId}/results` ); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • The tool definition in the list of tools returned by getTools(), including the name, description, and input schema requiring 'jobExecutionId'.
    { name: "get_job_results", description: "Get the results of a completed job execution. Only works when job status is COMPLETED", inputSchema: { type: "object", properties: { jobExecutionId: { type: "string", description: "The job execution ID to retrieve results for", }, }, required: ["jobExecutionId"], }, },
  • src/index.ts:89-92 (registration)
    The switch case in the CallToolRequestSchema handler that routes calls to 'get_job_results' to the getJobResults method.
    return await this.getJobStatus(args); case "get_job_results": return await this.getJobResults(args); case "get_job_audit_log":

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