Skip to main content
Glama

Global - Liveness Score (OpenCV) (0.50 credits)

face_recognition_liveness_score

Calculate a numeric face liveness score and pass/fail result for a selfie using the image and client OS, so later identity verification steps can assess liveness.

Instructions

Face liveness score. Returns a numeric liveness score for the selfie plus the pass or fail result. Inputs: image and os (ANDROID, IOS, or DESKTOP). Use it when a later step needs the score. Use face_recognition_liveness for a yes-or-no live check. 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_score"
  }
}

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.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=true and idempotentHint=false but say nothing about billing or output. The description fills that gap by disclosing a 0.50 credit cost per successful call (implying failures are not billed) and describing the two-part return value. It does not explain the score's range or what an out-of-range/low-quality input produces.

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?

Four short sentences, front-loaded with purpose and return value, then routing, then cost. The 'Inputs: image and os (ANDROID, IOS, or DESKTOP)' sentence is pure duplication of the schema and is the one line that does not earn its place.

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

Completeness4/5

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

With no output schema, the description correctly takes on the burden of describing returns (score + pass/fail), and it adds cost and the sibling distinction for a non-idempotent, open-world call. Remaining gaps are minor: no mention of score scale or behavior on rejected/unusable images.

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 both parameters are already fully documented in the schema, including the enum and the base64/URL image formats. The description only restates the input names and enum values, adding nothing beyond the structured fields; baseline 3 applies.

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 score') and immediately defines the output shape: a numeric liveness score plus pass/fail. It also names the sibling it is not ('face_recognition_liveness for a yes-or-no live check'), so an agent can separate 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 Guidelines4/5

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

Gives an explicit selection rule — use this when a later step needs the actual score, use face_recognition_liveness for a binary check. That covers when-to-use and names the alternative, but no exclusions or prerequisites (e.g. image quality, selfie-only constraints) 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