Skip to main content
Glama

generate_workflow_name

Generate creative workflow names for saving ComfyUI workflows, producing random slug-style names like 'cosmic-penguin' or 'mighty-purple-narwhal' to help organize your automation projects.

Instructions

Generate a random funny workflow name.

    Args:
        words: Number of words in the name (2-4, default: 2)

    Returns a slug like 'cosmic-penguin' or 'mighty-purple-narwhal'.
    Use this when saving new workflows for creative naming.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wordsNoNumber of words (2-4)

Implementation Reference

  • The handler function for the 'generate_workflow_name' tool. It generates a random funny name using coolname.generate_slug(words), with input validation clamping words to 2-4. Includes inline schema via pydantic Field and docstring description. Decorated with @mcp.tool() for registration.
    @mcp.tool()
    def generate_workflow_name(
        words: int = Field(default=2, description="Number of words (2-4)"),
        ctx: Context = None,
    ) -> str:
        """Generate a random funny workflow name.
    
        Args:
            words: Number of words in the name (2-4, default: 2)
    
        Returns a slug like 'cosmic-penguin' or 'mighty-purple-narwhal'.
        Use this when saving new workflows for creative naming.
        """
        if ctx:
            ctx.info(f"Generating {words}-word workflow name")
    
        words = max(2, min(4, words))  # Clamp to valid range
        return generate_slug(words)
  • Within register_all_tools, calls register_workflow_tools(mcp) which registers the generate_workflow_name tool (via its @mcp.tool() decorator in workflow.py).
    register_workflow_tools(mcp)

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/IO-AtelierTech/comfyui-mcp'

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