Skip to main content
Glama

list_available_presets

Retrieve all style presets for generating 2D game assets like sprites and characters using AI workflows in ComfyMCP Studio.

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 primary handler function for the 'list_available_presets' tool. It is registered via the @mcp.tool() decorator and returns a JSON string of all available presets by calling the list_presets() helper.
    @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 constructs and returns a dictionary containing all preset configurations, used by the tool handler.
    def list_presets() -> Dict[str, Dict[str, Any]]: """List all available presets.""" return {name: preset.to_dict() for name, preset in PRESETS.items()}
  • server/main.py:91-91 (registration)
    The @mcp.tool() decorator registers the list_available_presets 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/tuannguyen14/ComfyAI-MCP-GameAssets'

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