Skip to main content
Glama

frs__SearchFaceByBase64

Searches an existing face library using a Base64-encoded image and returns similar matches with confidence scores, plus optional top-N, threshold, filter, and sort controls.

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_set_name": "<face_set_name>",
      "image_base64": "<image_base64>",
      "project_id": "<project_id>"
    },
    "name": "frs__SearchFaceByBase64"
  }
}

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)。
thresholdNo人脸相似度阈值,低于这个阈值则不返回,取值范围0~1,一般情况下建议取值0.93,默认为0。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
image_base64Yes图像数据,Base64编码,要求:
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?

No annotations are supplied, so the description bears the full burden of behavioral disclosure. It does explain that the tool returns similar faces together with confidence scores, but it omits error behavior such as an empty result or a missing face library, whether the operation is read-only, and any cost considerations. For a tool with no annotation coverage, this is a significant gap.

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 definition is a single, tightly written sentence that leads with the core purpose and includes the return semantics. It contains no filler, though it is too terse for the tool's 8-parameter complexity.

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

Completeness3/5

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

With 8 parameters, 3 required, and no output schema, the definition should say more about the return shape and edge cases. It does disclose that confidence scores are returned, which helps, but it provides no guidance on threshold behavior or empty results, leaving a moderate gap.

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%, and the schema already documents all 8 parameters, including sort, filter, top_n, threshold, and return_fields. The description adds no parameter-specific meaning beyond what the schema provides, so the baseline 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 states a concrete verb and resource: searching an existing face library for one or more faces similar to a target face, returning confidence scores. This is more than a restatement of the name. However, it never distinguishes this tool from the many siblings that search faces using a face ID, file, or URL, so an agent cannot use the description alone to pick the right variant.

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 only implies that the face library must already exist; it gives no explicit guidance on when to use this tool, no prerequisite conditions, and no mention of the sibling alternatives (SearchFaceByFaceId, SearchFaceByFile, SearchFaceByUrl). The choice of which search tool to call is left entirely to the caller.

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