Katana MRP MCP by usefulapi

v1.2.1
io.usefulapi/katana-mrp Checked 1 day ago Published 11 hours ago

Read stock, orders and products; create sales and manufacturing orders in Katana MRP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

katana_list_products List products

List finished products (name, UoM, sellable/producible/purchasable flags, default supplier). Katana API: GET /products.

ParameterTypeDescription
is_produciblebooleanOnly producible (manufactured) products.
is_purchasablebooleanOnly purchasable products.
is_sellablebooleanOnly sellable products.
limitintegerRecords per page (default 50).
namestringFilter by product name.
pageintegerPage number (default 1).

katana_get_product Get a product

Get one product by id, with its recipe-relevant fields. Katana API: GET /products/{id}.

ParameterTypeDescription
id *integerKatana product id (from katana_list_products).

katana_list_materials List materials

List raw materials (name, category, UoM, batch tracking, default supplier). Katana API: GET /materials.

ParameterTypeDescription
category_namestringFilter by category name.
limitintegerRecords per page (default 50).
namestringFilter by material name.
pageintegerPage number (default 1).

katana_get_material Get a material

Get one material by id. Katana API: GET /materials/{id}.

ParameterTypeDescription
id *integerKatana material id (from katana_list_materials).

katana_list_variants List variants

List variants (the stock-keeping level: SKU, sales and purchase price, product or material link). Katana API: GET /variants.

ParameterTypeDescription
limitintegerRecords per page (default 50).
material_idintegerOnly variants of this material id.
pageintegerPage number (default 1).
product_idintegerOnly variants of this product id.
skuarrayFilter by one or more SKUs.

katana_get_variant Get a variant

Get one variant by id, with SKU, prices and classification. Katana API: GET /variants/{id}.

ParameterTypeDescription
id *integerKatana variant id (from katana_list_variants).

katana_list_sales_orders List sales orders

List sales orders, most recent first. Filter by order number, customer, location, status or creation window. Katana API: GET /sales_orders.

ParameterTypeDescription
created_at_maxstringCreated on or before this ISO 8601 date-time.
created_at_minstringCreated on or after this ISO 8601 date-time.
customer_idintegerOnly orders of this customer id.
limitintegerRecords per page (default 50).
location_idintegerOnly orders at this location id.
order_nostringFilter by sales order number.
pageintegerPage number (default 1).
production_statusstringProduction status filter (e.g. NOT_STARTED, IN_PROGRESS, DONE).
statusstringOrder status as Katana names it (e.g. NOT_SHIPPED, PACKED, DELIVERED).

katana_get_sales_order Get a sales order

Get one sales order by id, with its rows and addresses. Katana API: GET /sales_orders/{id}.

ParameterTypeDescription
id *integerKatana sales order id (from katana_list_sales_orders).

katana_list_manufacturing_orders List manufacturing orders

List manufacturing orders (production jobs), most recent first. Katana API: GET /manufacturing_orders.

ParameterTypeDescription
is_linked_to_sales_orderbooleanOnly orders linked (true) or not linked (false) to a sales order.
limitintegerRecords per page (default 50).
location_idintegerOnly orders at this location id.
order_nostringFilter by manufacturing order number.
pageintegerPage number (default 1).
statusstringOrder status filter (e.g. NOT_STARTED, IN_PROGRESS, DONE).

katana_get_manufacturing_order Get a manufacturing order

Get one manufacturing order by id, with recipe and operation rows. Katana API: GET /manufacturing_orders/{id}.

ParameterTypeDescription
id *integerKatana manufacturing order id (from katana_list_manufacturing_orders).

katana_list_purchase_orders List purchase orders

List purchase orders to suppliers, filterable by status, supplier, location or billing status. Katana API: GET /purchase_orders.

ParameterTypeDescription
billing_statusstringBilling status filter.
limitintegerRecords per page (default 50).
location_idintegerOnly orders for this location id.
order_nostringFilter by purchase order number.
pageintegerPage number (default 1).
statusstringPurchase order status filter.
supplier_idintegerOnly orders with this supplier id.

katana_get_purchase_order Get a purchase order

Get one purchase order by id, with its rows. Katana API: GET /purchase_orders/{id}.

