Skip to main content

Tool Reference

Mailhub MCP exposes seventeen tools. That is the entire surface: there are no MCP resources and no MCP prompts, and no tool exists beyond this list.

ToolUsePermissionChanges dataConfirmationSpends funds
mailhub_list_ordersPage through the account's OrdersView access to OrdersNoNot requiredNo
mailhub_get_orderRead one Order and its ShipmentView access to OrdersNoNot requiredNo
mailhub_create_orderCreate an Order from addresses and one parcelUpdate access to OrdersYesconfirm: trueNo
mailhub_get_shipment_ratesGet carrier Rates for a ShipmentUpdate access to OrdersNoNot requiredNo
mailhub_buy_labelBuy a Label for a selected RateUpdate access to OrdersYesconfirm: trueYes
mailhub_download_labelGet the Mailhub link for a purchased LabelView access to OrdersNoNot requiredNo
mailhub_cancel_labelCancel a purchased LabelUpdate access to OrdersYesconfirm: trueNo
mailhub_update_order_statusMove one Order to another statusUpdate access to OrdersYesconfirm: trueNo
mailhub_update_draft_orderSave details onto a Draft Order and keep it a DraftUpdate access to OrdersYesconfirm: trueNo
mailhub_complete_draft_orderFinish a Draft Order and move it to CreatedUpdate access to OrdersYesconfirm: trueNo
mailhub_find_merge_candidatesFind Orders that can share one ShipmentView access to OrdersNoNot requiredNo
mailhub_merge_ordersMerge 2 to 25 Orders into one ShipmentUpdate access to OrdersYesconfirm: trueNo
mailhub_add_order_to_shipmentAdd an Order to a merged ShipmentUpdate access to OrdersYesconfirm: trueNo
mailhub_update_merged_shipmentChange a merged Shipment's address or parcelUpdate access to OrdersYesconfirm: trueNo
mailhub_unmerge_shipmentTake a merged Shipment apartUpdate access to OrdersYesconfirm: trueNo
mailhub_list_warehousesList the warehouses the user may assign Orders toView access to OrdersNoNot requiredNo
mailhub_assign_warehouseSet, change, or remove the warehouse of one or more OrdersUpdate access to OrdersYesconfirm: trueNo

mailhub_get_shipment_rates is the exception worth remembering: it reads, but it needs update access, so a view-only user is refused. Confirmations & Spend Safety owns the confirmation and spend rules behind the last three columns.

How the objects fit together​

Order → Shipment → Rate → Label. Each step hands the next one an identifier:

IdentifierWhere you get itWhat it is for
orderIdmailhub_list_orders, or creating an OrderReading an Order, changing its status
shipmentIdOn the Order you listed, read, or createdRating, and buying against a Rate
rateIdmailhub_get_shipment_ratesBuying a Label
labelIdOn the Order once a Label existsCancelling a Label
warehouseIdmailhub_list_warehousesAssigning a warehouse to Orders

The normal path​

  1. mailhub_create_order — or start from an Order that already exists, found with mailhub_list_orders.
  2. mailhub_get_shipment_rates — get the Rates for the Order's Shipment and choose one.
  3. mailhub_buy_label — buy the Label for that Rate.
  4. mailhub_download_label — hand the user the Mailhub link to print it.

Rating and buying work from the Order as it stands. You do not need to move the Order to Packed, or to any other status, before asking for Rates or buying a Label.

Corrections​

mailhub_update_order_status and mailhub_cancel_label fix a path that has gone wrong rather than advancing it — see Working with Labels for cancelling a Label safely.

Drafts​

A Draft is an Order still missing details — often one imported from a connected store. Save what the user gives with mailhub_update_draft_order, and finish it with mailhub_complete_draft_order once nothing is missing.

Several Orders in one box​

Orders to the same recipient can share one Shipment and one Label. Find them with mailhub_find_merge_candidates, merge them with mailhub_merge_orders, then rate and buy the merged Shipment as usual. Until a Label is bought, the Shipment can grow (mailhub_add_order_to_shipment), change (mailhub_update_merged_shipment), or be taken apart (mailhub_unmerge_shipment).

Warehouses​

An Order can ship from one of the account's warehouses. Look up the warehouses the user may use with mailhub_list_warehouses, then set, change, or remove the warehouse of Draft and Created Orders with mailhub_assign_warehouse. A user limited to specific warehouses cannot rate or buy for an Order that has none.

What each page promises​

Every tool page states its exact inputs with types and defaults. What it promises about the result depends on the tool:

ResultTools
Exact top-level fields you can rely onmailhub_get_shipment_rates, mailhub_create_order, mailhub_download_label
No data payload, unless orderId and shipmentId are given — then coversOrders, and coverageNote when the Label covered more than one Ordermailhub_cancel_label
Described by behavior, with no stable field setmailhub_list_orders, mailhub_get_order, mailhub_update_order_status, mailhub_buy_label, mailhub_update_draft_order, mailhub_complete_draft_order, the five merge tools, and the two warehouse tools

The last group returns Mailhub's own payload, which this documentation does not pin field by field — read those sections as a description of what comes back, not as a schema to code against. Identifiers in examples are placeholders.

Next​

Start with the first tool your task needs — usually mailhub_list_orders to find an Order, or mailhub_create_order to make one.