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

NameTypeDescription
program_id requiredstringThe ID of the loyalty program, which defines the rules for…
order_idstringThe order ID for which to calculate the points. Specify this field if your…
transaction_amount_moneyobjectThe purchase amount for which to calculate the points. Specify this field if…
loyalty_account_idstringThe 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:

call_tool arguments
{
  "name": "square_api__calculate_loyalty_points",
  "arguments": {
    "program_id": "…"
  }
}

Or connect the Square API server directly, which lists 308 tools including this one:

Run in your terminal
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 ….

More from Square API