Katana MRP MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
is_producible | boolean | Only producible (manufactured) products. |
is_purchasable | boolean | Only purchasable products. |
is_sellable | boolean | Only sellable products. |
limit | integer | Records per page (default 50). |
name | string | Filter by product name. |
page | integer | Page number (default 1). |
katana_get_product Get a product
Get one product by id, with its recipe-relevant fields. Katana API: GET /products/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
category_name | string | Filter by category name. |
limit | integer | Records per page (default 50). |
name | string | Filter by material name. |
page | integer | Page number (default 1). |
katana_get_material Get a material
Get one material by id. Katana API: GET /materials/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page (default 50). |
material_id | integer | Only variants of this material id. |
page | integer | Page number (default 1). |
product_id | integer | Only variants of this product id. |
sku | array | Filter 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
created_at_max | string | Created on or before this ISO 8601 date-time. |
created_at_min | string | Created on or after this ISO 8601 date-time. |
customer_id | integer | Only orders of this customer id. |
limit | integer | Records per page (default 50). |
location_id | integer | Only orders at this location id. |
order_no | string | Filter by sales order number. |
page | integer | Page number (default 1). |
production_status | string | Production status filter (e.g. NOT_STARTED, IN_PROGRESS, DONE). |
status | string | Order 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
is_linked_to_sales_order | boolean | Only orders linked (true) or not linked (false) to a sales order. |
limit | integer | Records per page (default 50). |
location_id | integer | Only orders at this location id. |
order_no | string | Filter by manufacturing order number. |
page | integer | Page number (default 1). |
status | string | Order 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
billing_status | string | Billing status filter. |
limit | integer | Records per page (default 50). |
location_id | integer | Only orders for this location id. |
order_no | string | Filter by purchase order number. |
page | integer | Page number (default 1). |
status | string | Purchase order status filter. |
supplier_id | integer | Only 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana purchase order id (from katana_list_purchase_orders). |
katana_list_customers List customers
List customers (name, company, email, phone, currency). Katana API: GET /customers.
| Parameter | Type | Description |
|---|---|---|
company | string | Filter by company name. |
email | string | Filter by email address. |
limit | integer | Records per page (default 50). |
name | string | Filter by customer name. |
page | integer | Page number (default 1). |
katana_list_suppliers List suppliers
List suppliers (name, email, phone, addresses). Katana API: GET /suppliers.
| Parameter | Type | Description |
|---|---|---|
email | string | Filter by email address. |
limit | integer | Records per page (default 50). |
name | string | Filter by supplier name. |
page | integer | Page 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page (default 50). |
location_id | integer | Only this location id. |
page | integer | Page number (default 1). |
variant_id | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
caused_by_order_no | string | Only movements caused by this order number. |
limit | integer | Records per page (default 50). |
location_id | integer | Only this location id. |
page | integer | Page number (default 1). |
resource_type | string | Resource type that caused the movement (e.g. SALES_ORDER). |
variant_ids | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page (default 50). |
location_id | integer | Only this location id. |
page | integer | Page number (default 1). |
variant_id | integer | Only 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page (default 50). |
location_id | integer | Only this location id. |
page | integer | Page number (default 1). |
stock_adjustment_number | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Records per page (default 50). |
name | string | Filter by location name. |
page | integer | Page number (default 1). |
katana_get_location Get a location
Get one location by id. Katana API: GET /locations/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Katana 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Customer name (required). |
comment | string | Internal comment. |
company | string | Company name. |
currency | string | Currency code, e.g. EUR or USD. |
email | string | Email address. |
first_name | string | First name of the contact person. |
last_name | string | Last name of the contact person. |
phone | string | Phone 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.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | Customer id (from katana_list_customers). |
sales_order_rows * | array | Order rows (at least one). |
additional_info | string | Free text shown on the order. |
currency | string | Currency code, e.g. EUR. |
customer_ref | string | Customer's own reference (e.g. PO number). |
delivery_date | string | Requested delivery date (ISO 8601). |
location_id | integer | Location id the order ships from. |
order_no | string | Order 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.
| Parameter | Type | Description |
|---|---|---|
location_id * | integer | Location id where production happens. |
planned_quantity * | number | Quantity to produce. |
variant_id * | integer | Variant id to produce. |
additional_info | string | Free text note on the order. |
order_no | string | Order number; Katana assigns one if omitted. |
production_deadline_date | string | Deadline for production (ISO 8601). |