ParameterTypeDescription
id *integerKatana purchase order id (from katana_list_purchase_orders).

katana_list_customers List customers

List customers (name, company, email, phone, currency). Katana API: GET /customers.

ParameterTypeDescription
companystringFilter by company name.
emailstringFilter by email address.
limitintegerRecords per page (default 50).
namestringFilter by customer name.
pageintegerPage number (default 1).

katana_list_suppliers List suppliers

List suppliers (name, email, phone, addresses). Katana API: GET /suppliers.

ParameterTypeDescription
emailstringFilter by email address.
limitintegerRecords per page (default 50).
namestringFilter by supplier name.
pageintegerPage number (default 1).

katana_list_inventory List stock levels

List current stock levels per variant and location (in stock, committed, expected). Katana API: GET /inventory.

ParameterTypeDescription
limitintegerRecords per page (default 50).
location_idintegerOnly this location id.
pageintegerPage number (default 1).
variant_idarrayOnly these variant ids.

katana_list_inventory_movements List inventory movements

List stock movements (what changed, when, and which order caused it). Katana API: GET /inventory_movements.

ParameterTypeDescription
caused_by_order_nostringOnly movements caused by this order number.
limitintegerRecords per page (default 50).
location_idintegerOnly this location id.
pageintegerPage number (default 1).
resource_typestringResource type that caused the movement (e.g. SALES_ORDER).
variant_idsarrayOnly movements of these variant ids.

katana_list_negative_stock List variants with negative stock

List variants whose stock balance went negative, with the date of the latest negative movement. Katana API: GET /negative_stock.

ParameterTypeDescription
limitintegerRecords per page (default 50).
location_idintegerOnly this location id.
pageintegerPage number (default 1).
variant_idintegerOnly this variant id.

katana_list_stock_adjustments List stock adjustments

List stock adjustments (manual corrections to stock at a location). Katana API: GET /stock_adjustments.

ParameterTypeDescription
limitintegerRecords per page (default 50).
location_idintegerOnly this location id.
pageintegerPage number (default 1).
stock_adjustment_numberstringFilter by adjustment number.

katana_list_locations List locations

List locations (warehouses, factories, shops) with their flags for sales, manufacturing and purchasing. Katana API: GET /locations.

ParameterTypeDescription
limitintegerRecords per page (default 50).
namestringFilter by location name.
pageintegerPage number (default 1).

katana_get_location Get a location

Get one location by id. Katana API: GET /locations/{id}.

ParameterTypeDescription
id *integerKatana location id (from katana_list_locations).

katana_create_customer Create a customer

Create a customer record in Katana. Only `name` is required. This changes account data. Katana API: POST /customers.

ParameterTypeDescription
name *stringCustomer name (required).
commentstringInternal comment.
companystringCompany name.
currencystringCurrency code, e.g. EUR or USD.
emailstringEmail address.
first_namestringFirst name of the contact person.
last_namestringLast name of the contact person.
phonestringPhone number.

katana_create_sales_order Create a sales order

Create a sales order for an existing customer, with one or more rows (variant and quantity). The order and its rows are created together. This changes account data. Katana API: POST /sales_orders.

ParameterTypeDescription
customer_id *integerCustomer id (from katana_list_customers).
sales_order_rows *arrayOrder rows (at least one).
additional_infostringFree text shown on the order.
currencystringCurrency code, e.g. EUR.
customer_refstringCustomer's own reference (e.g. PO number).
delivery_datestringRequested delivery date (ISO 8601).
location_idintegerLocation id the order ships from.
order_nostringOrder number; Katana assigns one if omitted.

katana_create_manufacturing_order Create a manufacturing order

Create a manufacturing order (production job) for a producible variant at a location. Katana fills the recipe and operation rows from the product recipe. This changes account data. Katana API: POST /manufacturing_orders.

ParameterTypeDescription
location_id *integerLocation id where production happens.
planned_quantity *numberQuantity to produce.
variant_id *integerVariant id to produce.
additional_infostringFree text note on the order.
order_nostringOrder number; Katana assigns one if omitted.
production_deadline_datestringDeadline for production (ISO 8601).