Calculate postage
calculate-postageCalculates Sri Lanka Post postage for a weight, in LKR. Without a destination it prices every local service (ordinary letter, open article, parcel, speed post, logi post). With a destination country it prices every international airmail and sea mail service, with optional extras such as registration, and lists current notices for that country. Services that cannot carry the weight are left out. For cash on delivery fees use calculate-cod-fee instead.
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>"
},
"name": "calculate-postage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight_grams | Yes | Weight of the item in grams, e.g. 750 for 750 g. | |
| destination_country | No | Destination country as an English name ("Japan") or two-letter ISO code ("JP"). Leave out to price local postage within Sri Lanka. |