Skip to main content
Glama

delete_workflow

Permanently delete a workflow by ID using the Agentled MCP Server. This action cannot be undone, removing workflows from the AI orchestration platform.

Instructions

Permanently delete a workflow by ID. This cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID to delete

Implementation Reference

  • Tool definition and handler for 'delete_workflow', which delegates to the client's deleteWorkflow method.
    server.tool(
        'delete_workflow',
        'Permanently delete a workflow by ID. This cannot be undone.',
        {
            workflowId: z.string().describe('The workflow ID to delete'),
        },
        async ({ workflowId }, extra) => {
            const client = clientFactory(extra);
            const result = await client.deleteWorkflow(workflowId);
            return {
                content: [{
                    type: 'text' as const,
                    text: JSON.stringify(result, null, 2),
                }],
            };
        }
    );
  • The underlying client implementation that performs the HTTP DELETE request to remove the workflow.
    async deleteWorkflow(id: string) {
        return this.request(`/workflows/${id}`, { method: 'DELETE' });
    }

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