Skip to main content
Glama

Global - Face Detection (0.03 credits)

face_recognition_detect

Detects faces in an image and searches a scoped face collection, returning face locations and match results for identity verification workflows.

Instructions

Detects faces and can search your collection. Returns face locations and matches. Inputs: image, min_score, and search_mode. Requires collection_id to scope face detect/search to your collection. Matched-person details are omitted from responses when collection_id is not provided. 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": {
      "image": "<image>",
      "min_score": "<min_score>",
      "search_mode": "<search_mode>",
      "collection_id": "<collection_id>"
    },
    "name": "face_recognition_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
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).
max_resultsNoMaximum number of search results to return.
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, the description adds real operational context: billing at 0.03 credits per successful call, the shape of the response (face locations plus matches), and the conditional omission of matched-person details when collection_id is absent. It does not explain why readOnlyHint is false despite detection being a read-style operation, which leaves a small behavioral gap.

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?

It is short and front-loads the core action, but the sentence "Inputs: image, min_score, and search_mode" restates schema content and is incomplete (it skips collection_id, which the very next sentence discusses, and max_results). That redundancy and internal inconsistency cost it structure points.

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 usefully states that it returns face locations and matches, and it covers cost and scoping. Yet it leaves an unresolved tension between the schema marking collection_id as required and the description describing behavior "when collection_id is not provided," and it does not clarify whether min_score applies to detection or only search.

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 the parameter meanings are already documented and a 3 is the baseline. The description adds the scoping behavior of collection_id but only enumerates image, min_score, and search_mode as inputs, omitting collection_id itself and max_results from its own list, so it adds limited value beyond the schema.

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?

The description uses specific verbs and resources: "Detects faces and can search your collection" and "Returns face locations and matches." It is clear what the tool does, but it bundles two operations (detection and 1:N search) without saying how that differs from siblings such as face_recognition_detect_face or face_recognition_search.

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?

It gives one concrete usage rule: supply collection_id to receive matched-person details, which are otherwise omitted. However, it never states when to choose this tool over face_recognition_detect_face, face_recognition_search, or face_recognition_compare, so the agent must infer routing from sibling names alone.

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