Skip to main content
Glama

create_workflow_definition

Create or update workflow definitions in Conductor to automate business processes and orchestrate tasks.

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

  • Tool schema definition including name, description, input schema with 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"],
      },
    },
  • Handler function that executes the tool: extracts 'definition' and 'overwrite' from args, sends POST request to Conductor's /metadata/workflow endpoint, and returns a 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.`,
          },
        ],
      };
    }
  • src/index.ts:598-602 (registration)
    Registration via the tools array returned in ListToolsRequestHandler, which includes the create_workflow_definition tool.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return {
        tools,
      };
    });

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