detect_carrier
Identify the carrier from a tracking number format, with high confidence for UPS and DHL patterns and a fallback for ambiguous numbers.
Instructions
Guess the carrier from a tracking-number format (best effort).
Confident only for UPS ('1Z…') and DHL ('JJD…/JD…'). For ambiguous numeric numbers it returns the configured fallback carrier and confident=False.
Args: tracking_number: The number to classify.
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": {
"tracking_number": "<tracking_number>"
},
"name": "detect_carrier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracking_number | Yes |