faces-tool
Retrieve face events to identify who was seen at a location. Search registered faces by name or label, with automatic name resolution and time/location filters.
Instructions
This tool interacts with the Rhombus face recognition system to retrieve information about face sightings and registered faces.
If the user is asking about how many people were seen (head count / occupancy), use the report-tool with GET_OCCUPANCY_ENABLED_CAMERAS and GET_OCCUPANCY_COUNT_REPORT instead. This tool (faces-tool) is best for identifying who was seen (unique individuals by name), and its face count data is also automatically included in report-tool people-counting responses via the faceCountEnrichment field.
Important for person-presence questions: When asked whether specific people were seen or are present, you should ALSO call events-tool with eventType "access-control" to check badge-in records. Face recognition and access control are complementary — someone may badge in without face recognition triggering, or be seen by a camera without badging in.
If the requestType is "get-face-events":
Use this tool to answer questions about face sightings, including questions like "who was in the office" or "who was seen today". Can be used for reporting, to generate a report on who was seen by the camera system.
Automatic name resolution: You can pass partial or first-name-only names in faceNames (e.g., "Brandon", "Omar"). The tool automatically looks up the registered faces directory and resolves them to exact names and person UUIDs before searching. Check the "resolvedNames" field in the response to see what each queried name was matched to (null means no match found).
You can filter face events using parameters like 'faceNames', 'hasEmbedding', 'hasName', 'labels', 'locationUuids', 'personUuids', and a time range using 'rangeStart' and 'rangeEnd' (timestamps in milliseconds).
If you'd like to know about all face events at a location, pass in a location UUID and no device UUIDs. This will correctly return all face events at that location.
When the user asks about a specific person at a location (e.g. "Jane Doe at Main Office"), call get-registered-faces first to get the list of registered names, find the best match, then call get-face-events with that precise name. The tool expects precise names as stored in the system.
When querying faces at a location, pass only the location UUID in searchFilter; do not pass device UUIDs in searchFilter.deviceUuids, so the API returns all faces detected at that location.
If the requestType is "get-registered-faces":
This tool retrieves a list of all people (registered faces) currently known to the Rhombus system for your organization. This list includes information about each registered person, including their assigned labels.
This returns ALL people registered in the system, regardless of the provided timestampFilter.
Each person in the response includes a "labels" array showing which label groups they belong to (e.g., "Engineering", "Visitors"). Use these labels to answer questions about groups of people.
If the requestType is "get-person-labels":
This retrieves a mapping of all person UUIDs to their assigned labels across the organization.
Use this to discover what label groups exist and which registered faces belong to each group.
Useful when the user asks about a group (e.g., "was anyone from Engineering seen today?") — get the labels first, find the person UUIDs for that label, then query face events filtered by those personUuids or labels.
Output filtering (all tools):
includeFields(string[]): Dot-notation paths to keep in the response (e.g."vehicleEvents.vehicleLicensePlate"). Omit to return all fields.filterBy(array): Predicates to filter array items. Each entry:{field, op, value}where op is one of= != > >= < <= contains. All conditions are ANDed. Example:[{field:"vehicleLicensePlate", op:"=", value:"ABC123"}]WARNING: some tool responses exceed 400k characters — use these params to request only the data you need.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestType | Yes | ||
| faceEventFilter | Yes | ||
| timeZone | Yes | The timezone for formatting timestamps which should come from the location of the camera for the face event. This is necessary for the tool to produce accurate formatted timestamps. | |
| faceEventUuid | Yes | UUID of a face event to search similar faces from. Required for 'search-similar-faces'. | |
| personUuid | Yes | UUID of a person to get face events for. Required for 'get-face-events-by-person'. | |
| includeFields | Yes | Dot-notation field paths to include in the response (e.g. "vehicleEvents.vehicleLicensePlate"). Pass null to return all fields. WARNING: some responses can exceed 400k characters — use includeFields to request only the data you need. For high-volume tools this may be required to get a complete answer. | |
| filterBy | Yes | Filter array items in the response by field values. All conditions are ANDed. Example: [{field: "vehicleLicensePlate", op: "=", value: "ABC123"}, {field: "confidence", op: ">", value: 0.8}] Use alongside includeFields to get only the specific records and fields you need. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestType | Yes | ||
| getFaceEventsResponse | No | A list of all people seen over the given time period. | |
| getSavedFacesResponse | No | A list of all people (registered faces) currently known to the Rhombus system for your organization. | |
| getPersonLabelsResponse | No | A map of person UUIDs to their assigned label arrays. Use this to discover what label groups exist and which people belong to them. | |
| resolvedNames | No | When faceNames are provided in a get-face-events request, this shows how each queried name was automatically resolved to a registered face. Key is the queried name (e.g., 'Brandon'), value is the matched registered name (e.g., 'Brandon Salzberg') or null if no match was found. Use these resolved names when reporting results to the user. | |
| similarFaceEvents | No | Similar face event results | |
| faceMatchmakers | No | Face matchmaker records | |
| personFaceEvents | No | Face events for a specific person | |
| lastEvaluatedKey | No | For paginated requests, this is the returned last evaluated key that can be passed back in on the next request to get the next page of results | |
| error | No |