> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/engineering-product-lifecycle-and-quality/create-ready-inventory-quality-analysis.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Create Ready Inventory Quality Analysis

Validates an active inventory control plan, previews creation, then creates an inventory quality analysis with ETag, approval token, and read-back verification.

| Business area                               | Action type                                |
| ------------------------------------------- | ------------------------------------------ |
| Engineering, Product Lifecycle, and Quality | Updates IFS Cloud data after user approval |

## Overview

Inventory control plans (QmanControlPlanInvent) define how parts in stock are inspected. Besides scheduled analyses, a user can create an ad-hoc analysis with the Create Analysis command on the Control Plans Inventory overview.

The IFS Cloud integration creates inventory quality analyses from active inventory control plans.

## How it works

{% stepper %}
{% step %}
Get Inventory Control Plan (keep etag).
{% endstep %}

{% step %}
Validate Inventory Analysis Gate.
{% endstep %}

{% step %}
After approval, Create Inventory Analysis with etag + approvaltoken.
{% endstep %}

{% step %}
Verify Inventory Analysis.
{% endstep %}

{% step %}
Return structured results and any escalation guidance.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one inventory control plan revision with state, part, site, phase-in/out dates, data point count and schedule flag.
* Check the client gate (Objstate = "Active") and server gates (active plan, available stock) before acting.
* Detect an already open (Planned) inventory analysis for the same plan to avoid duplicates.
* Present a preview and require explicit user approval before the write.
* Execute the bound action CreateAnalysis exactly once for one record, with ETag.
* Read back the created analysis by AnalysisNo and confirm state, plan and part.
* Translate IFS errors (no available quantity, plan not active, permission) into clear user messages.
* Report the next business step (result registration).

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                    |
| --------- | ----------------------------- |
| QUAMAN    | ControlPlansInventoryAnalysis |
| QUAMAN    | InventoryAnalysesHandling     |

## Version compatibility

| Projection                    | Supported IFS Cloud releases |
| ----------------------------- | ---------------------------- |
| ControlPlansInventoryAnalysis | 24R2, 25R1, 25R2, 26R1, 26R2 |
| InventoryAnalysesHandling     | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
