Skip to main content
Glama

Global - Face Comparison (0.03 credits)

face_recognition_compare

Compare two face images 1:1 to obtain a match score between gallery and probe, selecting FAST or ACCURATE search mode for identity verification.

Instructions

Compares two face images (1:1). Returns a match score for gallery versus probe. Inputs: gallery, probe, and search_mode (FAST or ACCURATE). Images are base64 or https URLs. Use it to compare two photos. Use the live compare tools when the probe must also pass liveness. Costs 0.03 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>"
    },
    "name": "face_recognition_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
probeYes
galleryYes
search_modeYesFace search accuracy mode. Allowed values: FAST, ACCURATE.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, but say nothing about cost or input transport. The description adds two genuinely useful behavioral facts: pricing ('Costs 0.03 credits per successful call') and acceptable image encodings ('base64 or https URLs'). It stops short of auth, rate limits, or failure behavior on non-face images.

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-loaded with purpose and return value, followed by inputs, then routing, then cost — a sensible order with short sentences. 'Use it to compare two photos' and 'Inputs: gallery, probe, and search_mode' partially restate what earlier and later sentences already establish, so a small amount of text does not 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?

With no output schema, the description must carry the return contract, and 'returns a match score' is thin — no scale, threshold, or interpretation guidance, which matters for a 1:1 comparison decision. Cost, input format, and the liveness alternative are covered, so it is adequate rather than complete.

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

Parameters4/5

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

Schema coverage is only 33% — gallery and probe have no schema descriptions at all — so the description must carry meaning, and it does by naming the three inputs and clarifying their roles (gallery vs probe). It also documents the accepted image formats and restates the FAST/ACCURATE enum, which the schema already covers. Remaining gap: no guidance on whether the two images must match in size or resolution.

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 ('Compares two face images (1:1)') plus the direction of comparison ('gallery versus probe'), and explicitly contrasts itself with the live/liveness compare variants. An agent can separate this from face_recognition_compare_live or face_recognition_verify without opening a 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?

'Use it to compare two photos' sets the positive case, and 'Use the live compare tools when the probe must also pass liveness' gives the exclusion condition that routes to the sibling variant. That is the when-to-use / when-not-to-use pattern applied to this exact family.

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