Skip to main content
Glama

create_collection

Organize photos by creating new collections in Lightroom Classic, optionally grouping them within existing collection sets for better catalog management.

Instructions

Create a new collection (optionally inside a collection set).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
parent_idNo

Implementation Reference

  • The handler function for the `create_collection` tool, decorated with @mcp.tool().
    @mcp.tool()
    async def create_collection(name: str, parent_id: int | None = None) -> dict[str, Any]:
        """Create a new collection (optionally inside a collection set)."""
        if not name:
            raise ValueError("name is required")
        payload: dict[str, Any] = {"name": name}
        if parent_id is not None:
            payload["parent_id"] = parent_id
        return await _call("catalog.create_collection", payload)

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/4xiomdev/lightroom-classic-mcp'

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