Skip to main content
Glama

list_snapshots

Retrieve available configuration snapshots for workflows to review changes and restore previous states. Snapshots capture workflow configurations before API updates.

Instructions

List available config snapshots for a workflow. Snapshots are automatically captured before every external API update, allowing you to restore a previous configuration. Returns snapshot ID, timestamp, and which fields were changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID

Implementation Reference

  • The MCP tool handler for 'list_snapshots' which delegates to the client.
    async ({ workflowId }, extra) => {
        const client = clientFactory(extra);
        const result = await client.listSnapshots(workflowId);
        return {
            content: [{
                type: 'text' as const,
                text: JSON.stringify(result, null, 2),
            }],
        };
  • The client method that performs the actual network request to fetch snapshots.
    async listSnapshots(workflowId: string) {
        return this.request(`/workflows/${workflowId}/snapshots`);
    }
  • Registration of the 'list_snapshots' MCP tool.
        server.tool(
            'list_snapshots',
            `List available config snapshots for a workflow. Snapshots are automatically captured
    before every external API update, allowing you to restore a previous configuration.
    Returns snapshot ID, timestamp, and which fields were changed.`,
            {
                workflowId: z.string().describe('The workflow ID'),
            },

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