Skip to main content
Glama

delete_snapshot

Remove specific workflow snapshots to manage storage when limits are reached. Use list_snapshots to identify which snapshots to delete.

Instructions

Delete a specific config snapshot. Use list_snapshots to find snapshot IDs. Useful for freeing up space when the snapshot limit is reached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID
snapshotIdYesThe snapshot ID to delete (from list_snapshots)

Implementation Reference

  • The actual API client method that sends the DELETE request to delete a snapshot.
    async deleteSnapshot(workflowId: string, snapshotId: string) {
        return this.request(`/workflows/${workflowId}/snapshots`, {
            method: 'DELETE',
            body: JSON.stringify({ snapshotId }),
        });
    }
  • MCP tool registration and handler implementation for 'delete_snapshot'.
        server.tool(
            'delete_snapshot',
            `Delete a specific config snapshot. Use list_snapshots to find snapshot IDs.
    Useful for freeing up space when the snapshot limit is reached.`,
            {
                workflowId: z.string().describe('The workflow ID'),
                snapshotId: z.string().describe('The snapshot ID to delete (from list_snapshots)'),
            },
            async ({ workflowId, snapshotId }, extra) => {
                const client = clientFactory(extra);
                const result = await client.deleteSnapshot(workflowId, snapshotId);
                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