Skip to main content
Glama

restart_workflow

Restart a workflow execution from the beginning using the same input parameters. This creates a new execution, optionally with the latest workflow definition.

Instructions

Restart a workflow execution from the beginning. This creates a new execution with the same input.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow execution ID to restart
useLatestDefinitionNoUse the latest workflow definition (default: false)

Implementation Reference

  • Handler for the 'restart_workflow' tool. Makes a POST request to Conductor's /workflow/{workflowId}/restart endpoint with optional useLatestDefinitions parameter and returns the new workflow ID.
    case "restart_workflow": { const { workflowId, useLatestDefinition = false } = args as any; const response = await conductorClient.post( `/workflow/${workflowId}/restart`, null, { params: { useLatestDefinitions: useLatestDefinition }, } ); return { content: [ { type: "text", text: `Workflow restarted successfully. New Workflow ID: ${response.data}`, }, ], }; }
  • Input schema definition for the 'restart_workflow' tool, specifying required workflowId and optional useLatestDefinition.
    name: "restart_workflow", description: "Restart a workflow execution from the beginning. This creates a new execution with the same input.", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "The workflow execution ID to restart", }, useLatestDefinition: { type: "boolean", description: "Use the latest workflow definition (default: false)", }, }, required: ["workflowId"], }, },
  • src/index.ts:598-602 (registration)
    Registration of all tools including 'restart_workflow' via the ListToolsRequestHandler which returns the tools array.
    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