Linnworks MCP by usefulapi

Read Linnworks inventory, stock and orders; set stock levels and add order notes.

我該用這個嗎

品質與安全性

B
說明品質
100%
結構描述完整度
82%
命名品質
76%
汙染風險
60%
權限相符程度
100%
協定合規性
100%

發現項目(6)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains suspicious base64-like encoded string在 linnworks_find_orders_by_reference 中
  • MEDIUMTool description contains suspicious base64-like encoded string在 linnworks_search_processed_orders 中
  • LOWTool 'linnworks_get_open_orders_details' name length outside 3-30 range在 linnworks_get_open_orders_details 中
  • LOWTool 'linnworks_find_orders_by_reference' name length outside 3-30 range在 linnworks_find_orders_by_reference 中
  • LOWTool 'linnworks_search_processed_orders' name length outside 3-30 range在 linnworks_search_processed_orders 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~4,118Token(工具定義)
~1.5 KB典型回應大小
顯著的注意力影響(128k 上下文的 3.22%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "linnworks": {
      "url": "https://linnworks.usefulapi.io/mcp"
    }
  }
}

遠端端點

https://linnworks.usefulapi.io/mcpstreamable-http

它能做什麼

工具清單

工具(17)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢linnworks_list_stock_locations

List the stock locations (warehouses, fulfilment centres) of the Linnworks account: id, name, address, whether it is a fulfilment centre. Use the ids as location_id in other tools. GET /api/Inventory/GetStockLocations.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_search_inventory(keyword, search_in, include, include_composite_parents, include_variation_parents, ...)

Search the product catalogue by SKU, title or barcode and return the items with their stock levels per location (and optionally pricing, suppliers, images, extended properties). An empty keyword lists items. POST /api/Stock/GetStockItemsFull.

輸入結構描述

