Skip to main content
Glama

frs__DetectFaceByUrl

Detect faces from an image URL and return their positions, keypoints, and attributes via Huawei Cloud FRS.

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

Input Schema

NameRequiredDescriptionDefault
image_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。
attributesNo是否返回人脸属性,希望获取的属性列表,多个属性间使用逗号(,)隔开。目前支持的属性有:
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.4/5.0
Behavior3/5

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

With no annotations at all, the description does carry some of the load by disclosing that the call is an analysis operation returning positions, keypoints, and attributes — enough to signal it is a read-style detection, not a mutation. It says nothing about OBS authorization prerequisites, per-call cost, whether faces are persisted, or how low-quality/no-face images are reported; those gaps matter more given 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One compact sentence that front-loads what the tool does and then what it returns. No filler, no repetition of the tool name beyond the bracketed service tag.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter detection call with full schema coverage and no output schema, the definition covers purpose and return content adequately. The main missing piece is sibling differentiation among the Url/Base64/File detection variants, which the description never addresses.

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 explains image_url (OBS-only, requires read permission), project_id, and attributes. The description adds no parameter-level meaning beyond the schema, so the baseline of 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 names a specific verb+resource (人脸检测 / face detection on an input image) and enumerates what is returned: face position, landmark positions, and face attributes. That is more than a restatement of the name. It stops short of 5 because it never distinguishes this URL-based variant from the Base64/File detection siblings, so the input modality is only inferable from the tool name.

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, when-not-to-use, or alternative is mentioned. The agent is left to infer from the name alone that this variant takes an OBS URL rather than Base64 or an uploaded file, and nothing tells it whether this is a prerequisite step for CompareFace/SearchFace or an independent call.

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