Skip to main content
Glama

Global - Liveness Detection (0.50 credits)

face_recognition_liveness

Verify that a selfie comes from a live person, not a screen or print, before face comparison or search. Submit an image and client OS to receive a liveness decision.

Instructions

Face liveness check. Returns whether the selfie is a live person rather than a photo of a screen or a print. Inputs: image and os (ANDROID, IOS, or DESKTOP). Use it before a compare or a search. Use face_recognition_liveness_score when you need the numeric score. Costs 0.50 credits per successful call.

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": "<image>",
      "os": "<os>"
    },
    "name": "face_recognition_liveness"
  }
}

Input Schema

NameRequiredDescriptionDefault
osYesClient operating system. Allowed values: ANDROID, IOS, DESKTOP.
imageYesFace or document photo as a base64-encoded JPEG/PNG string (with or without a data:image/...;base64, prefix) or a public https:// image URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is partly covered. The description adds real value beyond them: the credit cost and the 'per successful call' billing nuance, plus the boolean return semantics. It stops short of covering failure behavior (e.g., whether a spoof verdict errors or returns false) or auth requirements, so a 4 rather than 5.

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?

Four short sentences, each carrying distinct information: what it does, what it returns, what the inputs are, when to use it, and what it costs. The purpose is front-loaded and nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter binary-classifier tool with no output schema, the description covers outcome semantics, input shape, ordering relative to related tools, the numeric-score alternative, and pricing. An agent has everything needed to call it correctly and place it in a pipeline.

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 enum values and the base64/URL image format are already fully documented in the schema. The description restates both inputs and the os enum without adding format or constraint detail. Baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose5/5

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

States a specific verb and resource — 'Face liveness check' — and immediately explains the semantic outcome: determining whether a selfie is a live person rather than a screen/print spoof. It also distinguishes itself from the sibling face_recognition_liveness_score, so an agent can choose between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly prescribes sequencing ('Use it before a compare or a search') and names the alternative with the condition that selects it ('Use face_recognition_liveness_score when you need the numeric score'). This is exactly the when/when-else guidance an agent needs to route correctly.

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