# Factored Quality MCP

> Factored Quality manages your entire quality control lifecycle directly through natural conversation. It lets you track inspections, review compliance audits for partners, and monitor product lab tests without leaving your workflow. Connect it to any AI client to get immediate data on supplier performance, manage booking requests, and keep your supply chain running clean.

## Overview
- **Category:** erp-operations
- **Price:** Free
- **Tags:** quality-control, audit-management, lab-testing, compliance-monitoring, inspection-reports, manufacturing-standards

## Description

Need full visibility into quality control? This MCP connects directly to your Factored Quality account, giving you total control over QC records, compliance audits, and lab testing results. Instead of logging into separate portals or pulling reports from multiple tabs, you just talk to your AI client. You can list all recent inspections and get detailed findings for any batch number in seconds. Need to check a supplier's history? Query their performance directly. The system lets you manage everything—from listing quality control inspections to creating new booking requests—all through plain language prompts. When data integrity is non-negotiable, having this deep compliance access managed via Vinkius makes the process quick and reliable.

## Tools

### create_booking
Schedules a new quality control service booking with the system.

### get_audit
Retrieves specific details for one factory audit report.

### get_booking
Fetches detailed information about a specific, existing service booking.

### get_inspection
Gets all the results and details for one particular quality control inspection.

### get_lab_test
Retrieves the status and findings of a specific product lab test.

### get_me
Checks your current API user profile details for verification purposes.

### get_supplier
Gets the full profile and historical data for a specific supplier.

### list_audits
Lists all available factory audit reports associated with your partners.

### list_bookings
Displays a list of every service booking managed by the system.

### list_inspections
Lists all quality control inspections that have been run or are pending.

### list_lab_tests
Provides a list of all recorded product lab tests and their associated metadata.

### list_suppliers
Returns a complete roster and summary data for every supplier you work with.

## Prompt Examples

**Prompt:** 
```
List all recent quality control inspections.
```

**Response:** 
```
I've retrieved your recent inspections. You have 5 inspections in progress and 12 completed this month. The latest one for 'Summer SKU-101' at Factory X passed with a score of 98%.
```

**Prompt:** 
```
Show me the status of the latest lab test for product Y.
```

**Response:** 
```
Fetching lab test results... The latest test for 'Product Y' (ID: 789) is COMPLETED. The results show all materials comply with REACH and RoHS standards.
```

**Prompt:** 
```
Book a new inspection for Supplier Z next week.
```

**Response:** 
```
Booking started... I've initiated a new inspection request for 'Supplier Z'. Please provide the specific PO number and SKU details to finalize the booking.
```

## Capabilities

### Manage QC Inspections
Retrieve a list of all completed or pending quality control inspections, including specific results for any given batch.

### Review Compliance Audits
Fetch detailed reports and compliance data from factory audits conducted on your manufacturing partners.

### Monitor Lab Test Status
Check the current status, results, and compliance details for any product lab test record.

### Handle Booking Requests
Create new service bookings or retrieve details on existing Quality Control appointments.

### Assess Supplier Performance
Get detailed profiles and historical quality performance records for any registered supplier.

## Use Cases

### A factory needs clearance on goods.
The ops manager asks: 'What's the status of the last inspection for SKU XYZ?' The agent uses `list_inspections` to confirm recent activity, then calls `get_inspection` to provide a pass/fail grade and compliance score instantly. They can then green-light the goods.

### A new supplier needs vetting.
The supply chain leader asks: 'Check Supplier Acme's full history.' The agent uses `list_suppliers` to find them, and then calls `get_supplier` to compile all previous audit reports and QC scores in one response.

### Scheduling a necessary compliance check.
A quality engineer needs an immediate inspection. They prompt: 'Book me a new audit for next Tuesday.' The agent calls `create_booking`, initiating the request and providing confirmation details to finalize the process.

### Validating material compliance.
The QA manager asks: 'Show me if Product B passed REACH standards.' The agent uses `list_lab_tests` to locate the records, then runs `get_lab_test`, summarizing all material compliance status points.

## Benefits

- You can manage booking requests or retrieve details on existing appointments using the `create_booking` or `get_booking` tools. This means you schedule services without ever leaving your chat interface.
- Instead of pulling reports manually, simply ask for a supplier's history. The agent uses `list_suppliers` and then drills down with `get_supplier` to show performance gaps instantly.
- Compliance is simple. Run `list_audits` to see all factory audit reports; you can then use `get_audit` to pull the specifics for a single partner, right when you need it.
- Lab testing results are immediate. You never have to wait for a file attachment; ask your agent to check the status using `list_lab_tests` and `get_lab_test`.
- Inspections are always visible. The system lets you `list_inspections`, giving you an overview, or use `get_inspection` to see every pass/fail detail for a specific batch.

## How It Works

The bottom line is you ask what you need, and your AI client gets the data directly from Factored Quality.

1. Subscribe to this MCP on Vinkius and enter your unique Factored Quality API Key.
2. Connect the service credentials to your preferred AI client (Claude, Cursor, etc.).
3. Ask the agent a question in plain English—like 'Show me the lab test results for SKU 123'—and it executes the query.

## Frequently Asked Questions

**How do I check if a supplier passed an audit using the get_audit tool?**
You first use `list_audits` to find the relevant audit report ID. Then, you pass that ID into `get_audit`. The agent pulls all the compliance details so you know immediately if they're cleared.

**Can I list all quality control inspections with list_inspections?**
Yes, using `list_inspections` gives you a comprehensive overview of every QC inspection. You can then use the specific ID from that list to call `get_inspection` for full details.

**What if I need to book a new service? Do I use create_booking?**
Yes, you initiate a new request by asking your agent to 'Book an inspection using the tool.' The `create_booking` function starts the process and guides you on what final details are needed.

**How do I find all my suppliers? Should I use list_suppliers?**
Yes, running `list_suppliers` provides a full roster. If you want deep dive data on one specific vendor, you then use the name or ID to call `get_supplier`.

**How do I check if my API connection is live and working correctly using the get_me tool?**
Yes, run 'get_me' to confirm your account details. This tool pulls your current user profile information directly from Factored Quality, confirming that your credentials are active and properly linked.

**I have a specific lab test ID; how do I retrieve all of its compliance results using the get_lab_test tool?**
You pass the unique ID to 'get_lab_test'. The system returns comprehensive data, detailing every material's status and verifying adherence against standards like REACH or RoHS.

**What happens if I run list_bookings and some of the booked services are canceled?**
The 'list_bookings' tool includes a 'status' field for each entry. This lets you quickly filter and see which bookings are active, pending, or marked as fully cancelled.

**When I use get_supplier, what data points can I pull to compare the quality performance history of two different suppliers?**
The 'get_supplier' tool pulls more than just contact info. You retrieve historical metrics like audit scores and compliance rates, allowing you to directly compare their overall quality performance.

**How do I obtain my Factored Quality API Key?**
Users with Company Admin access can generate API keys by navigating to **Settings > API Keys** in the Factored Quality Portal.

**Can I integrate this with my logistics provider?**
Yes, you can use the API data to automate workflows with freight forwarders, such as green-lighting goods for pickup based on passing inspection results.

**Is it possible to view full lab test reports?**
The `get_lab_test` tool retrieves detailed metadata and results for your lab tests. For full PDF reports, you can find the direct link in the metadata returned by the API.