Skip to main content
Glama
facenest-mcp

facenest-mcp

by eclgo

facenest_query_photos

Search a local photo library with combined read-only filters for date, place, people, tags, camera, caption, favorites, and photo IDs; returns matching photos without saving an album.

Instructions

READ-ONLY rule query — the same rule engine as a smart album, but NOTHING is saved (no album is created, no 'Allow writes' needed). Use it for every filtered search: a date range, a place, camera/lens, origin, a person, how many people, a tag, caption text, or a pinned id set — and combine rules with match_mode 'all' (AND) / 'any' (OR). Rule shapes (exactly the set the album UI offers): {type:'album', op:'is'|'is_not', album_id:int}; {type:'folder', op:'is'|'is_not'|'under', value:str} (value is the LEAF folder name in original_folder, e.g. '171109', not an absolute/UNC path; under = prefix); {type:'person', op:'is'|'is_not', cluster_id:int} — an unknown cluster_id is rejected with ERR_SMART_PERSON_NOT_FOUND; {type:'tag', op:'has'|'not_has', name:str, source:'any'|'auto'|'manual'} — matching ignores case; call facenest_list_tags first to get real names (auto tags are often Chinese in name, e.g. 狗 / Dog); {type:'date', op:'between'|'on'|'before'|'after'|'this_year'|'this_month'|'last_days', from:'YYYY-MM-DD', to:'YYYY-MM-DD', days:1..3650, sources:['exif'|'ctime'|'mtime'|'upload'] (optional: restrict which date source counts); {type:'place', op:'is'|'is_not', country/admin1/city} — is_not only matches photos that DO have GPS (no location ≠ 'not in Girona'); {type:'photos', op:'in', ids:[…]} to keep a previous result set (e.g. semantic hits) — unknown ids are rejected with ERR_SMART_PHOTOS_UNKNOWN, never silently dropped; {type:'person_count', op:'eq'|'lte'|'gte', n:0..50} — eq/lte 0 means 'no faces at all'; {type:'favorite', op:'is'|'is_not'} — the user's favorite flag; {type:'camera'|'lens', op:'is', value:str} — camera accepts model alone ('iPhone 12 Pro'), make+model ('Apple iPhone 12 Pro') OR just the make ('Apple'), case-insensitive; lens matches by tokens, so 'OnePlus Ace 3' finds 'OnePlus Ace 3 back camera 2147483647mm f/1.8'; {type:'origin', op:'is', value:'photo'|'video_frame'}; {type:'caption', op:'has'|'not_has', text:str, lang:'en'|'zh' (optional)}. Date rules use taken_at (EXIF first, else file time — the date the Dates page shows); add sources:['exif'] when the user means 'actually shot in', not 'dated'. Returns {match_mode, rules, total, images:[{image_id, display_name, thumb_url, thumb_url_abs, taken_at, date_source, shot_at, file_mtime, camera, camera_make, camera_model, lens, …}], groups, group_by, limit, offset, rule_counts, zero_rules, prefix_counts, empty_at}. rule_counts (per-rule counts) and prefix_counts (running AND/OR count) are included automatically when total is 0 — empty_at is the rule index that first drove the intersection to zero, so read them instead of bisecting; pass explain:true to always get them. 1–30 rules; limit max 200; use offset to page; sort 'taken_at'|'uploaded'|'name'; group_by 'none'|'year'|'month'|'place'. Nothing is deleted, moved or created. Every image also has app_url (facenest://photo/<id>). compact:true returns only image_id/display_name/taken_at/thumb_url_abs/app_url/source_path.

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": {
      "rules": "<rules>"
    },
    "name": "facenest_query_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNotaken_at
limitNo
rulesYes1–30 rule objects (shapes are listed in the description).
offsetNo
compactNoOnly id/display_name/taken_at/thumb_url_abs/app_url/source_path.
explainNoAlways include per-rule counts (rule_counts / zero_rules).
group_byNonone
sort_dirNodesc
match_modeNoall

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.12

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: read-only guarantee ('Nothing is deleted, moved or created'), no write permission needed, and named failure modes (ERR_SMART_PERSON_NOT_FOUND, ERR_SMART_PHOTOS_UNKNOWN) that are rejected rather than silently dropped. It also discloses that rule_counts/prefix_counts appear automatically only when total is 0 and that explain:true forces them. Minor gap: it never mentions cost, latency, or pagination behavior beyond 'use offset to page'.

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?

The critical facts (read-only, no save, use for every filtered search) are front-loaded before the rule taxonomy, and the semicolon-separated rule specs keep it scannable. It is nonetheless a very dense wall of text, and some parenthetical asides (the Chinese auto-tag example, the 'OnePlus Ace 3' lens example) could be trimmed without losing invocation-critical meaning.

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 9-parameter tool with no output schema and an opaque nested rule array, the description supplies everything needed: the full rule grammar, combination semantics via match_mode, limits/offset/grouping, the return payload field list, and self-diagnosis guidance for zero results via empty_at/prefix_counts. Nothing an agent needs to call it 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 coverage is only 33% and the `rules` parameter is an opaque untyped array, yet the description fully compensates by enumerating every rule shape with its op enum, value types, and edge cases (is_not place only matches GPS-tagged photos; person_count eq 0 means no faces; camera accepts model/make+model/make alone; lens token matching). It also documents limit max 200, sort values, group_by values, and compact output, leaving only trivial sort_dir unstated.

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+resource+scope: 'READ-ONLY rule query — the same rule engine as a smart album, but NOTHING is saved'. It explicitly distinguishes itself from the smart-album creation tools by stating no album is created and no write permission is needed.

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?

States 'Use it for every filtered search' and enumerates the filter families (date, place, camera/lens, origin, person, person count, tag, caption, pinned ids), then names the alternative path for tags ('call facenest_list_tags first to get real names'). It also notes when to add sources:['exif'] versus relying on default dates.

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