get_tracking
Retrieve a shipment's carrier and tracking number from its Amazon package tracking page using the order ID and shipment ID.
Instructions
Get the carrier and tracking number of a Shipment from its package tracking page.
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": {
"order_id": "<order_id>",
"shipment_id": "<shipment_id>"
},
"name": "get_tracking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The Amazon site to read, e.g. `amazon.de`, since each site has its own orders. By default, the user's default site (see `check_session`). | |
| account | No | Another Amazon account to read, e.g. `spouse`, only when the user asks about that person (see `check_session`). | |
| order_id | Yes | The Amazon Order ID of the Shipment. | |
| shipment_id | Yes | The Shipment's `shipment_id`. Amazon stops showing the tracking link it comes from on older Orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| carrier | No | The carrier the page names, e.g. `UPS`, or `None` when it names none (the "Delivery Info" layout). | |
| tracking_number | No | The carrier's tracking number, e.g. `1Z999AA10123456784` or `TBA000000000000`. Always a `str`, since many (e.g. USPS) are all digits and may have leading zeros. |