stop_execution
Stop a running or pending workflow execution in the Agentled MCP Server by providing workflow and execution IDs. Use this tool to halt ongoing or scheduled workflow processes.
Instructions
Stop a running or pending workflow execution. Only works on executions with status "running" or "pending".
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID | |
| executionId | Yes | The execution ID to stop |
Implementation Reference
- src/tools/executions.ts:117-134 (handler)Registration and handler implementation for the stop_execution MCP tool.
server.tool( 'stop_execution', 'Stop a running or pending workflow execution. Only works on executions with status "running" or "pending".', { workflowId: z.string().describe('The workflow ID'), executionId: z.string().describe('The execution ID to stop'), }, async ({ workflowId, executionId }, extra) => { const client = clientFactory(extra); const result = await client.stopExecution(workflowId, executionId); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2), }], }; } );