calculate_shipping
Calculate shipping rates using origin and destination details, weight, order amount, and item count. Optionally filter by services and packaging.
Instructions
Calculate shipping rates. POST /shipping/calculate. Required: companyCurrencyId, fromZip, fromCountry, zip, country, weight, orderAmount, itemCount. Optional: residential, street1, street2, city, state, services, packagingType.
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": {
"companyCurrencyId": "<companyCurrencyId>",
"fromZip": "<fromZip>",
"fromCountry": "<fromCountry>",
"zip": "<zip>",
"country": "<country>",
"weight": "<weight>",
"orderAmount": "<orderAmount>",
"itemCount": "<itemCount>"
},
"name": "calculate_shipping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyCurrencyId | Yes | Company currency ID (required) | |
| fromZip | Yes | Origin zip (required) | |
| fromCountry | Yes | Origin country code (required) | |
| zip | Yes | Destination zip (required) | |
| country | Yes | Destination country code (required) | |
| weight | Yes | Weight (required) | |
| orderAmount | Yes | Order amount (required) | |
| itemCount | Yes | Item/order quantity (required) | |
| residential | No | Residential address indicator | |
| street1 | No | Street line 1 | |
| street2 | No | Street line 2 | |
| city | No | City | |
| state | No | State | |
| services | No | Service IDs to filter | |
| packagingType | No | Packaging type |