Skip to main content
Glama

frs__DetectLiveByUrl

Detect whether a person in a video is live by comparing their actions to a specified sequence using a Huawei Cloud OBS video URL.

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_url": "<video_url>"
    },
    "name": "frs__DetectLiveByUrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYes动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有:
video_urlYes视频的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。
project_idYes项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。
action_timeNo该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。
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?

No annotations are supplied, so the description carries the full burden; it does disclose that only OBS URLs on Huawei Cloud are accepted and that the largest face is selected when several are present, which is genuine behavioral insight. It omits whether this is a synchronous call, typical latency, failure modes, and what the score or verdict response looks like, leaving notable gaps for an unannotated tool.

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?

Two sentences, each carrying information, with the core matching logic front-loaded. The bracketed [FRS] tag is mild noise, and the multiple-face rule could have been paired with usage guidance to earn its space better.

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 five-parameter detection tool with no annotations and no output schema, the description explains the mechanism but not what comes back, timing behavior, or how to choose this over the base64/file variants. It is adequate but leaves the agent to consult the schema for the rest.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning by explaining that the action list is matched against the video and that the largest face governs the decision, which contextualizes the actions and action_time parameters. The nod_threshold and action_time semantics are largely 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 states a specific capability: action-based liveness detection by comparing video person movements against a supplied action list, plus a fallback rule that the largest face is chosen when multiple faces appear. It does not, however, differentiate itself from siblings such as frs__DetectLiveFaceByUrl or frs__DetectLiveByBase64, which an agent must infer from the 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?

There is no explicit when-to-use guidance, no statement of prerequisites such as OBS bucket read permission (only hinted inside a parameter description), and no comparison against the sibling liveness variants that differ mainly by input medium. The agent gets implied context from the name suffix ByUrl but nothing else.

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