Skip to main content
Glama

lr_download_photos

Download Lightroom photos as JPEG files by asset IDs or a whole album. Saves at chosen resolution, skips unchanged files on repeat runs, and resumes interrupted downloads.

Instructions

Save photos as JPEG files. Pass either asset_ids or album_id (the whole album). size: '640' | '1280' | '2048' | '2560' | 'fullsize' (original resolution with edits; slower). dest_dir defaults to ~/Downloads/lightroom/. naming: 'file' (default) names files after the original file name with a .jpg extension (IMG_1.jpg, then IMG_1-2.jpg for a second photo with that name); 'id' names them .jpg, which stays the same when a photo is renamed. Switching naming in one folder keeps both copies; each name has its own cache entry. <dest_dir>/.lr-mcp.json records each photo as soon as it is saved, so an interrupted call keeps its progress; on the next call into the same folder, photos whose file, size and edit time are unchanged are skipped. This needs a stable folder: album_id or an explicit dest_dir (asset_ids alone get a new export- folder each time). A .lr-mcp.json.lock file stays next to it. force=True re-downloads everything, e.g. if a saved file looks stale. Each file is written under a temporary name and renamed when complete, so the folder must be writable (in a read-only one every photo fails). A rendition still being generated after a minute, or a failed generation request, gets one more try. After 8 photos in a row fail with network or server errors (not e.g. a 404 for one photo) the rest are not tried, and the reply says how many; call again to continue.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lr_download_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo2048
forceNo
namingNofile
album_idNo
dest_dirNo
asset_idsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / naming
      Added value: +{
      +  "default": "file",
      +  "title": "Naming",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / force
      Added value: +{
      +  "default": false,
      +  "title": "Force",
      +  "type": "boolean"
      +}
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does so exceptionally: caching via .lr-mcp.json, skip-if-unchanged semantics, the lock file, temp-file-and-rename atomicity, read-only directory failure, one retry per rendition, and the circuit breaker after 8 consecutive network/server errors with resume-on-next-call. This is exactly the operational detail an agent needs for a slow, resumable, side-effecting download.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A per-parameter block format front-loads the core action and then details size, dest_dir, naming, caching, and error handling in roughly that order of importance. It is dense and justified by the 6 parameters and resumability, though the cache paragraph is slightly repetitive about folder stability and could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return values needn't be explained, and the description covers inputs, error paths, partial-failure messaging, and resumption. It is essentially complete for a stateful export tool; only the both-vs-either parameter precedence and expected runtime for 'fullsize' are missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does for nearly every parameter: size enumerates all valid values including 'fullsize' trade-off, naming explains both 'file' and 'id' semantics plus the collision and cache consequences, dest_dir documents the default path pattern and the stability requirement, and force is illustrated with a use case. Only the asset_ids/album_id interaction lacks a stated supersession rule if both are passed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and output format: 'Save photos as JPEG files', and immediately states the two mutually exclusive input modes (asset_ids or album_id). It doesn't explicitly differentiate from siblings like lr_view_photos or lr_get_photo, which is the main gap, but the write-to-disk purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives implied routing ('Pass either asset_ids or album_id (the whole album)') and prescribes when to use force=True ('if a saved file looks stale'). However, it never says when a caller should choose this over lr_view_photos or lr_get_photo, and doesn't warn against passing neither source.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.