Skip to main content
Glama

Find photos by description

search_images
Read-only

Find photos in a folder by describing what they show. Matches JPEG and PNG images locally without uploading them and returns file paths ranked by relevance.

Instructions

Find the photos in a folder that best match a description, such as "a dog on a beach" or "receipt from a restaurant", with CLIP, locally. Photos are never uploaded. JPEG and PNG, subfolders included; iPhone HEIC photos are not read. The first search of a folder embeds every photo, about 20 ms each on a desktop CPU; later searches reuse that until files change. Returns the photos' paths best first, with scores that are only meaningful as a ranking. For text in documents or code use search_folder.

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": {
      "path": "<path>",
      "query": "<query>"
    },
    "name": "search_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the folder of photos.
queryYesWhat the photo shows, in natural language.
top_kNoHow many photos to return. Default 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.2

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the readOnly/openWorld annotations: local-only processing with no upload, supported formats and subfolder recursion, cold-start embedding cost (~20 ms/photo) versus cached reuse until files change, and ranking-only score semantics. The remaining gap is minor — no note on what happens to partial or interrupted indexing of a large folder — but the disclosure is otherwise unusually rich for a read-only tool.

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-loads the purpose in the first clause, then spends each following sentence on a distinct decision-relevant fact (privacy, format support, latency, return semantics, sibling routing). Dense but no sentence is redundant.

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?

With no output schema, the description still covers returns (paths, best first, scores as ranking only) and adds cost, caching, and format caveats. Nothing an agent needs to invoke it correctly or interpret results is missing.

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 coverage is 100%, so path, query, and top_k are already documented. The description reinforces the query as natural-language visual content and that path must be a folder rather than a file, but adds no format, path-syntax, or top_k tuning guidance beyond the schema. Baseline 3 applies.

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 ('Find the photos in a folder that best match a description'), names the underlying method (CLIP, locally), and explicitly distinguishes itself from search_folder for text-in-documents queries. An agent can pick between the two without opening a schema.

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 the positive case (semantic photo matching by description, with example queries) and an explicit exclusion with a named alternative: 'For text in documents or code use search_folder.' It also flags a hard limit that conditions use — HEIC photos are not read — so the agent knows when this tool will silently miss files.

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