plm-upload-mcp
v1.9.0MCP server to read the LionsBot PLM (SKU folders, component metadata, extracted drawing metadata, product & staging BOMs) bulk-upload SolidWorks exports…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
upload_files Upload files to PLM by SKU
Bulk-upload local files (SolidWorks STEP/PDF exports, or any other file: zip, image, Word, Excel, PowerPoint…) into the LionsBot PLM. Each file is attached to an existing component by its SKU: it lands in PLM storage and is mirrored into that SKU's Google Drive folder on the part's own drive (staging or main; folder auto-created if missing). A SKU that is not in the PLM is refused. Re-uploading a file with the same name replaces it in place rather than duplicating. A PDF is then read like a PLM upload: a LionsBot drawing of that SKU fills the part's title-block fields (material, colour, draw…
| Parameter | Type | Description |
|---|---|---|
files * | array | The files to upload, each paired with its target SKU. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
list_component_files List a component's PLM files
Lists the files currently in a component's Google Drive folder in the PLM, by SKU.
| Parameter | Type | Description |
|---|---|---|
sku * | string | Component SKU, e.g. MNT-1234-A0. |
bucket | string | 'main' or 'staging' (default: the part's own drive). |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
create_folder Create components' Drive folders
Finds or creates the `[SKU] Name` Google Drive folder of components that already exist in the PLM, on each part's own drive (staging or main), and links the folder to the component. SKUs not in the PLM are refused: a stray folder would later be read as a new part. Uploading a file also creates the folder, so this is only needed for an empty one.
| Parameter | Type | Description |
|---|---|---|
skus * | array | Component SKUs, e.g. MNT-1234-X0. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
create_drive_folder Create a folder anywhere in the PLM Drive (Lucas and Benjamin only)
Creates a folder path anywhere in the PLM Google Shared Drive, like mkdir -p: each missing folder of `path` (from the drive root) is made, existing ones are reused. A new folder at the drive root may not hold "[" (it would be read as a part): use create_component for a part. Only Lucas and Benjamin may call it; the PLM refuses everyone else.
| Parameter | Type | Description |
|---|---|---|
path * | string | Folder path from the drive root, e.g. "Templates/Drawing". |
drive | string | The main drive or the staging drive. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
create_component Create a PLM component and its Drive folder (Lucas and Benjamin only)
Creates a component in the PLM, the same as its New component form, and its `[SKU] Name` Drive folder. Leave `sku` out to take the next number: a staging part gets a T number (MNT-T000123), a main component CAT-####-A0, an assembly CAT-#####-01, a consumable CAT-####. Only Lucas and Benjamin may call it; the PLM refuses everyone else.
| Parameter | Type | Description |
|---|---|---|
category * | string | Three-letter category code, e.g. MNT. |
name * | string | Part name. |
sku_type * | string | SKU type. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
sku | string | The SKU to use instead of the next number (required for type other). |
staging | boolean | true = a staging (draft) part on the staging drive. |
approve_legacy Approve a legacy part with no tick (Lucas and Benjamin only)
Approves a released PLM part that was never approved through the PLM (no tick beside its SKU) as a legacy item, the same as its part page buttons. Leave `backlog_reason` out to approve normally (green tick, History says approved normally, legacy item); give it to approve with backlog review (tick with ?, the part joins the Overview backlog with that reason until a backlog review is approved). Refused for a staging, obsolete or already approved part, or one with a promotion waiting. Confirm with the user before calling. Only Lucas and Benjamin may call it; the PLM refuses everyone else.
| Parameter | Type | Description |
|---|---|---|
sku * | string | The released SKU, e.g. MNT-1234-A0. |
backlog_reason | string | What it still needs (IQC report, tech docs…): approves with backlog review. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
uprev_component Uprev a staging prototype
Uprevs a staging prototype part to its next X revision (MNT-1234-X1 -> MNT-1234-X2), the same as Uprev in the PLM: a new component with the old one's details and its own staging Drive folder; the old revision stays as history. Optionally uploads the new revision's drawing PDF and STEP in the same step (file names kept exactly as given, never renamed) and reads the drawing into the PLM, which lists an injection moulded part in Injection Mold Staging. The PDF is checked BEFORE anything is created: if its title block still shows the old SKU, no SKU/REV, or another part, NOTHING is uprevved and th…
| Parameter | Type | Description |
|---|---|---|
sku * | string | Current SKU of the staging part, e.g. MNT-1234-X1. |
drawing_pdf | string | Absolute local path to the new revision's drawing PDF. |
proceed_despite_warnings | boolean | Uprev even though the drawing check warned. Only after the user has seen the warnings and said yes. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
step | string | Absolute local path to the new revision's STEP model. |
list_sku_folders List all SKU folders
List every component SKU in the PLM with its Google Drive folder — the SKU→folder map. Returns SKU, name, category, type, revision, status, whether it is a staging (unconfirmed) or main (confirmed) part, and the Drive folder id/URL. Read-only. Use it to discover which SKUs exist and where each part's files live, or to find the folder for a SKU before uploading.
| Parameter | Type | Description |
|---|---|---|
bucket | string | Filter by drive: 'main' (confirmed), 'staging' (unconfirmed), or 'all' (default). |
category | string | Optional exact category code filter, e.g. MNT. |
limit | integer | Max rows (default 1000). |
offset | integer | Row offset for paging (default 0). |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
with_folder_only | boolean | If true, only SKUs that already have a Drive folder. Default false. |
get_component_metadata Get component metadata
Read full component metadata from the PLM component database. Every column — identity (sku, name, category, type, revision, status), cost/supply (unit_cost, moq, lead time, preferred_supplier), drawing-extracted fields (material, colour, manufacturing_method, release_status), CAD provenance, compliance (RoHS/REACH/CE), and Drive folder — plus the extract_meta provenance block. Pass a single `sku` for one part, or omit it to page through all parts. Read-only.
| Parameter | Type | Description |
|---|---|---|
bucket | string | 'main', 'staging', or 'all' (default). |
category | string | Optional exact category code filter, e.g. MNT. |
limit | integer | Max rows when listing (default 100). |
offset | integer | Row offset for paging (default 0). |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
search | string | Case-insensitive substring match on SKU or name. |
sku | string | Exact SKU for a single component, e.g. MNT-1234-A0. |
status | string | Optional lifecycle status filter. |
list_bom_extract_metadata List extracted BOM/drawing metadata
List the metadata machine-extracted from each part's drawing/BOM PDF (the PLM `extract` step) across all components. For each SKU returns its extract_meta: the Lionsbot-custom-drawing flag, the SKU/drawing match check, the per-field extracted values (release status, material, colour, manufacturing method, CAD revision, drawn/designed by), and the source file + who/when it was extracted. Only parts that have been extracted are returned. Read-only.
| Parameter | Type | Description |
|---|---|---|
bucket | string | 'main', 'staging', or 'all' (default). |
limit | integer | Max rows (default 1000). |
offset | integer | Row offset for paging (default 0). |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |
sku | string | Restrict to a single SKU, e.g. MNT-1234-A0. |
list_boms List all BOMs (products + staging)
List the bills of materials across all products. Each product carries its BOM(s) with the line items — component SKU, name, quantity, unit, reference designator — and a derived `staging` flag: a product is 'staging' while its working BOM still contains any staging (unconfirmed) component, otherwise 'main'. By default returns working BOMs only (set include_snapshots to include saved snapshots) with their rows. A working BOM's rows include each ASM's parts right under its row (in_asm = that ASM's SKU, asm_depth, total_quantity = quantity x the ASM rows above it). Filter to one product with p…
| Parameter | Type | Description |
|---|---|---|
classification | string | Only products in this derived class: 'main', 'staging', or 'all' (default). |
include_rows | boolean | Include BOM line items. Default true. |
include_snapshots | boolean | Include saved snapshot BOMs, not just the working BOM. Default false. |
max_rows_per_bom | integer | Cap rows fetched per BOM (default 2000). |
product_sku | string | Restrict to one product by its SAL SKU, e.g. SAL-0R3-3001. |
sandbox | boolean | true whenever the user's message mentions "sandbox" anywhere: act on the PLM sandbox (the test copy) instead of the live PLM. |