Skip to main content

Tool Reference

Overview: The Palm Platform MCP provides palm registration, 1:1 comparison, 1:N retrieval, and deletion capabilities.

RegisterRgbPalm — Register RGB Palm

Function: Bind an uploaded RGB palm image to a specified user and generate a corresponding palm ID. When the user already has a registered palm, use IsForce to decide whether to force overwrite.

Parameters:

FieldTypeRequiredDescription
RgbImageobjectRGB palm image object
RgbImage.Datastring[Image Path field] The object Path corresponding to the image
RgbImage.ImageTypeintegerImage type, fixed value 1 (RGB).
UserIdstringUser ID, the palm will be associated with this user
IsForcebooleanWhether to force overwrite when the user already has a palm, default false

When using a User Token, the data scope is limited to your own palm. When registering a palm, you need to use the userID registered on the official website.

Response:

FieldTypeDescription
PalmIdstringPalm ID

CompareRgbPalm — RGB Palm 1:1 Comparison

Function: Compare an RGB palm image with the registered palm of a specified user in a one-to-one comparison, returning whether it matches, the match score, algorithm version, and palm direction.

Parameters:

FieldTypeRequiredDescription
RgbImageobjectRGB palm image object to compare
RgbImage.Datastring[Image Path field] The object Path corresponding to the image
RgbImage.ImageTypeintegerImage type, fixed value 1 (RGB).
CompareUserIdstringTarget user ID, i.e., the user to compare against

Response:

FieldTypeDescription
IsMatchbooleanWhether it matches
ScoreintegerMatch score, range 0-100
AlgorithmVersionstringAlgorithm version
PalmDirectionintegerPalm direction. 1=LEFT_PALM, 2=RIGHT_PALM

SearchRgbPalm — RGB Palm 1:N Retrieval

Function: Search for the most similar user in the palm database based on the input image, returning the matched user ID, match score, algorithm version, and palm direction. Commonly used in identity verification scenarios.

Parameters:

FieldTypeRequiredDescription
RgbImageobjectRGB palm image object to search
RgbImage.Datastring[Image Path field] The object Path corresponding to the image
RgbImage.ImageTypeintegerImage type, fixed value 1 (RGB).

Response:

FieldTypeDescription
UserIdstringMatched user ID
ScoreintegerMatch score, range 0-100
AlgorithmVersionstringAlgorithm version
PalmDirectionintegerPalm direction. 1=LEFT_PALM, 2=RIGHT_PALM

DeletePalm — Delete Palm

Function: Delete the palm data of a specified user. Fine-grained deletion by palm direction is supported. When PalmDirectionList is an empty array, it means deleting all palms of the user regardless of direction.

Parameters:

FieldTypeRequiredDescription
UserIdstringUser ID, the user whose palm data is to be deleted
PalmDirectionListarray<integer>List of palm directions to delete. Element enum: 1=LEFT_PALM, 2=RIGHT_PALM; pass empty array [] to delete all directions

Response: No business fields (success indicates deletion is complete).