Put a label on a shipment
add_labelChanges data: puts one of the organization's existing labels (for example "Urgent") on one shipment, as the person who connected this app, and records it in the organization's audit log. Everyone in the organization sees the label on the shipment. Use it only when the user asks to label or tag a shipment. Pass the user's own wording as label ("urgent" finds "🔥 Urgent") or the label's id; list_labels is only needed to show the user what exists. Labels cannot be created here, so if nothing matches the answer lists the labels that exist: say so. If the answer says several labels match, ask the user which one and call again with its id. Safe to repeat: a shipment that already has the label is left as it is. Answers with the shipment's labels as they now stand.
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": {
"shipment_id": "<shipment_id>",
"label": "<label>"
},
"name": "add_label"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The label as the user says it, such as "urgent" (case, emoji and punctuation do not matter), or its id, such as "lbl_3". | |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. |