Skip to main content
Glama

frs__CompareFaceByUrl

Compare two faces from Huawei Cloud OBS image URLs to determine whether they are the same person and return a confidence score.

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": {
      "image1_url": "<image1_url>",
      "image2_url": "<image2_url>",
      "project_id": "<project_id>"
    },
    "name": "frs__CompareFaceByUrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
image1_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。与image1_file、image1_base64三选一
image2_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。与image2_file、image2_base64三选一
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/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. It does add genuine behavioral context — the return is a comparison confidence score and multi-face images are handled by selecting the largest face — but it omits the confidence scale/threshold semantics, failure behavior when no face is detected, and any auth or rate-limit constraints (the OBS permission requirement lives only in the schema).

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 tight sentences: purpose and return value first, edge-case behavior (multiple faces) second. Nothing is padded, though the leading '[FRS]' tag is pure noise.

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?

For a no-annotation, no-output-schema mutation-free comparison tool, the description covers what it does and the headline return value, but leaves the response shape (confidence range, whether a similarity score or face bounding boxes are returned) and error cases unexplained. Adequate, not complete.

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 coverage is 100% and each parameter is already fully documented, including the three-way choice among URL/file/base64. The description adds only indirect meaning via the multi-face rule, which explains how image content is interpreted rather than adding parameter-level detail, so the baseline 3 applies.

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 specific verb and resource ('人脸比对是将两个人脸进行比对') and even names the output ('返回比对置信度'), so the agent knows exactly what the tool does. It does not, however, distinguish itself from the sibling CompareFaceByBase64/CompareFaceByFile variants — the URL-only nature is carried by the tool name, not the description.

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 when-to-use or when-not-to-use guidance and no reference to the alternative input modalities (Base64/File) or to related tools like DetectFaceByUrl or SearchFaceByUrl. The agent must infer selection from the tool name alone.

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