Skip to main content
Glama
facenest-mcp

facenest-mcp

by eclgo

facenest_find_similar_faces

Find photos with faces matching a reference image, library photo, face ID, or named person. Returns similar faces with similarity scores, thumbnails, and paging options.

Instructions

Find photos with a face similar to a reference. Three reference kinds (any ONE): image_id (a library photo; add face_id or face_index to pick one face), face_id (a face id from image_context.faces / a previous result — library OR video face), image_path (absolute path to an image on this machine; read locally, NOT uploaded, NOT added to the library; jpg/png/webp/bmp/heic/heif/avif, <=20 MB). Returns {query, reference:{face_id, face_id_source, strategy, ambiguous, candidates:[{face_id, index, bbox, area_ratio, det_score, cluster_id, person_name, thumb_url, thumb_url_abs}]}, threshold, count, returned, offset, has_more, total_at_least, matches:[{image_id, display_name, similarity, matched_face_id, thumb_url, thumb_url_abs, source_path, taken_at}], source:'face-embedding'}. matches[].thumb_url is the matched FACE crop, not the whole photo; use image_id / display_name when showing the photo itself. count is the returned page, not the total; page with offset. ambiguous:true means the reference contains 2+ real faces and none was chosen explicitly — ask the user which one, then pass face_id/face_index (or person when the face is named in People). Default threshold 0.40; scores are affected by face size and angle, so treat 0.40+ as a higher chance rather than proof. No face in the reference -> ERR_MCP_NO_FACE.

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_find_similar_faces"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
personNoExact People name (case-sensitive); resolves to that cluster.
face_idNoOne face: inside `image_id`, or any face id on its own.
image_idNoFrom facenest_search (library photo).
thresholdNo
face_indexNo0-based, left to right (use when nobody is named yet).
image_pathNoAbsolute path to a reference image outside the library.

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 states that `image_path` is read locally and is NOT uploaded or added to the library, lists accepted formats and the 20 MB cap, warns that `count` is the page size not the total, clarifies that `thumb_url` is a face crop rather than the photo, and names the ERR_MCP_NO_FACE failure mode.

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?

Front-loaded with purpose, then reference kinds, return shape, and caveats in a logical order with zero filler sentences. It is a dense single paragraph, however, mixing return-shape documentation with operational warnings, which makes it harder to scan than it could be.

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?

No output schema and no annotations exist, so the description must supply both behavioral and return-value context — and it does, spelling out the full response shape (reference, candidates, matches, has_more, total_at_least) and the pagination contract. Nothing an agent needs to call or interpret this tool correctly appears 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 63%, and the description more than compensates: it explains that `face_id` may come from image_context.faces, a prior result, or a video face; that `face_index` is 0-based left-to-right for the unnamed case; that `person` requires an exact case-sensitive People name; and that threshold defaults to 0.40 with similarity skewed by face size and angle.

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?

Opens with a specific verb+resource: 'Find photos with a face similar to a reference', then enumerates the three mutually exclusive reference kinds. It is unambiguous what the tool does, but it never distinguishes itself from the closely named sibling `facenest_similar_photos`, leaving the agent to infer the boundary between face-similarity and generic visual similarity.

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

Usage Guidelines4/5

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

Gives concrete selection logic among the three reference kinds ('any ONE'), tells the agent what to do when `ambiguous:true` (ask the user, then pass face_id/face_index, or `person` when named in People), and explains how to interpret the threshold. It lacks any when-not-to-use guidance or an explicit pointer to a sibling alternative, so it stops short of a 5.

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