List the organization's automations
list_automationsThe rules the organization programmed its shipments with, in the order they run: "when the shipment changes, if the produce is only avocados and the supplier is X, set the warehouse to Y" or "add the label Z". Each has a name, a trigger (updated, arrived or in_warehouse; manual for a packing_line rule, which never runs by itself, only when an admin confirms "Run now"; or a moment or an event: before_arrival, after_departure, stuck_at_port, before_free_time_ends, tracking_silent, eta_moved, check_failed, document_arrived, which only actions done once run on, their settings being in trigger_parameters: days, direction, check_type, document_type), the subject it acts on (shipment, or packing_line for a rule that acts on each pallet line of a shipment), its conditions (all must hold; the values of one condition are alternatives; only means every packing line fits, includes that some line does; on a packing_line subject a line condition is about that one line), its actions (one to five, at most one of each kind, setters before one-shots; each has a key, a kind and parameters: the key is set_warehouse, add_label, notify, create_share_link or preallocate, which sets the free boxes of a line aside for the allocatee in its parameters; ids for the warehouse or label, which get_warehouse and list_labels name; notify tells members of the organization once per shipment (once per event on a moment or event trigger), its parameters the role (admins or members), the member_count of chosen members and an optional message, never their names; create_share_link makes a customer tracking link once per shipment, with a customer_reference and an optional label), whether it is paused, and its position: for set_warehouse the first matching automation that sets it wins, by position, even when that automation is not the one doing its other actions, and a warehouse a person picked is never overruled. A shipment's warehouse.automation says which automation chose its warehouse, a pre-allocation's automation which one made it, and a share link's automation which one made that link. Use it for "why is this container going to Hamburg" or "which rules do we have". Archived ones only with include_archived. This tool only reads: automations are edited in the web app, by an admin.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_automations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_archived | No | Also list archived automations. Default false. |