BrewMan MCP by usefulapi
v1.6.1Read orders, outlets, stock and purchase orders, and create or cancel orders in BrewMan.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
brewman_get_current_user Get the current user
Return the BrewMan user that the Api-Token belongs to, with its tenant group id. Use it to confirm the connection. BrewMan API: POST /webapi/User/v1/GetCurrentUserContext.
brewman_list_outlets List outlets
List all outlets (customers: pubs, shops, accounts) in the tenant. Use the outlet ids with the order tools. BrewMan API: POST /webapi/Outlet/v1/GetAllOutlets.
brewman_get_outlet Get an outlet
Get one outlet by id, with its contact, address, price list and credit terms. BrewMan API: POST /webapi/Outlet/v1/GetOutlet.
| Parameter | Type | Description |
|---|---|---|
outlet_id * | string | The outlet id (from brewman_list_outlets). |
brewman_list_orders List orders
List full orders (header and lines) that match a filter. Dates are inclusive yyyy-mm-dd. Results can be large: set filter.maximumResults. BrewMan API: POST /webapi/Order/v2/GetOrdersByFilter.
| Parameter | Type | Description |
|---|---|---|
filter | object | Order filter. All fields are optional. |
brewman_get_order Get an order
Get one order by id, with its header and lines. BrewMan API: POST /webapi/Order/v2/GetOrder.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id (from brewman_list_orders). |
brewman_list_items List items
List items (products, materials, services) that match a filter. Use the item ids with stock and order tools. BrewMan API: POST /webapi/Item/v1/GetItemsByFilter.
| Parameter | Type | Description |
|---|---|---|
filter | object | Item filter. All fields are optional. |
brewman_get_stock_levels Get stock levels
Get the current stock level (all batches summed) per stock item and stock location. Narrow it with the id lists. BrewMan API: POST /webapi/Stock/v1/GetStockItemsQuantityCurrentlyInStock.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Rows to return, 1-100. Default 25. The reply has total, returned and next_offset (null when done). |
offset | integer | Rows to skip, from next_offset of the last reply. Default 0. |
stock_item_ids | array | Only these stock items (item ids). |
stock_location_ids | array | Only these stock locations (from the stock location list). |
brewman_get_stock_incoming_outgoing Get incoming and outgoing stock
Get the known incoming and outgoing stock totals (on purchase orders, allocated to orders, in transfers) for items and locations. BrewMan API: POST /webapi/Stock/v1/GetStockIncomingOutgoing.
| Parameter | Type | Description |
|---|---|---|
item_ids | array | Item ids to report on. |
stock_location_ids | array | Stock location ids to report on. |
brewman_list_price_lists List price lists
List all price lists with their currency and whether they use gross pricing. Use the ids when you create an order. BrewMan API: POST /webapi/PriceList/v1/GetAllPriceLists.
brewman_list_purchase_orders List purchase orders
List purchase orders that match a filter (status, supplier, dates). Dates are inclusive yyyy-mm-dd. BrewMan API: POST /webapi/PurchaseOrder/v1/GetPurchaseOrdersByFilter.
| Parameter | Type | Description |
|---|---|---|
filter | object | Purchase order filter. All fields are optional. |
brewman_create_order Create an order
Create a new order for an outlet, in Open status. Then add lines with brewman_add_order_line. Writes to the BrewMan tenant. BrewMan API: POST /webapi/Order/v1/CreateOrder.
| Parameter | Type | Description |
|---|---|---|
outlet_id * | string | The outlet the order is for. Required; it cannot be changed later. |
customer_reference | string | Customer reference shown on documents. |
delivery_date | string | Delivery date (yyyy-mm-dd). |
despatch_date | string | Despatch date (yyyy-mm-dd). |
duty_return_date_override | string | Special duty return date, only when needed. |
external_reference | string | Reference of the order in the source system. Cannot be changed later. |
order_source | string | Source system of the order. |
price_list_id | string | Price list id (from brewman_list_price_lists). |
standard_order_type | string | Duty and price type of the order. |
brewman_add_order_line Add a line to an order
Add a stock item line to an open order. Pass a new GUID as order_line_id for each line. Writes to the BrewMan tenant. BrewMan API: POST /webapi/Order/v1/AddLineToOrder.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order to add the line to (from brewman_create_order or brewman_list_orders). |
order_line_id * | string | A new GUID for the line. Generate one for each new line. |
quantity * | number | Quantity to add, in the unit of measure. |
stock_item_id * | string | The stock item (item id) to add. |
stock_location_id * | string | The stock location the line is taken from. |
unit_of_measure_id | string | Unit of measure id of the quantity. |
urn | string | Optional URN text of the line, sent as given. |
brewman_delete_order_lines Delete order lines
Delete one or more lines from an order. This cannot be undone through the API. BrewMan API: POST /webapi/Order/v1/DeleteLinesFromOrder.
| Parameter | Type | Description |
|---|---|---|
line_ids * | array | The ids of the lines to delete. |
order_header_id * | string | The order id the lines belong to. |
brewman_cancel_order Cancel an order
Cancel an order and give the reason. A cancelled order cannot be reopened through the API. BrewMan API: POST /webapi/Order/v1/CancelOrder.
| Parameter | Type | Description |
|---|---|---|
cancellation_reason * | string | Why the order is cancelled. BrewMan records it. |
order_id * | string | The order to cancel. |