Skip to main content
Glama

Global - Face Comparison With Liveness (0.50 credits)

face_recognition_compare_with_liveness

Compare a gallery image with a probe and run liveness detection on the probe to verify a 1:1 identity match using returned match and liveness scores.

Instructions

Compares a gallery image to a probe and runs liveness on the probe. Returns match and liveness scores. Inputs: gallery and probe. Optional liveness_min_score and compare_min_score. Use it for a 1:1 check with liveness. Use face_recognition_compare_live when you also send os and search_mode. 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": {
      "gallery": "<gallery>",
      "probe": "<probe>"
    },
    "name": "face_recognition_compare_with_liveness"
  }
}

Input Schema

NameRequiredDescriptionDefault
probeYes
galleryYes
compare_min_scoreNo
liveness_min_scoreNoMinimum liveness score threshold (0.5–1.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the agent knows this is a non-idempotent remote call. The description adds the useful billing nuance that 0.50 credits are charged per successful call (not per attempt), though it never mentions image format expectations, auth, or what happens to the probe if liveness fails.

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 the action and result before inputs and alternatives. The 'Inputs: gallery and probe' clause largely duplicates the required-fields list in the schema, which is the only wasted line.

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 output schema, the description does supply a minimal return summary ('match and liveness scores'), and the credits line covers cost. However, for a paid, non-idempotent biometric call it leaves out image input format and failure behavior, which are the details an agent most needs before invoking it.

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

Parameters2/5

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

Schema description coverage is only 25%, with just liveness_min_score documented (0.5–1.0), yet the description only restates the parameter names ('Inputs: gallery and probe. Optional liveness_min_score and compare_min_score'). It adds no meaning for the critical unknowns: what form gallery and probe take (URL, base64, person id) and what range compare_min_score accepts.

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?

The first two sentences give a specific verb and resource: it compares a gallery image against a probe, runs liveness on the probe, and returns match plus liveness scores. The closing line ('1:1 check with liveness') separates it from the plain comparison and liveness-only siblings without the agent needing to open another 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?

It states the use case ('1:1 check with liveness') and names an explicit alternative with the condition that selects it: use face_recognition_compare_live when also sending os and search_mode. It does not say when to prefer the plain face_recognition_compare or face_recognition_liveness instead, so the routing is clear but not exhaustive.

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