Skip to main content
Glama

list_official_templates

Retrieve official ComfyUI workflow templates from the Comfy-Org repository, synced and converted to DSL format for workflow management.

Instructions

List official ComfyUI templates.

Returns templates from the official Comfy-Org repository that have been synced and converted to DSL format.

Returns: List of official template metadata

Examples: list_official_templates()

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function decorated with @mcp.tool, which implements the list_official_templates tool by calling template_manager.search_templates(source='official') to retrieve official template metadata.
    @mcp.tool
    def list_official_templates() -> list[dict]:
        """List official ComfyUI templates.
        
        Returns templates from the official Comfy-Org repository
        that have been synced and converted to DSL format.
        
        Returns:
            List of official template metadata
        
        Examples:
            list_official_templates()
        """
        try:
            # Get only official templates
            results = template_manager.search_templates(source="official")
            return results
            
        except Exception as e:
            raise ToolError(f"Error listing official templates: {e}")
  • The @mcp.tool decorator registers the list_official_templates function as an MCP tool.
    @mcp.tool

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/christian-byrne/comfy-mcp'

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