get_rates
Get Canada Post shipping rates for a parcel route using origin and destination postal codes plus parcel dimensions and weight. Returns live rates with Developer Program credentials, or links the public Find a Rate calculator.
Instructions
Get Canada Post shipping rates for a parcel route. Needs official Developer Program credentials in env for live rates; without them it reports honestly and links the public Find a Rate calculator. Never invents a rate.
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": {
"origin_postal_code": "<origin_postal_code>",
"destination_postal_code": "<destination_postal_code>",
"weight_kg": "<weight_kg>",
"length_cm": "<length_cm>",
"width_cm": "<width_cm>",
"height_cm": "<height_cm>"
},
"name": "get_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_cm | Yes | Parcel width in centimetres. | |
| height_cm | Yes | Parcel height in centimetres. | |
| length_cm | Yes | Parcel length in centimetres. | |
| weight_kg | Yes | Parcel weight in kilograms. | |
| origin_postal_code | Yes | Origin Canadian postal code, e.g. M5G 1N6. | |
| destination_postal_code | Yes | Destination Canadian postal code, e.g. V6B 1A1. |