Calculate COD fee
calculate-cod-feeCalculates the Sri Lanka Post cash on delivery (COD) fee for a parcel: the Logi Post courier fee for its weight, the money order commission on the amount collected, and the flat service fee. All amounts are in LKR.
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": {
"weight_grams": "<weight_grams>",
"amount_lkr": "<amount_lkr>"
},
"name": "calculate-cod-fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_lkr | Yes | Amount the courier collects from the buyer, in LKR. | |
| weight_grams | Yes | Parcel weight in grams. |