Skip to main content
Glama

frs__SearchFaceByFaceId

Search an existing face library for faces similar to a given face ID and return matching results with confidence scores. Use it to identify or verify people against stored face sets.

Instructions

[FRS] 人脸搜索是指在已有的人脸库中,查询与目标人脸相似的一张或者多张人脸,并返回相应的置信度。

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": {
      "face_id": "<face_id>",
      "face_set_name": "<face_set_name>",
      "project_id": "<project_id>"
    },
    "name": "frs__SearchFaceByFaceId"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo支持字段排序,参考[sort语法](https://support.huaweicloud.com/api-face/face_02_0013.html)。
top_nNo返回查询到的最相似的N张人脸,N默认为10。
filterNo过滤条件,参考[filter语法](https://support.huaweicloud.com/api-face/face_02_0014.html)。
face_idYes导入人脸时,系统返回的人脸编号,即人脸ID。
thresholdNo人脸相似度阈值,低于这个阈值则不返回,取值范围0~1,一般情况下建议取值0.93,默认为0。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
face_set_nameYes人脸库名称。
return_fieldsNo指定返回的自定义字段。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It says the tool searches an existing face library and returns confidence scores, but it does not disclose permissions, side effects, pagination, no-match behavior, or the role of the threshold and top_n parameters.

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 description is a single front-loaded sentence with no filler. It is concise and easy to scan, though it spends words on a generic definition rather than on the specific FaceId search behavior.

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

Completeness2/5

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

For an eight-parameter search tool with no annotations and no output schema, the definition is too thin. It should clarify the FaceId-specific input requirement, the return structure beyond 'confidence', and any search constraints, especially because structured fields do not cover annotations or output shape.

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 description coverage is 100%, so the input schema already explains all eight parameters, including threshold, top_n, filter, sort, and face_id. The description adds no parameter-level meaning beyond that, so the baseline score of 3 is appropriate.

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 description clearly states that the tool searches an existing face library for faces similar to a target face and returns confidence scores. It is understandable what the tool does, but it does not explicitly say it searches by face_id, nor does it distinguish this variant from the Base64, File, or Url search siblings.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use or when-not-to-use guidance. It does not explain why an agent should choose this FaceId search over SearchFaceByBase64, SearchFaceByFile, or SearchFaceByUrl.

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

Deploy Server

Other Tools