Skip to main content
Glama
facenest-mcp

facenest-mcp

by eclgo

facenest_create_smart_album

Create a smart album from up to 30 rules matching people, tags, dates, places, or specific photos; set sorting, grouping, and a cover image for automatic photo collections.

Instructions

WRITE TOOL (needs 'Allow writes'). Max 30 rules — the same closed set as facenest_query_photos. {type:'person', op:'is'|'is_not', cluster_id:int} (unknown id -> ERR_SMART_PERSON_NOT_FOUND); {type:'tag', op:'has'|'not_has', name:str, source:'any'|'auto'|'manual'} — call facenest_list_tags first; matching ignores case; {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)}; {type:'place', op:'is'|'is_not', country/admin1/city} — is_not only counts photos that have GPS; {type:'photos', op:'in', ids:[…]} pins exact ids (max 2000; unknown ids -> ERR_SMART_PHOTOS_UNKNOWN); {type:'person_count', op:'eq'|'lte'|'gte', n:0..50} where 0 means no faces; {type:'favorite', op:'is'|'is_not'} for the user's favorites; {type:'camera'|'lens', op:'is', value:str} — camera accepts model, make+model or just the make, case-insensitive; lens matches by tokens (a shortened lens string works); {type:'origin', op:'is', value:'photo'|'video_frame'}; {type:'caption', op:'has'|'not_has', text:str, lang:'en'|'zh' (optional)}. Also match_mode 'all'|'any', sort 'taken_at'|'uploaded'|'name', sort_dir 'asc'|'desc', group_by 'none'|'year'|'month'|'place', cover_image_id. Returns {smart_id, name, photo_count, preview:[{image_id, display_name, thumb_url, thumb_url_abs, taken_at}] (first 8 photos), preview_count, app_url}; when photo_count is 0 it also returns rule_counts / zero_rules so you can see which rule emptied it. Album names are unique — a duplicate name is rejected with ERR_SMART_NAME_DUP.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
sortNotaken_at
rulesYesperson / tag / date / place / photos objects, max 30.
group_byNonone
sort_dirNodesc
match_modeNoall
descriptionNo
cover_image_idNoOptional cover photo id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.12

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it declares the write-permission requirement ('Allow writes'), the 30-rule cap, name uniqueness, and named error codes for unknown person/tag/photo ids and duplicate names. It also explains the zero-result diagnostic (rule_counts / zero_rules when photo_count is 0). It stops short of saying whether creation is idempotent or how partial failures are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every clause carries information, and the permission requirement plus rule cap are front-loaded, so there is little padding. But the rule grammar is delivered as one dense semicolon-chained run-on with no line breaks or grouping, making it slow to scan for an agent that only needs one rule type.

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

Completeness4/5

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

For an 8-parameter write tool with no annotations and no output schema, the description is impressively complete: input grammar, defaults, errors and the full return shape are all specified. The remaining gaps are minor — the 'description' parameter is never mentioned, and the creation side effect itself is only implied rather than stated.

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 25% and the rules array is essentially undocumented in the schema ('person / tag / date / place objects, max 30'), which the description compensates for exhaustively: every rule type, its allowed ops, value formats, bounds (days 1..3650, n 0..50, ids max 2000), case-sensitivity and shortcut behavior for camera/lens. It also adds meaning for match_mode, sort, sort_dir and group_by beyond their bare enums, such as 'is_not only counts photos that have GPS' and 'n:0 means no faces'.

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?

The rule grammar, the returned fields ({smart_id, name, photo_count, preview}) and the uniqueness constraint make clear that a new rule-based smart album is being created, and the opening 'WRITE TOOL' tag sets the operation class immediately. However, no single sentence states the verb+resource ('creates a smart album'), so the purpose has to be reconstructed from the payload description, and it never distinguishes itself from facenest_update_smart_album, which presumably takes a similar rule set.

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

Usage Guidelines3/5

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

It gives one concrete prerequisite ('call facenest_list_tags first' before using tag rules) and points at facenest_query_photos for the shared rule vocabulary, which is genuinely useful routing. It does not say when to create versus update an existing album, nor what to do if the name already exists beyond noting the error, so usage guidance is implied rather than explicit.

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