Skip to main content
Glama
Moenamatics

Opus MCP Server

by Moenamatics

initiate_job

Start workflow execution by providing workflow ID, title, and description to create a job with a unique execution ID for tracking.

Instructions

Initiate a new job for a workflow. Returns jobExecutionId required for subsequent operations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe ID of the workflow to execute
titleYesTitle for the job
descriptionYesDescription for the job

Implementation Reference

  • The main handler function for the 'initiate_job' tool. It extracts workflowId, title, and description from args, sends a POST request to the '/job/initiate' endpoint, and returns the response as formatted text content.
    private async initiateJob(args: any) { const { workflowId, title, description } = args; const response = await this.axiosInstance.post("/job/initiate", { workflowId, title, description, }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • src/index.ts:130-152 (registration)
    Tool registration in the listTools response, including the name 'initiate_job', description, and input schema defining required parameters.
    { name: "initiate_job", description: "Initiate a new job for a workflow. Returns jobExecutionId required for subsequent operations", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "The ID of the workflow to execute", }, title: { type: "string", description: "Title for the job", }, description: { type: "string", description: "Description for the job", }, }, required: ["workflowId", "title", "description"], }, },
  • Dispatch case in the CallToolRequestHandler that routes 'initiate_job' calls to the initiateJob method.
    case "initiate_job": return await this.initiateJob(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