Skip to main content
Glama

Get asset thumbnail

get_asset_thumbnail
Read-only

Retrieve a base64-encoded thumbnail or preview for a single Immich asset to visually inspect one photo. Pass the asset UUID and choose thumbnail or preview size.

Instructions

Get a base64-encoded thumbnail image for a single asset. Use this to visually inspect one photo. For multiple photos, use get_thumbnails_batch (by IDs) or get_album_thumbnails (by album). Read-only.

Args:
    asset_id: The asset's UUID.
    size: 'thumbnail' (250px, fast) or 'preview' (1440px, higher quality). Default: 'thumbnail'.

Returns: JSON with 'data' (base64 string) and 'type' (MIME type, e.g. 'image/jpeg').

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": "get_asset_thumbnail"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNothumbnail
asset_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds real value beyond that: the response is a base64 payload with a MIME type, and the two size modes trade speed against quality (250px 'fast' vs 1440px 'higher quality'). The only minor redundancy is restating 'Read-only', which the annotations already cover.

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?

Front-loaded with purpose and sibling routing, then compact Args/Returns blocks. Every line carries information; nothing is padding.

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 two-parameter read tool with an output schema already present, this is essentially complete — the description need not re-document return structure but does so briefly anyway. A minor gap is that failure behavior for a missing or non-image asset is unspecified.

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?

Schema description coverage is 0%, so the description must carry the burden, and it does: asset_id is identified as a UUID, and size is defined with both accepted values, pixel dimensions, quality implications, and the default. It fully covers both parameters, though it could note that an unknown ID yields an error rather than an image.

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?

States a specific verb and resource ('Get a base64-encoded thumbnail image for a single asset') and immediately scopes it to one asset, which cleanly separates it from get_thumbnails_batch and get_album_thumbnails in the sibling list.

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?

Explicitly gives the when ('visually inspect one photo') and the alternatives with their selection criteria ('For multiple photos, use get_thumbnails_batch (by IDs) or get_album_thumbnails (by album)'). This is exactly the routing information an agent needs.

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