Skip to main content
Glama

frs__AddFacesByUrl

Add faces from a Huawei Cloud OBS image URL to a specified face set, selecting either the largest face or all detected faces.

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_url": "<image_url>",
      "project_id": "<project_id>"
    },
    "name": "frs__AddFacesByUrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
singleNo是否将图片中的最大人脸添加至人脸库。可选值包括:
image_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
face_set_nameYes人脸库名称。
external_fieldsNo根据用户自定义数据类型,填入相应的数值。
external_image_idNo用户指定的图片外部ID,与当前图像绑定。用户没提供,系统会生成一个。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it says nothing about what happens on duplicate external_image_id, whether the target face set must already exist, permission requirements on the OBS bucket, or what the call returns. For a mutation tool that writes data into a persistent face library, these omissions are significant.

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?

Two compact sentences with the action and its scope front-loaded, and no filler wording. It is slightly under-informative rather than bloated, which is the better failure mode here.

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 six parameters, nested external_fields, no annotations, and no output schema, the definition is only marginally adequate. It covers the core write action but leaves the agent without any behavioral or return-value context needed to call it confidently in a real workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the schema entry for 'single' is truncated ('可选值包括:') and the description supplies the missing semantics: the largest face versus all faces in the image. The description still adds nothing for external_fields or external_image_id, which the schema already documents adequately.

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 gives a specific verb and resource ('添加人脸到人脸库中', adding faces into a face library) and scopes it to a single image, with the largest-face-or-all-faces option stated. It never distinguishes itself from the ByBase64/ByFile siblings that add faces from other input sources, so an agent must rely on the tool name alone for that differentiation.

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?

There is no explicit guidance on when to choose this URL-based variant over frs__AddFacesByBase64 or frs__AddFacesByFile, and no prerequisites are stated in the description. The only usable cue is the implicit '单张图片' scope and the max-face-vs-all-faces option, which an agent must translate into a usage decision itself.

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