Skip to main content
Glama

frs__DetectLiveByBase64

Detects whether a person in a Base64-encoded video is live by matching their actions to a supplied action list, using the largest face when multiple appear.

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": {
      "actions": "<actions>",
      "project_id": "<project_id>",
      "video_base64": "<video_base64>"
    },
    "name": "frs__DetectLiveByBase64"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有:
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
action_timeNo该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。
video_base64Yes视频数据,Base64编码,要求:
nod_thresholdNo该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does add genuine behavioral context beyond the name: liveness is judged by action consistency, and when multiple faces are detected the largest is chosen for judgement — valuable for interpreting results on multi-person video. However, it says nothing about authentication/permission requirements, whether the call is synchronous and slow, throttling, or what the response contains.

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?

Two sentences, zero filler, and the core purpose is front-loaded before the edge-case rule about multiple faces. Nothing is repeated from the schema or the tool name.

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 5-parameter, 3-required tool with a fully documented schema the description is adequate on mechanics, but there is no output schema, so the description should have said what the tool returns (liveness verdict, confidence, detected action sequence). Combined with the missing usage guidance among eight closely related liveness/detection siblings, it leaves real gaps.

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 baseline is 3. The description's mention of '传入动作列表' implicitly ties the video content to the `actions` parameter, but it adds no format, ordering, or length guidance beyond what the schema already documents for `actions`, `action_time`, and `nod_threshold`.

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 in Chinese: 动作活体检测 (action-based liveness detection), and explains the mechanism (matching the person's motions against a supplied action list). It also discloses the multi-face tie-break rule (largest face wins), which distinguishes it behaviorally from the silent-liveness sibling frs__DetectLiveFaceByBase64. It does not explicitly name or contrast the ByFile/ByUrl variants, so sibling differentiation is only partial.

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 statement of when to use this tool versus alternatives such as DetectLiveFaceByBase64 (silent liveness) or DetectLiveByFile/DetectLiveByUrl. The agent must infer from the tool name alone that this variant accepts Base64 input and requires user cooperation with an action sequence. No prerequisites, no exclusions.

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