BoxHero MCP by usefulapi
v1.2.1Read stock and orders, create or update items, and record stock moves in BoxHero.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
boxhero_get_team Get team
The BoxHero team this API token belongs to: id, name, currency (code, symbol, price decimals), memo and mode. The API needs the team in LOCATION mode (mode 2) for items, locations, transactions and orders. GET /teams/linked.
boxhero_list_members List team members
List the active team members (id, name, role admin/member/viewer). Use the ids to filter orders by creator. GET /members.
boxhero_list_items List items
List inventory items with SKU, barcode, cost, price, custom attributes, total quantity and the per-location stock breakdown. Pass location_ids to limit the quantities (and the list) to items with stock at those locations; item_ids to fetch specific items. Cursor-paged by id; pass next_cursor to continue. Low-stock checks: compare quantity with the item's 'Minimum Stock' style attribute. GET /items.
| Parameter | Type | Description |
|---|---|---|
cursor | integer | Cursor from the previous reply's next_cursor. Omit on the first call. |
item_ids | array | Only these item ids. |
limit | integer | Page size, 1-100 (default 25; pass a larger value for bigger pages). |
location_ids | array | Scope quantities to these locations and list only items with nonzero stock there. |
boxhero_get_item Get item
One item by id, with its attributes, total quantity and stock per location. GET /items/{item_id}.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | BoxHero item id. |
boxhero_get_item_by_sku Get item by SKU
Look up one item by its SKU (case-insensitive) and return the same payload as boxhero_get_item. No item with that SKU returns { found: false } (not an error). GET /items/by-sku/{sku}.
| Parameter | Type | Description |
|---|---|---|
sku * | string | The item's SKU. |
boxhero_list_item_attributes List item attributes
List the custom attribute specs defined for items (id, attr_name, attr_type text/date/number/barcode, rank). The ids are used when creating or updating items. File-type attributes are not included. GET /item-attrs.
boxhero_create_item Create item
WRITE: create a new inventory item. Optionally seed initial stock with quantity (and location_id when the team has more than one active location; with one location it is used automatically). Without quantity the item starts at zero everywhere. The SKU must be unique in the team (a random one is generated when omitted). Initial stock is applied in a second step, so on a partial failure the item may exist without stock. POST /items.
| Parameter | Type | Description |
|---|---|---|
name * | string | Item name. |
attrs | array | Custom attribute values: [{ id, value }]. |
barcode | string | Primary barcode. |
cost | string | Decimal string with up to 3 decimal places, e.g. "12.50". |
location_id | integer | Location to seed the initial quantity at. |
photo_url | string | Public URL of a photo. |
price | string | Decimal string with up to 3 decimal places, e.g. "12.50". |
quantity | number | Initial on-hand quantity to seed (non-zero). |
sku | string | SKU, unique in the team. Omit to let BoxHero generate one. |
boxhero_update_item Update item
WRITE: change an item's name, SKU, barcode, photo, cost, price or custom attributes. Only the fields you pass change (an attribute with value null is removed; photo_url '' clears the photo). Stock levels are NOT changed here: use boxhero_record_stock_transaction. PUT /items/{item_id}.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | BoxHero item id. |
attrs | array | Attribute values to patch: [{ id, value }]. |
barcode | string | |
cost | string | Decimal string with up to 3 decimal places, e.g. "12.50". |
name | string | |
photo_url | string | New photo URL; '' clears it. |
price | string | Decimal string with up to 3 decimal places, e.g. "12.50". |
sku | string | New SKU (unique in the team); an empty value is ignored. |
boxhero_list_locations List locations
List the active storage locations (warehouses, stores...) with id, name, memo and total quantity stored. Location ids are needed for stock transactions. GET /locations.
boxhero_get_location Get location
One location by id. GET /locations/{location_id}.
| Parameter | Type | Description |
|---|---|---|
location_id * | integer | BoxHero location id. |
boxhero_create_location Create location
WRITE: create a storage location. The name must be unique in the team; the plan's location limit applies (HTTP 402 when over it). POST /locations.
| Parameter | Type | Description |
|---|---|---|
name * | string | Location name, unique in the team. |
memo | string | Free-text memo. |
boxhero_update_location Update location
WRITE: rename a location or change its memo (memo '' clears it). Only the fields you pass change. PUT /locations/{location_id}.
| Parameter | Type | Description |
|---|---|---|
location_id * | integer | BoxHero location id. |
memo | string | New memo; '' clears it. |
name | string | New name, unique in the team. |
boxhero_list_partners List partners
List business partners: suppliers (type 0, used on Stock In) and customers (type 1, used on Stock Out) with contact details. Cursor-paged by id. GET /partners.
| Parameter | Type | Description |
|---|---|---|
cursor | integer | Cursor from the previous reply's next_cursor. Omit on the first call. |
limit | integer | Page size, 1-100 (default 100). |
type | 0 = suppliers only, 1 = customers only. Omit for both. |
boxhero_get_partner Get partner
One partner (supplier or customer) by id. GET /partners/{partner_id}.
| Parameter | Type | Description |
|---|---|---|
partner_id * | integer | BoxHero partner id. |
boxhero_create_partner Create partner
WRITE: add a supplier (type 0) or customer (type 1) to BoxHero. It only stores contact details; BoxHero does not contact the partner. The plan's partner limit applies (HTTP 402). POST /partners.
| Parameter | Type | Description |
|---|---|---|
name * | string | Partner name. |
type * | 0 = supplier (Stock In), 1 = customer (Stock Out). Cannot be changed later. | |
address | string | |
email | string | |
memo | string | |
phone | string |
boxhero_update_partner Update partner
WRITE: change a partner's name or contact details. The name is required by BoxHero (pass the current one to keep it); the other fields change only when passed. A partner's type cannot be changed. PUT /partners/{partner_id}.
| Parameter | Type | Description |
|---|---|---|
name * | string | Partner name (required; pass the current name to keep it). |
partner_id * | integer | BoxHero partner id. |
address | string | |
email | string | |
memo | string | |
phone | string |
boxhero_list_transactions List stock transactions
List stock transactions (Stock In, Stock Out, Move, Adjust), newest first, as summaries: type, locations, partner, memo, time, creator, item count, total quantity and revision. Use boxhero_get_transaction for the line items and new stock levels. Filter by type. Cursor-paged; pass next_cursor to continue. GET /transactions.
| Parameter | Type | Description |
|---|---|---|
cursor | integer | Cursor from the previous reply's next_cursor. Omit on the first call. |
limit | integer | Page size, 1-100 (default 100). |
type | string | in = Stock In, out = Stock Out, move = Move Stock, adjust = Adjust Stock. |
boxhero_get_transaction Get stock transaction
One stock transaction by id with all its lines; pass revision for an earlier version of it. GET /transactions/{tx_id}.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | integer | BoxHero transaction id. |
revision | integer | A historical revision; omit for the latest. |
boxhero_record_stock_transaction Record stock transaction
WRITE: record a stock movement that CHANGES stock levels. type 'in' adds stock at to_location_id (optional supplier partner_id), 'out' removes stock at to_location_id (optional customer partner_id; stock may go negative), 'move' transfers from from_location_id to to_location_id, 'adjust' applies a signed RELATIVE correction at to_location_id (quantity 50 adds 50, -3 removes 3; it is not a target level). For in/out/move give each line a positive quantity (the tool applies the sign); for adjust it is signed and non-zero. Each line names an item by item_id or item_sku. to_location_id may be omitt…
| Parameter | Type | Description |
|---|---|---|
items * | array | |
type * | string | in = Stock In, out = Stock Out, move = Move Stock, adjust = Adjust Stock. |
from_location_id | integer | Source location (move only). |
memo | string | Free-text memo for the transaction. |
partner_id | integer | Supplier (in) or customer (out); not allowed on move or adjust. |
to_location_id | integer | The location stock arrives at / leaves from / is adjusted at. Optional only with a single location. |
tx_time | string | Effective time, ISO 8601 with timezone, not in the future; defaults to now; not allowed on adjust. |
boxhero_list_purchase_orders List purchase orders
List purchase orders (stock you ordered from suppliers), newest first: order number, status, supplier, totals, estimated date. Line items and fulfillment progress come from boxhero_get_purchase_order. Cursor-paged. GET /purchase-orders.
| Parameter | Type | Description |
|---|---|---|
created_by_id | integer | Only orders created by this member id (boxhero_list_members). |
cursor | integer | Cursor from the previous reply's next_cursor. Omit on the first call. |
estimated_after | string | estimated fulfillment >= this. |
estimated_before | string | estimated fulfillment < this. |
limit | integer | Page size, 1-100 (default 100). |
order_number | string | Exact order number. |
ordered_after | string | order time >= this (ISO 8601 with timezone). |
ordered_before | string | order time < this (ISO 8601 with timezone). |
partner_id | integer | Only orders of this partner. |
statuses | array | Only orders in these statuses. |
tags | array | Only orders carrying ALL these tags. |
boxhero_get_purchase_order Get purchase order
One purchase order by id with every line (item, price, quantity, tax, discount), additional costs, tags, custom fields and fulfillment progress. GET /purchase-orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | BoxHero purchase order id. |
boxhero_list_sales_orders List sales orders
List sales orders (stock you sold to customers), newest first: order number, status, customer, totals, estimated date. Line items, returns and fulfillment progress come from boxhero_get_sales_order. Cursor-paged. GET /sales-orders.
| Parameter | Type | Description |
|---|---|---|
created_by_id | integer | Only orders created by this member id (boxhero_list_members). |
cursor | integer | Cursor from the previous reply's next_cursor. Omit on the first call. |
estimated_after | string | estimated fulfillment >= this. |
estimated_before | string | estimated fulfillment < this. |
limit | integer | Page size, 1-100 (default 100). |
order_number | string | Exact order number. |
ordered_after | string | order time >= this (ISO 8601 with timezone). |
ordered_before | string | order time < this (ISO 8601 with timezone). |
partner_id | integer | Only orders of this partner. |
statuses | array | Only orders in these statuses. |
tags | array | Only orders carrying ALL these tags. |
boxhero_get_sales_order Get sales order
One sales order by id with every line (item, price, quantity, returned quantity), additional costs, tags, custom fields and fulfillment progress. GET /sales-orders/{order_id}.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | BoxHero sales order id. |