Update asset metadata
update_asset_metadataUpdate metadata fields on a specific Immich asset to correct dates, GPS coordinates, descriptions, favorite status, or rating without altering unprovided fields.
Instructions
Update metadata fields on a specific asset. Use this to fix dates, correct GPS, add descriptions, or change favorite/rating status. Only provided fields are modified. Side effect: permanently changes asset metadata in Immich.
Args:
asset_id: The asset's UUID.
date_time_original: ISO 8601 datetime (e.g. '2019-07-14T15:23:41.000Z').
latitude: GPS latitude, decimal degrees (-90.0 to 90.0).
longitude: GPS longitude, decimal degrees (-180.0 to 180.0).
description: Free-text description/caption for the asset.
is_favorite: Set favorite status (true/false).
rating: -1 to reject the photo, or 1 to 5 stars. A rating cannot be
cleared from here, and 0 is not a rating Immich 3.x accepts.
Returns: JSON with the updated asset object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset_id": "<asset_id>"
},
"name": "update_asset_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rating | No | ||
| asset_id | Yes | ||
| latitude | No | ||
| longitude | No | ||
| description | No | ||
| is_favorite | No | ||
| date_time_original | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |