Skip to main content
Glama

Search random assets

immich_search_random

Retrieve a random selection of Immich assets by applying filters like type, date, location, people, tags, or rating. Use it to surface unexpected photos or videos matching specific criteria.

Instructions

Search random assets

Retrieve a random selection of assets based on the provided criteria.

Immich operation: POST /search/random · tag: Search

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ocrNoocr (request body)
cityNocity (request body)
makeNomake (request body)
sizeNosize (request body)
typeNotype (request body)
modelNomodel (request body)
stateNostate (request body)
filterNofilter (request body)
ratingNorating (request body)
tagIdsNotagIds (request body)
countryNocountry (request body)
albumIdsNoalbumIds (request body)
isMotionNoisMotion (request body)
withExifNowithExif (request body)
isEncodedNoisEncoded (request body)
isOfflineNoisOffline (request body)
lensModelNolensModel (request body)
libraryIdNolibraryId (request body)
personIdsNopersonIds (request body)
isFavoriteNoisFavorite (request body)
takenAfterNotakenAfter (request body)
visibilityNovisibility (request body)
withPeopleNowithPeople (request body)
takenBeforeNotakenBefore (request body)
withDeletedNowithDeleted (request body)
withStackedNowithStacked (request body)
createdAfterNocreatedAfter (request body)
isNotInAlbumNoisNotInAlbum (request body)
trashedAfterNotrashedAfter (request body)
updatedAfterNoupdatedAfter (request body)
createdBeforeNocreatedBefore (request body)
trashedBeforeNotrashedBefore (request body)
updatedBeforeNoupdatedBefore (request body)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations give readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, which already signals this is a read-like, open-world, non-idempotent operation. The description adds 'random selection' and mentions the underlying Immich operation (POST /search/random), which is useful. However, it does not disclose pagination, whether results are returned in random order, or size/content limits beyond what the schema provides.

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?

Short and front-loaded: purpose in the first sentence, supplementary detail in the second, and operational metadata in the third. No wasted words, though the 'Immich operation' line is boilerplate rather than descriptive.

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

Completeness3/5

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

For a 33-parameter search tool with no output schema, the description is minimal but not incorrect. It tells the agent what the tool does at a high level, but it omits result-shape expectations, randomness semantics, and how it relates to the many other search tools, leaving gaps an agent must resolve by exploring the schema.

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%, so the schema already documents all 33 parameters (many only as '(request body)', but coverage is complete per the metric). The description does not add syntax or meaning beyond 'based on the provided criteria'. Baseline 3 applies when schema does the heavy lifting.

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+resource ('Search random assets') and adds 'Retrieve a random selection of assets based on the provided criteria', which clarifies the operation. It is clear, but it does not differentiate itself from siblings like immich_search_assets or immich_search_smart, leaving the agent to infer the distinction.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus immich_search_assets, immich_search_smart, or other search variants. The description only restates the operation; no when/when-not or alternatives are given.

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