Skip to main content
Glama

frs__DetectLiveFaceByUrl

Detect whether a face in an OBS image URL comes from a live person to help block printed-photo, screen-replay, and video-replay spoofing attacks; supports single-face images only.

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__DetectLiveFaceByUrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
image_urlYes图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。
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.2/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 behavioral burden. It does disclose the detection signals used (distortion, moiré, reflection, borders) and the attack types it resists, which is genuinely useful context, but it says nothing about the result/confidence returned, thresholds, or failure modes.

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?

A compact, front-loaded paragraph: capability first, anti-spoofing rationale second, input constraint last. No filler, though the anti-spoofing enumeration is somewhat verbose relative to the operational information conveyed.

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?

With no annotations and no output schema, the description should tell an agent something about what comes back from a liveness check (a liveness verdict or confidence), which it omits. It is otherwise adequate for a two-parameter detection call whose input schema is fully documented.

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% and both parameters are fully documented in the schema, including the OBS permission requirement for image_url. The description adds no parameter-level meaning beyond that, so baseline 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?

States a specific capability: silent liveness detection that judges whether a face in an image comes from a real person, defeating printout/replay attacks. It also scopes the input (single image, not multi-face). It does not differentiate itself from near-identical siblings such as frs__DetectLiveByUrl or frs__DetectLiveFaceByBase64, so a 4 rather than a 5.

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 only usage condition given is the input constraint that only single-face images are supported. There is no guidance on when to pick this URL-based variant over the Base64/File variants or over frs__DetectLiveByUrl, and no prerequisites or exclusions are stated.

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