Skip to main content
Glama

frs__AddFacesByFile

Add faces from a single image to a Huawei Cloud face set, supporting either the largest face or all detected faces for identity and access workflows.

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>",
      "project_id": "<project_id>"
    },
    "name": "frs__AddFacesByFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
face_set_nameYes人脸库名称。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior1/5

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

没有提供任何注解,因此描述必须承担全部行为说明义务。它没有说明写入操作的性质、是否幂等、重复人脸如何处理、是否需要人脸库 ACL 权限,也没有说明返回什么。对写入操作没有行为披露,描述只是重复了名称。

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?

两句简洁的话,没有废话,目的在前。它很短,也许短到省略了有用的细节。

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?

对于零注解的写入工具,描述无法帮助智能体理解权限、重复数据、最大人脸与所有人脸参数(这个选择在哪里?),也没有返回结构。schema 覆盖了参数,但描述很单薄。

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 覆盖率为 100%,两个参数都已有文档说明。描述没有为 face_set_name 或 project_id 增加任何含义,也没有提到文件内容如何提供。由于 schema 已完整覆盖,基线 3 分合适。

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?

描述是清晰的动作+资源(将图片中的人脸添加到人脸库)并说明支持最大人脸或所有人脸。它与 AddFacesByBase64/AddFacesByUrl 兄弟工具的区别在于输入是文件,但描述本身没有明确说明这是文件上传,只是名字暗示了这一点——不过名称已足够区分。所以算4分。

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?

描述没有说明何时使用文件版本而不是 Base64/Url 版本,也没有说明前置条件(人脸库必须存在)、限制(每个库的人脸数量上限)或失败行为。它只隐含了“添加到库”的用法。

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