Skip to main content
Glama
facenest-mcp

facenest-mcp

by eclgo

facenest_pick_best_video_frames

Selects the top N video frames of a person in one call, ranking by portrait, face size, or sharpness; prompts for a face choice when ambiguous.

Instructions

Pick the best N frames of a person in ONE call (read-only, no collection). Give ONE reference: cluster_id, face_id (library OR video face), image_id, image_path, frame_id, or frame_ids to rank an explicit set. Modes match the video page: preset='face' (portrait: frontality + sharpness), 'size' (largest face), 'quality' (sharpest whole frame). Use prefer_smiling=true only with preset='face' — wording guide: 'best smile' -> face+smile; 'best portrait' -> face; 'biggest face/close-up' -> size; 'sharpest/cleanest' -> quality; a vague 'best photos' -> face and SAY which mode you used. top comes from the user's number (1..12). Returns {status:'ok'|'needs_face_choice', reference:{face_id, face_id_source, strategy, ambiguous, candidates:[…]}, ranking:{preset, prefer_smiling, mode_label, order, weights, note}, best:[{rank, frame_id, face_id, video_id, video_name, timestamp_sec, timecode, similarity, score, smile, smile_bucket, face_px, face_ratio, bbox, det, marks, frame_path, frame_url, frame_url_abs}], alternatives:{size:[…], quality:[…]}, person_match:{max_similarity, threshold, below_threshold_count}, scored, candidates}. reference.verified is false when the face was picked geometrically (a video face has no cluster) — say so before asserting who it is. status='needs_face_choice' means the reference has 2+ real faces: show candidates to the user, then call again with select_face_id. Adjacent frames closer than min_gap_sec are never both picked. A 400 with ERR_BAD_ARGS lists the three modes when preset/prefer_smiling contradict each other.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "facenest_pick_best_video_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
personNo
presetNoface
explainNo
face_idNo
frame_idNo
image_idNo
positionNo
video_idNo
frame_idsNo
thresholdNo
cluster_idNo
face_indexNo
image_pathNo
min_face_pxNo
min_gap_secNo
prefer_smilingNo
select_face_idNo
compare_presetsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.12

TDQS

A4.5/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 so: it declares read-only/no-collection, explains the min_gap_sec de-duplication rule, discloses that reference.verified=false when a face was picked geometrically (and warns to say so before asserting identity), documents the needs_face_choice branch with 2+ faces, and even explains the 400/ERR_BAD_ARGS failure mode for contradictory preset/prefer_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?

The core action and its one-call/no-collection scope are front-loaded, and nearly every clause carries real information. It is dense and clause-heavy with long run-on sentences and backtick-laden inline structs, which slows parsing, but little is genuinely redundant.

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 a 19-parameter tool with no output schema and no annotations, the description goes unusually far: it spells out the full return shape (best[], alternatives, person_match, ranking) and the two status branches. The gaps are the several unexplained tuning parameters (explain, compare_presets, position, min_face_px), which an agent could otherwise misuse.

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 0%, so the description must compensate. It meaningfully explains top (user's number, 1..12), preset (three named modes with criteria), prefer_smiling, select_face_id, min_gap_sec, and the reference selectors, but gives nothing for explain, compare_presets, position, min_face_px, face_index, video_id, or threshold -- roughly half of the 19 parameters remain opaque beyond their names and enums.

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 ('Pick the best N frames of a person in ONE call') and immediately scopes it against siblings with 'read-only, no collection', which distinguishes it from collect_video_frames/collect_video_frame. An agent can tell what it does and what it does not do without inspecting the 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?

Names exactly one reference argument must be supplied from a list of alternatives, maps natural-language user phrasings to the three preset modes ('best smile' -> face+smile, 'biggest face' -> size, 'sharpest' -> quality), constrains prefer_smiling to preset='face', and gives an explicit recovery path when status='needs_face_choice' (show candidates, call again with select_face_id). This is as complete a when/how guide as one could ask for.

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