Skip to main content
Glama

create_workflow_definition

Create or update workflow definitions in Netflix Conductor. Use this tool to define workflows as JSON objects, with options to overwrite existing definitions.

Instructions

Create or update a workflow definition. If the workflow already exists, it will be updated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
definitionYesComplete workflow definition as a JSON object
overwriteNoOverwrite existing definition (default: true)

Implementation Reference

  • Handler for create_workflow_definition tool. Extracts definition and overwrite from args, posts to Conductor /metadata/workflow endpoint with overwrite param, returns success message.
    case "create_workflow_definition": { const { definition, overwrite = true } = args as any; const response = await conductorClient.post( `/metadata/workflow`, definition, { params: { overwrite }, } ); return { content: [ { type: "text", text: `Workflow definition created/updated successfully.`, }, ], }; }
  • Input schema definition for the create_workflow_definition tool, specifying required 'definition' object and optional 'overwrite' boolean.
    name: "create_workflow_definition", description: "Create or update a workflow definition. If the workflow already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete workflow definition as a JSON object", }, overwrite: { type: "boolean", description: "Overwrite existing definition (default: true)", }, }, required: ["definition"], }, },
  • src/index.ts:273-290 (registration)
    The tool object in the tools array used for listTools response, registering the tool's name, description, and schema.
    name: "create_workflow_definition", description: "Create or update a workflow definition. If the workflow already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete workflow definition as a JSON object", }, overwrite: { type: "boolean", description: "Overwrite existing definition (default: true)", }, }, required: ["definition"], }, },

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/opensensor/conductor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server