Skip to main content
Glama

set_rating

Assign star ratings (0-5) to photos in Lightroom Classic to organize and filter your catalog based on quality or preference.

Instructions

Set Lightroom star rating (0..5).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratingYes
local_idsNo

Implementation Reference

  • The `set_rating` tool handler that validates the rating and calls the underlying bridge metadata command.
    async def set_rating(rating: int, local_ids: list[int] | None = None) -> dict[str, Any]:
        """Set Lightroom star rating (0..5)."""
        payload = {
            "rating": validate_rating(rating),
        }
        ids = validate_local_ids(local_ids)
        if ids:
            payload["local_ids"] = ids
        return await _call("metadata.set_rating", 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