Skip to main content
Glama

frs__CompareFaceByFile

Compare two faces in uploaded image files to determine whether they are the same person and return a confidence score. If multiple faces appear, the largest face is used.

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

Input Schema

NameRequiredDescriptionDefault
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.1/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It does add real behavioral content: the operation is a comparison that returns a confidence score, and when multiple faces exist the largest one is used. It omits how the images are supplied (upload mechanics), accepted formats and size limits, and what happens when no face is detected — significant gaps for a compute tool with zero annotation coverage.

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 tightly written sentences with no filler; the purpose and return value come first, the multi-face edge case second. The leading "[FRS]" tag is minor overhead but the rest earns its space.

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 a face-comparison tool, the definition says nothing about how the two face images are provided, what formats or sizes are accepted, or what the confidence value means on return (no output schema exists to fill that gap). Given the schema exposes only project_id, the description leaves the agent without enough to actually invoke the tool correctly.

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?

The single schema parameter (project_id) reaches 100% description coverage, so the schema baseline of 3 applies. The description adds meaning about the image input — multiple faces resolve to the largest one — but never names or describes the image payload itself, so it does not compensate for the fact that the actual comparison inputs are absent from the schema.

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?

"人脸比对是将两个人脸进行比对,来判断是否为同一个人,返回比对置信度" gives a specific verb (compare), resource (two faces), and the output (confidence). It is clear on its own, but the description never differentiates the file variant from the Base64/Url siblings, leaving the "ByFile" distinction to be inferred from the name alone.

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?

No when-to-use guidance is given. With near-identical siblings frs__CompareFaceByBase64 and frs__CompareFaceByUrl, an agent must guess that this variant expects a file upload rather than a URL or Base64 payload. There are no prerequisites, no exclusions, and no pointers to alternatives.

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