Skip to main content
Glama

list_available_presets

Retrieve available style presets for AI-powered 2D game asset generation in ComfyUI workflows.

Instructions

List all available style presets for asset generation.

Returns: JSON object containing all presets with their configurations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The @mcp.tool() decorated handler function for list_available_presets. It calls the helper list_presets() and returns the result as formatted JSON string.
    @mcp.tool() async def list_available_presets() -> str: """List all available style presets for asset generation. Returns: JSON object containing all presets with their configurations """ return json.dumps(list_presets(), indent=2)
  • Helper function that converts the PRESETS dictionary into a serializable format for the tool response.
    def list_presets() -> Dict[str, Dict[str, Any]]: """List all available presets.""" return {name: preset.to_dict() for name, preset in PRESETS.items()}

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/tuannguyen14/ComfyAI-MCP-GameAssets'

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