Skip to main content
Glama

frs__DetectFaceByFile

Detects faces in an uploaded image and returns their positions, facial keypoints, and attributes for analysis.

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__DetectFaceByFile"
  }
}

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.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 real value by disclosing the return payload (positions, keypoints, attributes, which matters since there is no output schema), but it never explains the input mechanism (that the image is uploaded as a file), nor image format/size constraints, nor whether detection is purely analytical and non-persistent.

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?

One front-loaded sentence with the resource first and the returns second; no filler. The redundant '[FRS]' tag adds little, but the sentence otherwise earns its place.

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?

The partial disclosure of return contents compensates somewhat for the absent output schema, but for an upload-style detection endpoint the missing description of the file input, accepted formats, and any limits leaves a real gap in what an agent needs to call it 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?

With a single parameter at 100% schema description coverage, the schema already explains project_id and links to the retrieval doc, so the baseline applies. The description adds nothing about how the image itself is supplied, which is the parameter that actually matters for a 'ByFile' tool.

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 names a specific verb+resource (人脸检测 on an input image) and enumerates the outputs (face position, facial keypoints, facial attributes), so the intent is unambiguous. It does not, however, distinguish itself from the sibling ByBase64/ByUrl variants, even though the input-modality split is the only thing separating them.

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 guidance, no mention of when to prefer the Base64 or URL variants, and no stated prerequisites beyond the schema. The reader must infer that 'ByFile' means an upload path and that DetectLiveFace* is the liveness counterpart.

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