Skip to main content
Glama

Face Detection (0.01 credits)

face_recognition_detect_face

Checks whether an image contains a face and returns if a face was found. Accepts base64 or a public https URL, omitting matched-person details since no collection is used.

Instructions

Checks that an image contains a face. Returns whether a face was found. Input: image as base64 or an https URL. Matched-person details are omitted from responses because this tool does not accept collection_id. Use face_recognition_detect to search inside your collection. Costs 0.01 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>"
    },
    "name": "face_recognition_detect_face"
  }
}

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.

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 already declare openWorldHint, non-idempotent, and non-destructive, so the description's main added value is the cost model ('0.01 credits per successful call') and the disclosure that person-matching data is deliberately absent from responses. That is genuinely useful behavior beyond the structured fields. Minor gap: it does not say what happens with multiple faces or failed/invalid images, and readOnlyHint=false is left unexplained even though the tool appears to be a pure read.

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

Conciseness5/5

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

Four short sentences, front-loaded with the core purpose, then input, then the sibling disambiguation, then cost. No filler and nothing important buried at the end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema detection tool, the definition covers purpose, input form, return value, cost, and the nearest alternative. It falls just short of complete because it does not describe behavior on images with no face, multiple faces, or invalid input.

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% and the single parameter is fully documented there, including the base64 prefix and https URL forms. The description's 'Input: image as base64 or an https URL' restates that rather than adding format constraints or size limits, so the baseline 3 applies.

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 description opens with a specific verb and resource: 'Checks that an image contains a face' and states the return ('whether a face was found'). It also distinguishes itself from the similarly named sibling face_recognition_detect, so an agent can pick between them without opening either 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?

It gives an explicit when-to-use (verifying a face is present) and names the alternative for a different need: 'Use face_recognition_detect to search inside your collection.' It further explains why a caller might be surprised by the response (matched-person details are omitted because there is no collection_id), which is exactly the routing information an agent needs.

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