Skip to main content
Glama
facenest-mcp

facenest-mcp

by eclgo

facenest_pick_best_photos

Ranks and returns the top N photos from a single album, folder, person, tag, or date by measured smile or image sharpness; read-only and writes nothing to the library.

Instructions

Pick the Top-N photos from ONE scope (read-only; nothing is written to the library). mode:'smile' (default) ranks faces by measured smile; mode:'sharpness' ranks whole-image sharpness and needs NO face — use it for landscape / food / architecture / PPT material. Smile mode: optional scope.person (cluster_id, exact person_name, or object {cluster_id|person_name|name}) intersects ANY scope with that person and measures only their face, e.g. an album ∩ one person. cluster_id wins if both are given (person_note says so); unknown keys inside person return 400. scope.kind: album / folder / person / favorites / tag / date / smart_album / image_ids; for semantic results, call facenest_semantic_search first and pass its ids as image_ids (the picker does not run the semantic model). Sharpness mode is measured exactly like the album UI's 'Sort by sharpness' (Laplacian variance, longest edge 800 px); it rejects scope.person and accepts aspect ('any'|'16:9'|'4:3'|'3:2'|'1:1'|'9:16'|'4:5', ±8% of width/height) to filter PPT-friendly framing before scoring. Sharpness is only a RELATIVE ranking within this batch and does NOT detect a photo that is rotated 90° in its pixels; photos without EXIF Orientation cannot be auto-uprighted. Before delivery, inspect the returned thumb_url_abs visually (or tell the user to). There is NO aesthetic mode — beauty is subjective and has no reliable local score. quality is accepted as an ALIAS for sharpness (it is the video picker's word); on photos it is exactly the same Laplacian metric, NOT a third algorithm. top 1..20; wait_sec 0..60 bounds one call; sharpness is capped at 1,200 photos per scope (smile at 3,000) and the reply's truncated/note says so. Returns {status:'done'|'partial', mode, best:[{image_id, display_name, smile|sharpness, smile_bucket?, face_id?, face_px?, thumb_url, thumb_url_abs, source_path, taken_at, width, height, aspect_ratio, source}], total, total_scope, measured_cap, truncated, scored, pending, cached, computed, empty_reason, job_id, eta_sec, note}. If status is 'partial', call again with the same job_id (and a larger wait_sec) to finish; the work is cached, so a second call over the same scope is a read (see cached). smile=null means 'not measurable' (face smaller than 64 px), not 'not smiling'. refresh=true ignores the cache and recomputes (sharpness cache too).

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": {
      "scope": "<scope>"
    },
    "name": "facenest_pick_best_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
modeNosmile = face ranking (needs faces); sharpness = whole-image sharpness, no face needed; quality = the video picker's word, accepted as an ALIAS for sharpness (same algorithm, not a third mode).smile
scopeYes
aspectNosharpness mode only: keep photos whose width/height is within ±8% of this ratio (PPT / video framing).
job_idNo
refreshNo
wait_secNo
min_face_pxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.12

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does: read-only guarantee, cache behavior and refresh=true override, per-mode measurement caps (1,200 sharpness / 3,000 smile), truncated/note reporting, partial status requiring a repeat call with the same job_id and larger wait_sec, and 400 on unknown person keys. It also flags real limitations an agent would otherwise miss — sharpness is relative within the batch, rotated pixels are not detected, and smile=null means not measurable rather than not smiling.

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?

It is front-loaded — scope, modes, then caveats, then return shape — and nearly every clause adds operational information. It is dense and slightly overpacked, and the quality-alias point is restated in the schema enum description, so a small amount of duplication and a long final run-on keep it from a 5.

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 tool with 8 nested parameters and no output schema, the description still documents the full return object (status, mode, best[] fields, counters, empty_reason, job_id, eta_sec, note) and the follow-up protocol for partial results. Combined with the caps, caching, and orientation caveats, nothing an agent needs to invoke 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 description coverage is only 25%, but the description compensates: it explains mode/quality aliasing, scope.kind values and their interaction, scope.person forms (cluster_id, exact person_name, or object) with cluster_id precedence, aspect as a sharpness-only pre-filter with ±8% tolerance, top 1..20, wait_sec 0..60, job_id resumption, and the 64 px face threshold behind min_face_px. This is meaning well beyond the bare schema.

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?

"Pick the Top-N photos from ONE scope" names a specific verb (pick/rank), resource (photos), and scope restriction in the first clause. It immediately separates the two ranking modes and explicitly states it is not the semantic tool ("the picker does not run the semantic model"), so an agent can place it against facenest_semantic_search and facenest_pick_best_video_frames.

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 explicit routing rules: smile is the default for faces, sharpness for landscape/food/architecture/PPT material, and semantic queries must go through facenest_semantic_search first with ids passed as image_ids. It also closes off a plausible wrong assumption ("There is NO aesthetic mode") and explains that quality is not a third mode.

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