Skip to main content
Glama

Restore assets

immich_restore_assets

Restore specific assets from the trash in Immich by providing their UUIDs. Use this to recover deleted photos and videos back into your library.

Instructions

Restore assets

Restore specific assets from the trash.

Immich operation: POST /trash/restore/assets · tag: Trash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesids (request body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is largely covered. The description adds the useful 'from the trash' context but says nothing about reversibility of the restore, permission requirements, or batching limits.

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?

Brief and front-loaded, with the core action stated first and the raw endpoint/tag appended as metadata. The opening line repeats the title verbatim, which is a small amount of waste.

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?

For a one-parameter mutation tool with full schema coverage and no output schema, the description covers what an agent needs to call it. Missing only minor behavioral notes such as whether restoring non-trashed ids errors.

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

Parameters3/5

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

Schema description coverage is 100% for the single 'ids' parameter, so the schema already documents the input. The description adds no meaning beyond what the schema provides, which is the expected baseline here.

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?

States a specific verb and resource ('Restore specific assets from the trash') and the scope word 'specific' implicitly contrasts with the whole-trash sibling immich_restore_trash. It does not name that sibling explicitly, so the distinction must be inferred.

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?

'From the trash' and 'specific assets' imply when the tool applies, but there is no explicit when-to-use guidance or named alternative for restoring an entire trash (immich_restore_trash) versus selected assets. Usage is left to inference.

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

Deploy Server

Other Tools