Skip to main content
Glama

restart_workflow

Restart a workflow execution from the beginning using the same input parameters. This creates a new execution for troubleshooting or re-running processes.

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 that executes the restart_workflow tool by making a POST request to Conductor's /workflow/{workflowId}/restart endpoint with optional useLatestDefinitions parameter, returning 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}`, }, ], }; }
  • Tool definition including schema for restart_workflow: requires workflowId (string), optional useLatestDefinition (boolean). Used in tools list for MCP registration.
    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"], }, },
  • Compiled handler for restart_workflow tool (identical logic to source).
    case "restart_workflow": { const { workflowId, useLatestDefinition = false } = args; 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}`, }, ], };
  • Compiled tool schema for restart_workflow (identical to source).
    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"], }, },

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