Get insurance rate
deftship_get_insurance_ratesGet insurance rate quotes for shipments by providing carrier, service code, and package details. Returns a price and insurance ID for later purchase.
Instructions
Quote insurance for a shipment. Creates an insurance record and returns its id (insurance_id) and price. Use deftship_book_insurance with the id to purchase. Does not spend money.
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": {
"carrier": "<carrier>",
"service_code": "<service_code>",
"shipment_date": "<shipment_date>",
"to_address": "<to_address>",
"package_list": "<package_list>"
},
"name": "deftship_get_insurance_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carrier | Yes | Carrier of the shipment to insure. | |
| is_freight | No | Freight shipment. Default false. | |
| to_address | Yes | Receiver address. | |
| from_address | No | Sender address if no id given. | |
| package_list | Yes | Packages (with tracking numbers and item values) to insure. | |
| service_code | Yes | Service code of the shipment (see service names). | |
| shipment_date | Yes | Shipment date, format Y-m-d. | |
| from_address_id | No | Saved sender address id. | |
| is_international | No | International shipment. Default false. |