Skip to main content
Glama

Global - Face Search 1:N (Active User) (1 credits)

face_recognition_search_active_user

Identifies an active enrolled user by searching a face collection with a submitted image and returns the matched person; a collection ID scopes the 1:N search.

Instructions

Searches your collection for an active enrolled user. Returns the matched person. Inputs: image, os, min_score, search_mode, and collection_id. Requires collection_id to scope 1:N search to your collection. Matched-person details are omitted from responses when collection_id is not provided. Costs 1 credit 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>",
      "min_score": "<min_score>",
      "search_mode": "<search_mode>",
      "collection_id": "<collection_id>"
    },
    "name": "face_recognition_search_active_user"
  }
}

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.
min_scoreYesMinimum face match score threshold (0.2–1.0 depending on endpoint).
search_modeYesFace search accuracy mode. Allowed values: FAST, ACCURATE.
collection_idYesFace collection ID that scopes search to your enrolled persons. Required for face detect and 1:N search tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description adds real behavioral context: it bills 1 credit per successful call, it returns a matched person object, and matched-person details are suppressed in certain conditions. That cost/side-effect disclosure is genuinely useful and consistent with readOnlyHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and clear, but the "Inputs:" enumeration just repeats the fully documented schema and could be dropped. The closing sentence about omitting details without collection_id is wasted space given collection_id is mandatory, and it introduces confusion late in the description.

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?

For a five-required-parameter, no-output-schema search tool, the description covers purpose, return value, and cost reasonably well. But it leaves an important ambiguity: it implies collection_id might not be provided ("when collection_id is not provided") while the schema marks it required, so an agent cannot tell whether omission is a valid mode.

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 all five parameters (including the os and search_mode enums) are already documented, making 3 the baseline. The description's parameter sentence mostly restates the schema ("Inputs: image, os, min_score, search_mode, and collection_id") and adds little; the one novel claim—details are omitted when collection_id is absent—conflicts with the fact that collection_id is a required parameter, which muddies rather than clarifies semantics.

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

Purpose4/5

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

"Searches your collection for an active enrolled user. Returns the matched person" gives a specific verb (search) plus resource (enrolled persons in a collection) and the 1:N/active-user scope from the title, which separates it from the general face_recognition_search sibling. It does not explicitly name the alternative for non-active-user or non-collection searches, so differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

The description states the required scoping parameter and that it is needed for 1:N search, which implies the right usage context. However, it never says when to prefer face_recognition_search or the compare/liveness siblings instead, and offers no when-not guidance.

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