Home / Servers / Square API / calculate_loyalty_points
CalculateLoyaltyPoints
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
CalculateLoyaltyPoints Calculates the number of points a buyer can earn from a purchase. Applications might call this endpoint to display the points to the buyer. - If you are using the Orders API to manage orders… [POST /v2/loyalty/programs/{program_id}/calculate]
Name on the gateway: square_api__calculate_loyalty_points · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
program_id required | string | The ID of the loyalty program, which defines the rules for… |
order_id | string | The order ID for which to calculate the points. Specify this field if your… |
transaction_amount_money | object | The purchase amount for which to calculate the points. Specify this field if… |
loyalty_account_id | string | The ID of the target loyalty account. Optionally specify this field if your… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "square_api__calculate_loyalty_points",
"arguments": {
"program_id": "…"
}
}Or connect the Square API server directly, which lists 308 tools including this one:
claude mcp add --transport http hj-square-api https://mcp.hjlabs.in/mcp/square-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the calculateloyaltypoints tool with program_id set to ….