Skip to main content
Glama

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
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID
executionIdYesThe execution ID to stop

Implementation Reference

  • 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),
                }],
            };
        }
    );

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/Agentled/mcp-server'

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