Skip to main content

List Warehouses

mailhub_list_warehouses

List the warehouses the signed-in user may assign Orders to. Use it to turn the warehouse name the user gave into the identifier mailhub_assign_warehouse needs — never guess one.

Permission and safety​

Changes dataNo
ConfirmationNot required
Spends fundsNo
PermissionView access to Orders is enough

Input​

This tool takes no input.

Example input​

{}

Output​

Mailhub's warehouse list, passed through: one entry per warehouse, each with the warehouse UUID and its name.

Which warehouses come back depends on the user. An administrator, or a user with access to all warehouses, gets every warehouse of the account; warehouse staff get only their own. An empty list means the user has no warehouse they can assign.

The answer is current only at the moment it is returned — warehouses are added, renamed, moved, and deleted in Mailhub meanwhile. Call this tool again right before every assignment rather than reusing an identifier from earlier in the conversation.

Next​