Skip to main content
Glama

Global - Face Comparison (Live) (0.50 credits)

face_recognition_compare_live

Compare two face images while confirming the probe is a live capture; get a match score and liveness result for identity verification.

Instructions

Compares two faces and checks that the probe is live. Returns the match score and the liveness result. Inputs: gallery, probe, os (ANDROID, IOS, or DESKTOP), search_mode, and liveness_min_score. Use it when the second image must be a live capture. Use face_recognition_compare if liveness is not required. 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": {
      "search_mode": "<search_mode>",
      "gallery": "<gallery>",
      "probe": "<probe>",
      "os": "<os>",
      "liveness_min_score": "<liveness_min_score>"
    },
    "name": "face_recognition_compare_live"
  }
}

Input Schema

NameRequiredDescriptionDefault
osYesClient operating system. Allowed values: ANDROID, IOS, DESKTOP.
probeYes
galleryYes
search_modeYesFace search accuracy mode. Allowed values: FAST, ACCURATE.
liveness_min_scoreYesMinimum liveness score threshold (0.5–1.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.2/5.0
Behavior4/5

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

Adds real context beyond the annotations: the 0.50 credit cost is scoped 'per successful call', which implies failures are not billed, and the return contents (match score, liveness result) are stated. Annotations already cover readOnly/destructive/idempotent, but the description does not mention permission requirements or expected image format for the inputs.

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?

Front-loads the purpose and behavior in two short sentences, then the alternative, then the cost. The 'Inputs:' clause largely restates schema names without adding meaning, so it is the one part that does not fully earn its place.

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?

Covers purpose, alternative, return values, and pricing, which is solid for a five-required-parameter tool with no output schema. However, it leaves unclear what gallery and probe must contain (base64, URL, or ID) and what happens when liveness fails, which an agent needs before calling.

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?

The description merely enumerates the five parameter names, which the schema already supplies, and it never explains that gallery is the reference face and probe is the live capture — the two parameters with no schema description at all. With 60% schema coverage, this is the bare baseline rather than compensation for the gap.

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 pair: compares two faces and verifies the probe is a live capture, returning a match score plus a liveness result. It explicitly distinguishes itself from face_recognition_compare by naming the sibling and the condition (liveness not required) that selects the other.

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?

Gives an explicit when-to-use rule ('when the second image must be a live capture') and names the concrete alternative with its selection condition. Nothing about tool choice is left to inference.

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