Skip to main content
Glama

list_workflows

Retrieve and filter workflows in your workspace to view their ID, name, status, and goal. Supports filtering by status and limiting results.

Instructions

List all workflows in the workspace. Returns id, name, status, goal for each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by status: draft, active, paused
limitNoMax results (default 50, max 200)

Implementation Reference

  • The 'list_workflows' tool implementation. It registers the tool with the MCP server, defines the input schema, and calls the 'listWorkflows' method on the client provided by the clientFactory.
    server.tool(
        'list_workflows',
        'List all workflows in the workspace. Returns id, name, status, goal for each.',
        {
            status: z.string().optional().describe('Filter by status: draft, active, paused'),
            limit: z.number().optional().describe('Max results (default 50, max 200)'),
        },
        async ({ status, limit }, extra) => {
            const client = clientFactory(extra);
            const result = await client.listWorkflows({ status, limit });
            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