Skip to main content
Glama

search_random

Pick random photos from your Immich library, optionally filtered by location, camera, favorite status, or OCR text, to survey matches or spot-check large collections.

Instructions

Random assets from the library, optionally filtered. Use this for sampling — a quick feel of what a filter matches, a surprise pick for a story, or spot checks over a big library. Read-only.

Args:
    size: How many random assets to return (default 10, max 100).
    city: Only assets from this city.
    country: Only assets from this country.
    make: Only assets from this camera make.
    model: Only assets from this camera model.
    is_favorite: If true, only favorites.
    ocr: Only assets whose recognized text matches (needs OCR on the server).

Returns: JSON with the matching assets array.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ocrNo
cityNo
makeNo
sizeNo
modelNo
countryNo
is_favoriteNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and clearly discloses 'Read-only' along with the JSON return format. It also flags the OCR dependency ('needs OCR on the server') and that results are random, which are non-obvious behavioral traits.

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?

The description is well-organized: purpose and usage up front, then an Args block, then Returns. Each sentence contributes necessary information, and nothing is redundant or wasteful given the 7-parameter surface.

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?

For a read-only random-search tool with no annotations and 7 optional parameters, the description covers purpose, use cases, parameter semantics, safety (read-only), and return shape. The output schema provides the formal structure, so the description fully equips an agent to invoke it correctly.

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

Parameters5/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 fully compensate, and it does. Every parameter (size, city, country, make, model, is_favorite, ocr) gets a plain-language meaning, with size's default/max and the OCR server dependency highlighted.

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?

Description opens with 'Random assets from the library, optionally filtered' – a specific verb, resource, and mode that sets it apart from all other search_* siblings. The sampling use cases ('quick feel', 'surprise pick', 'spot checks') further clarify its unique role without confusion.

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

Usage Guidelines4/5

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

Explicitly states when to use the tool with concrete use cases like sampling and spot checks. It does not name alternative tools or give exclusion criteria, but the context is clear enough that an agent can decide this is the random/sampling choice among the many search tools.

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

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/drolosoft/immich-photo-manager'

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