Skip to main content
Glama

search_smart

Find photos by describing their visual content in natural language, then refine results with filters for location, date, people, tags, and albums.

Instructions

AI-powered visual search using CLIP embeddings. Use this when describing what a photo looks like in natural language (e.g. 'sunset at the beach', 'dog playing fetch'). For structured criteria (city, camera, date), use search_metadata instead. Requires Immich ML service with Smart Search enabled. Read-only.

Args:
    query: Natural language description of the visual content to find.
    city: Optional city filter to narrow results geographically.
    state: Optional state/region filter.
    country: Optional country filter.
    taken_after: ISO date — only assets captured after this date.
    taken_before: ISO date — only assets captured before this date.
    ocr: Text recognized inside the image, combined with the visual query.
        Needs OCR enabled on the server — check with get_capabilities.
    person_ids: Only assets showing ALL of these people (ids from list_people).
    tag_ids: Only assets carrying these tags (ids from list_tags).
    album_ids: Only assets inside these albums.
    page: Page number, starting from 1 (default 1).
    size: Results per page (1-200, default 50).

Returns: JSON with total count, page, and assets ranked by visual similarity to the query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ocrNo
cityNo
pageNo
sizeNo
queryYes
stateNo
countryNo
tag_idsNo
album_idsNo
person_idsNo
taken_afterNo
taken_beforeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv2.0.2
    • addedInput schema / properties / album_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Album Ids"
      +}
    • addedInput schema / properties / ocr
      Added value: +{
      +  "default": "",
      +  "title": "Ocr",
      +  "type": "string"
      +}
    • addedInput schema / properties / person_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Person Ids"
      +}
    • addedInput schema / properties / tag_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Tag Ids"
      +}
  2. First observedv1.0.0

TDQS

A5/5.0
Behavior5/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 meets it: it declares 'Read-only,' discloses the server-side dependency, and flags that the ocr parameter requires OCR enabled, pointing to get_capabilities as a check. It also reveals non-obvious behavior — results are 'ranked by visual similarity to the query.'

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?

Every sentence earns its place: purpose, usage condition, alternative, prerequisite, and safety are front-loaded before the structured Args block. The per-line parameter format is compact and consistent, with examples and constraints inline, and the Returns line closes with the essential output shape.

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 12-parameter tool with no annotations and zero schema descriptions, the description covers what the tool does, when to use it, the alternative, prerequisites, every parameter's semantics, and the return shape. Since an output schema exists for detailed return structure, the brief Returns line is sufficient; nothing needed to select or invoke the tool correctly is missing.

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 Args block must compensate — and it fully does. Every one of the 12 parameters gains meaning beyond the schema titles: the ALL constraint on person_ids, ISO date semantics for taken_after/taken_before, source hints like 'ids from list_people' and 'ids from list_tags,' and the 1-200 range for size.

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?

Opens with a specific verb and resource — 'AI-powered visual search using CLIP embeddings' — and clarifies the input modality with concrete natural-language examples. It explicitly differentiates itself from sibling search_metadata ('For structured criteria (city, camera, date), use search_metadata instead'), so an agent can select it without ambiguity.

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?

Gives an explicit when-to-use rule ('Use this when describing what a photo looks like in natural language') and names the exact alternative for structured criteria. It also states the prerequisite ('Requires Immich ML service with Smart Search enabled'), which tells the agent when the tool is available.

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

Install Server

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