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' });
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses the irreversible nature ('cannot be undone'), which is a critical behavioral trait for a destructive operation. However, it lacks details on permissions, error conditions, or side effects (e.g., impact on related executions).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences with zero waste. The first sentence states the action and resource, and the second adds crucial behavioral context, making it front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations and no output schema, the description is minimally adequate. It covers the irreversible nature but lacks details on permissions, response format, or error handling, leaving gaps in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so the baseline is 3. The description adds no specific parameter semantics beyond what the schema provides ('workflowId'), but since there is only one parameter, the description's focus on the action compensates adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('permanently delete') and the target resource ('a workflow by ID'), making the purpose specific and unambiguous. It distinguishes itself from sibling tools like 'delete_snapshot' by specifying the resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites (e.g., workflow must exist), exclusions (e.g., cannot delete active workflows), or related tools (e.g., 'discard_draft' for drafts).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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