Skip to main content
Glama

frs__BatchDeleteFaces

Deletes multiple faces from a face set in batches using custom filter conditions, so you can remove only matching face records in one request.

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>",
      "filter": "<filter>",
      "project_id": "<project_id>"
    },
    "name": "frs__BatchDeleteFaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterYes过滤条件,参考[filter语法](https://support.huaweicloud.com/api-face/face_02_0014.html)。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
face_set_nameYes人脸库名称。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of explaining behavior, yet it says nothing about what an unrecoverable bulk delete means. It does not say whether the deletion is irreversible, what permissions are needed, whether there is a cap on how many faces can be deleted at once, or what the response returns. Since there is no output schema either, silence on the result is a real gap for a destructive operation.

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?

It is a single front-loaded sentence with no filler, and the destructive 'batch delete' action appears immediately. The only weakness is that it has little structure beyond that; it could have used a second short clause to add a safety note.

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?

This is a destructive, filter-driven bulk delete with no annotations and no output schema, which leaves the description as the sole carrier of behavioral context. It does not disclose impact, irreversibility, limits, or result, so it is not complete enough for an agent to call this tool safely.

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 coverage is 100%, so the schema itself documents all three parameters, including a link to the filter grammar and details for project_id and face_set_name. The description adds nothing to the filter parameter beyond restating that it is a custom condition. The baseline of 3 is appropriate because the heavy lifting is left to 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?

The description gives a specific verb and a specific resource: it batch-deletes multiple faces in a face set that match user-supplied filter conditions. That sets it apart from the single-record siblings DeleteFaceByFaceId and DeleteFaceByExternalImageId, but the description never names those alternatives. The scope (filter-selected, multi-face) is clear even without the comparison.

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?

The description implies that you use this tool when you want to delete by condition rather than by ID, but it never states when to use it and when not to. It gives no guidance on when to prefer DeleteFaceByFaceId, no prerequisites (does face_set_name have to exist?), and no caution about the consequences of a wildcard filter that matches everything.

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