{
  "type": "object",
  "properties": {
    "keyword": {
      "description": "Text to search for (SKU, title or barcode). Empty = list items.",
      "type": "string",
      "maxLength": 200
    },
    "search_in": {
      "description": "Fields to search (default: SKU, Title and Barcode).",
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "SKU",
          "Title",
          "Barcode"
        ]
      }
    },
    "include": {
      "description": "Extra data to load per item (default: StockLevels).",
      "maxItems": 9,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "StockLevels",
          "Pricing",
          "Supplier",
          "ShippingInformation",
          "ChannelTitle",
          "ChannelDescription",
          "ChannelPrice",
          "ExtendedProperties",
          "Images"
        ]
      }
    },
    "include_composite_parents": {
      "description": "Include composite (bundle) parent items (default true).",
      "type": "boolean"
    },
    "include_variation_parents": {
      "description": "Include variation parent items (default true).",
      "type": "boolean"
    },
    "page": {
      "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100000
    },
    "per_page": {
      "description": "Results per page, 1-100 (default 25).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_inventory_item(stock_item_id)

One product by its stock item id: SKU (ItemNumber), title, barcode, quantities (in stock, in orders, due, available), prices, tax rate, category, dimensions and weight. GET /api/Inventory/GetInventoryItemById.

輸入結構描述

{
  "type": "object",
  "properties": {
    "stock_item_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The stock item id (StockItemId) from linnworks_search_inventory."
    }
  },
  "required": [
    "stock_item_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_stock_levels(stock_item_id)

The stock level of one product at every location: in stock, in open orders, due on purchase orders, available, minimum level, unit cost and when it last changed. GET /api/Stock/GetStockLevel.

輸入結構描述

{
  "type": "object",
  "properties": {
    "stock_item_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The stock item id (StockItemId) from linnworks_search_inventory."
    }
  },
  "required": [
    "stock_item_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_stock_history(stock_item_id, location_id, page, per_page)

The stock-level change history of one product (date, new level, change quantity, value, note), newest data first as Linnworks returns it; optionally for a single location, otherwise combined. GET /api/Stock/GetItemChangesHistory.

輸入結構描述

{
  "type": "object",
  "properties": {
    "stock_item_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The stock item id (StockItemId)."
    },
    "location_id": {
      "description": "Limit to one stock location (default: all locations combined).",
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    },
    "page": {
      "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100000
    },
    "per_page": {
      "description": "Results per page, 1-100 (default 25).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "stock_item_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_list_categories

List the product categories (id and name). GET /api/Inventory/GetCategories.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_list_suppliers

List the suppliers: id, name, contact, address, email, web page and currency. GET /api/Inventory/GetSuppliers.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_list_open_orders(location_id, text_filters, received_from, received_to, page, ...)

Page through the open (not yet processed) orders of a fulfilment location, with general info (status, reference, source, received date), shipping, customer, totals and items. Narrow with text filters (reference, customer, SKU ...) and a received-date range. POST /api/Orders/GetOpenOrders.

輸入結構描述

{
  "type": "object",
  "properties": {
    "location_id": {
      "description": "Fulfilment location id from linnworks_list_stock_locations (default: the account's default location).",
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    },
    "text_filters": {
      "description": "All filters must match.",
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "GENERAL_INFO_ORDER_ID",
              "GENERAL_INFO_REFERENCE_NUMBER",
              "GENERAL_INFO_EXTERNAL_REFERENCE_NUMBER",
              "SHIPPING_INFORMATION_TRACKING_NUMBER",
              "CUSTOMER_ADDRESS_FULL_NAME",
              "CUSTOMER_ADDRESS_COMPANY",
              "CUSTOMER_ADDRESS_POSTCODE",
              "CUSTOMER_ADDRESS_TOWN",
              "CUSTOMER_EMAIL",
              "ITEMS_SKU",
              "ITEMS_TITLE"
            ],
            "description": "Order field to match."
          },
          "match": {
            "description": "How to match (default Contains).",
            "type": "string",
            "enum": [
              "Equal",
              "Contains",
              "StartWith",
              "EndsWith"
            ]
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Text to match."
          }
        },
        "required": [
          "field",
          "text"
        ]
      }
    },
    "received_from": {
      "description": "Only orders received on or after this date.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2}))?$"
    },
    "received_to": {
      "description": "Only orders received on or before this date.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2}))?$"
    },
    "page": {
      "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100000
    },
    "per_page": {
      "description": "Results per page, 1-100 (default 25).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_open_orders_details(order_ids, include)

Full details of open orders by their ids (up to 50): general info, shipping, customer, totals, items, folders, notes, identifiers, extended properties and bin racks. Pass include to load only some of the optional parts. Only works for open orders. POST /api/OpenOrders/GetOpenOrdersDetails.

輸入結構描述

{
  "type": "object",
  "properties": {
    "order_ids": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "description": "A Linnworks id (GUID)."
      },
      "description": "Order ids (OrderId, a GUID) from linnworks_list_open_orders."
    },
    "include": {
      "description": "Limit the optional parts loaded (default: all of them).",
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "FOLDER",
          "NOTES",
          "IDENTIFIERS",
          "EXTENDEDPROPERTIES",
          "BINRACKS"
        ]
      }
    }
  },
  "required": [
    "order_ids"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_order(order_id)

One order, open or processed, by its order id (a GUID): general info, shipping, customer, totals, items, notes. GET /api/Orders/GetOrderById.

輸入結構描述

{
  "type": "object",
  "properties": {
    "order_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The order id (OrderId / pkOrderId)."
    }
  },
  "required": [
    "order_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_find_order_by_number(order_number)

Find one order, open or processed, by its Linnworks order number (the integer shown in the order book). Returns an empty order when none matches. GET /api/Orders/GetOrderDetailsByNumOrderId.

輸入結構描述

{
  "type": "object",
  "properties": {
    "order_number": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647,
      "description": "The numeric Linnworks order number (NumOrderId)."
    }
  },
  "required": [
    "order_number"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_find_orders_by_reference(reference)

Find orders by their channel reference number (for example an Amazon or eBay order number) or secondary reference. Returns at most 50 orders. GET /api/Orders/GetOrderDetailsByReferenceId.

輸入結構描述

{
  "type": "object",
  "properties": {
    "reference": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The reference number or secondary reference to look for."
    }
  },
  "required": [
    "reference"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_search_processed_orders(search_field, search_term, exact_match, date_type, date_from, ...)

Search processed (despatched) orders. Search by order number, tracking number, channel reference, customer name, email, postcode, address, SKU, source or sub-source, optionally within a date range (at most 3 months; a non-exact search covers only the last 3 months). POST /api/ProcessedOrders/SearchProcessedOrdersPaged.

輸入結構描述

{
  "type": "object",
  "properties": {
    "search_field": {
      "type": "string",
      "enum": [
        "nOrderId",
        "o.PostalTrackingNumber",
        "ReferenceNum",
        "CustomerName",
        "o.cEmailAddress",
        "o.cPostCode",
        "ShippingAddress",
        "SKU",
        "Source",
        "SubSource"
      ],
      "description": "What to search by: nOrderId (order number), o.PostalTrackingNumber, ReferenceNum, CustomerName, o.cEmailAddress, o.cPostCode, ShippingAddress, SKU (SKU or barcode), Source, SubSource."
    },
    "search_term": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The text to search for."
    },
    "exact_match": {
      "description": "Exact match (default false: partial match over the last 3 months).",
      "type": "boolean"
    },
    "date_type": {
      "description": "Which date the range applies to (default ALLDATES = no range).",
      "type": "string",
      "enum": [
        "ALLDATES",
        "RECEIVED",
        "PROCESSED",
        "PAYMENTRECEIVED",
        "CANCELLED"
      ]
    },
    "date_from": {
      "description": "Start of the range (needs date_type other than ALLDATES).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2}))?$"
    },
    "date_to": {
      "description": "End of the range.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2}))?$"
    },
    "page": {
      "description": "Page number, from 1 (default 1). Pass the previous reply's next_page.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100000
    },
    "per_page": {
      "description": "Results per page, 1-200 (default 25).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 200
    }
  },
  "required": [
    "search_field",
    "search_term"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_get_order_notes(order_id)

The notes on an order (text, internal or external, who wrote them and when). GET /api/Orders/GetOrderNotes.

輸入結構描述

{
  "type": "object",
  "properties": {
    "order_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The order id (OrderId / pkOrderId)."
    }
  },
  "required": [
    "order_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢linnworks_list_postal_services

List the postal (shipping) services with their courier vendor, tracking and weight requirements and linked channels. GET /api/PostalServices/GetPostalServices.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴linnworks_set_stock_level(sku, location_id, level)

WRITE: set the stock level of one product (by SKU) at one location to an absolute quantity. This overwrites the current level and flows to the sales channels the item is listed on. Check the current level with linnworks_get_stock_levels first. POST /api/Stock/SetStockLevel.

輸入結構描述

{
  "type": "object",
  "properties": {
    "sku": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150,
      "description": "The product SKU (ItemNumber)."
    },
    "location_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The stock location id from linnworks_list_stock_locations."
    },
    "level": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000,
      "description": "The new stock level (units, 0 or more)."
    }
  },
  "required": [
    "sku",
    "location_id",
    "level"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴linnworks_add_order_note(order_id, note, internal)

WRITE: add a note to an order (open or processed). Internal notes are visible only inside Linnworks; external notes may be passed to the sales channel. Adds a new note each call (not idempotent). POST /api/Orders/AddOrdersNote.

輸入結構描述

{
  "type": "object",
  "properties": {
    "order_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
      "description": "The order id (OrderId / pkOrderId)."
    },
    "note": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The note text."
    },
    "internal": {
      "description": "Internal note (default true).",
      "type": "boolean"
    }
  },
  "required": [
    "order_id",
    "note"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本17 個工具