Skip to main content
Glama
sweetrb

apple-photos-mcp

by sweetrb

set-keywords

Add or remove keywords on a macOS Photos photo without disturbing existing tags. Useful for tagging workflows and correcting mis-tags; prevents accidental keyword loss.

Instructions

Use when: you want to add and/or remove keywords (tags) on a photo — tagging workflows, fixing a mis-tag — without disturbing its other keywords. Returns: uuid, before/after keyword lists (revert by re-running with the diff inverted), added and removed (what actually changed — adding an existing keyword or removing an absent one is a no-op), and changed. Do not use when: you want to browse keywords — use list-keywords; or find photos by keyword — use query. A keyword passed in both add and remove is rejected. Safety: WRITE tool — disabled unless APPLE_PHOTOS_MCP_ENABLE_WRITES=1 (run doctor to check). UNION semantics — the photo's current keywords are read first and edits are merged in, so existing keywords you don't mention are ALWAYS preserved (never a blind replace). Metadata only — the image asset is untouched; the target photo is validated to exist first. Drives Photos.app via AppleScript (requires macOS Automation permission). Writes target the library currently open in Photos.app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addNoKeywords to add (created in Photos if new)
uuidYesPhoto UUID (hex-with-dashes, as returned by query)
removeNoKeywords to remove from this photo (exact match)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidNo
addedNo
afterNo
beforeNo
changedNo
removedNo
Behavior5/5

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

With no annotations present, the description carries the full burden and excels. It discloses the write nature, environment dependency (APPLE_PHOTOS_MCP_ENABLE_WRITES), the union/merge semantics ensuring preservation of unmentioned keywords, metadata-only impact, asset validation, AppleScript permission requirements, and the target library context. All critical behavioral aspects are transparent.

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

Conciseness5/5

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

Despite its length, the description is exceptionally well-structured with clear prefixed sections ('Use when:', 'Returns:', 'Do not use when:', 'Safety:') that make scanning easy. Every sentence provides unique, essential information, and the structure front-loads the primary purpose and use cases.

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

Completeness5/5

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

Given the tool's write nature, the description covers safety, permissions, library context, validation, and return values. With an output schema present, it still explains what the returned diff means and how to revert. It is fully complete for an agent to safely and correctly invoke the tool.

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

Parameters4/5

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

The input schema already has 100% description coverage for the three parameters. The description adds valuable semantics beyond the schema, such as the no-op behavior for adding existing or removing absent keywords, the rejection of overlapping add/remove, and the effect of new keyword creation. This enriches the schema's basic field descriptions.

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

Purpose5/5

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

The description clearly states the tool's function: 'add and/or remove keywords (tags) on a photo'. It also distinguishes this tool from sibling tools by emphasizing the non-destructive merge semantics ('without disturbing its other keywords') and explicitly contrasting with list-keywords and query in the 'Do not use when' section.

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

Usage Guidelines5/5

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

The description provides explicit use cases ('tagging workflows, fixing a mis-tag'), explicit exclusions ('Do not use when: you want to browse keywords — use list-keywords; or find photos by keyword — use query'), and an additional constraint ('A keyword passed in both add and remove is rejected'). This fully guides an agent on when and when not to use the tool.

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

Install Server

Other Tools

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/sweetrb/apple-photos-mcp'

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