Skip to main content
Glama

frs__SearchFaceByUrl

Search a Huawei Cloud face set by image URL to find similar faces and return confidence scores. Specify project ID, face set name, threshold, and result count.

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": {
      "face_set_name": "<face_set_name>",
      "image_url": "<image_url>",
      "project_id": "<project_id>"
    },
    "name": "frs__SearchFaceByUrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo支持字段排序,参考[sort语法](https://support.huaweicloud.com/api-face/face_02_0013.html)。
top_nNo返回查询到的最相似的N张人脸,N默认为10。
filterNo过滤条件,参考[filter语法](https://support.huaweicloud.com/api-face/face_02_0014.html)。
image_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。
thresholdNo人脸相似度阈值,低于这个阈值则不返回,取值范围0~1,一般情况下建议取值0.93,默认为0。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
face_set_nameYes人脸库名称。
return_fieldsNo指定返回的自定义字段。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only notes that multiple matches and confidence values are returned. It omits that the operation is a read with no side effects, what happens when no face passes the threshold, and any latency/quota characteristics — details that matter for an 8-parameter search call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single front-loaded sentence with no filler, so it is not bloated. However, its brevity comes at the cost of under-specification rather than efficiency — the one sentence says nothing an agent could act on beyond the tool name.

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 an 8-parameter, required-project/OBS-URL read tool with no annotations and no output schema, the description is far too thin. It should at minimum cover the URL/OBS prerequisite, threshold behavior, and the shape of the returned match list.

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 every parameter (threshold, top_n, filter, sort, return_fields, image_url, etc.) is already documented in the schema. The description adds no meaning beyond that, which is acceptable given the schema does the work, but nothing extra is contributed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a generic textbook definition of what face search means (query a face library for similar faces and return confidence), which largely restates the name 'SearchFaceByUrl'. It never states the defining trait of this variant — that the query face is supplied as an OBS image URL — nor distinguishes it from SearchFaceByBase64/ByFile/ByFaceId.

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 at all: nothing tells the agent to prefer this over the Base64, File, or FaceId search siblings, and no preconditions (existing face set, OBS read authorization) are mentioned. Usage must be inferred entirely from the tool name and schema.

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