Skip to main content
Glama

frs__DetectFaceByBase64

Detect faces in Base64-encoded images and return their positions, facial keypoints, and requested attributes for face 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": {
      "image_base64": "<image_base64>",
      "project_id": "<project_id>"
    },
    "name": "frs__DetectFaceByBase64"
  }
}

Input Schema

NameRequiredDescriptionDefault
attributesNo是否返回人脸属性,希望获取的属性列表,多个属性间使用逗号(,)隔开。目前支持的属性有:
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
image_base64Yes图像数据,Base64编码,要求:

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 disclosure burden. It does add real value by stating what the tool returns (positions, keypoints, attributes), implying a non-destructive analysis operation, but it says nothing about permission requirements, image size/format constraints, or failure modes that matter for an image-processing call.

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?

A single compact sentence, front-loaded with the [FRS] tag and the action verb, with no filler. It could be slightly better structured by separating the purpose from the return-value list, but nothing is wasted.

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 three-parameter, non-nested tool with full schema coverage this is roughly adequate; the main gaps are the absence of annotations and an output schema, which the description only partially compensates for by sketching the response fields. An agent still lacks information on input-image constraints and on how the optional 'attributes' list affects the response.

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 description coverage is 100%, so the schema already documents all three parameters and the baseline is 3. The description's mention of face key attributes loosely maps to the 'attributes' parameter, but it adds no syntax, defaults, or allowed-value detail beyond what the schema supplies.

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 and resource (face detection and analysis on an input image) and enumerates what is produced: face bounding position, keypoint positions, and key face attributes. This is far more informative than the title, but it does not distinguish this tool from the sibling DetectFaceByFile / DetectFaceByUrl variants, and only the tool name signals the Base64 input mode.

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 prerequisites, and no mention of the sibling alternatives (DetectFaceByFile, DetectFaceByUrl, DetectFaceByBase64's comparison with DetectLiveFaceByBase64). An agent must infer from the tool name that this variant is for Base64-encoded input rather than a file path or 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