# PharmWare MCP for AI Agents AI Agent Connect

> PharmWare MCP lets you manage your cannabis laboratory operations through a simple chat. You can track samples, check test results, issue Certificates of Analysis (CoAs), and monitor lab workflows without jumping between tabs. It handles everything from batch traceability to instrument calibration and compliance reporting.

## Overview
- **Category:** erp-operations
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_dqzlUGT64oWsc9TLTE7m8M4lvUg9WSFdKudcmc6V/ai-agent-connect
- **Tags:** lab-testing, compliance, sample-tracking, certificate-of-analysis, seed-to-sale

## Description

This PharmWare MCP lets you manage your cannabis laboratory operations through a simple chat. Running a cannabis lab involves a massive amount of moving parts. You have to track samples from the moment they hit your dock, monitor complex test panels for contaminants, and ensure every single batch meets strict regulatory limits. Most lab managers spend their day clicking through clunky LIMS screens just to find a single Certificate of Analysis or check if a piece of equipment is due for maintenance. This Connector changes that by letting you handle those tasks through a simple chat. Instead of hunting for data in a maze of menus, you can just ask your agent to pull specific test results, verify batch traceability, or check the status of a rush order. It pulls data directly from your PharmWare account to give you a clear view of your lab's health. Whether you're pulling audit logs for a surprise inspection or checking the connection status of your state regulatory APIs, this tool puts the data where you actually work. You can manage client lists, monitor active workflows, and review staff permissions without ever leaving your primary workspace. It takes the friction out of quality assurance by making it possible to query complex datasets in plain English. It's one of the many tools you can find in the Vinkius catalog to get your lab operations under control without the manual headache of constant tab-switching.

## Tools

### list_clients
See all cultivators, processors, and retailers registered in your PharmWare account. Use this to identify sample ownership and generate client reports.

### list_integrations
Verify the health of your connections to WeedMaps, Metrc, and state regulatory APIs. It helps you troubleshoot sync failures between different platforms.

### list_reports
Find all generated regulatory submissions, monthly summaries, and trend analyses. Use it to prepare state-mandated reports and identify quality trends.

### list_audit_logs
View every action taken in the lab to stay ready for regulatory inspections. This helps you reconstruct event sequences during quality investigations.

### list_batches
See all cannabis batches, their production status, and seed-to-sale tracking info. It is useful for managing recalls and verifying batch clearance.

### list_certificates
Get a list of all issued CoAs with potency profiles and contaminant screening results. This helps you verify CoA authenticity and generate client documentation.

### list_results
Get the raw analytical findings for potency, pesticides, and heavy metals for any sample. This is fundamental for quality assurance and advising clients on product disposition.

### list_samples
Monitor the current queue of cannabis samples, including priority and chain of custody. This helps you predict completion dates and alert clients to status changes.

### list_tests
Browse the analytical methods and regulatory limits available in your lab. Use it to configure sample test orders and explain testing scopes to clients.

### list_users
Review staff roles, permissions, and training certifications for your lab team. This helps with access control and ensuring personnel meet competency requirements.

### list_workflows
See the step-by-step definitions and active instances for your lab processes. Use it to identify bottlenecks and ensure your lab follows ISO standards.

### list_instruments
Check the calibration status and maintenance schedules for HPLC, GC-MS, and other gear. This ensures your equipment is ready before you assign tests.

## Prompt Examples

**Prompt:** 
```
Which batches are currently in the quarantine status?
```

**Response:** 
```
Checking quarantine logs... I found 4 batches currently held in the quarantine zone.

| Batch ID | Product Type | Reason | Status |
| :--- | :--- | :--- | :--- |
| BD-4412 | Flower | Pending Heavy Metal Review | Quarantined |
| OG-3387 | Concentrate | Failed Pesticide Limit | Quarantined |
| SD-C891 | Edible | Labeling Error | Quarantined |
| FL-9920 | Flower | Routine QC Hold | Quarantined |

Would you like me to pull the specific test results for any of these batches?
```

**Prompt:** 
```
Give me a summary of our heavy metal test results for the last 30 days.
```

**Response:** 
```
Reviewing recent test results... Here is the summary for the last 30 days:

*   **Total Samples Tested:** 42
*   **Pass Rate:** 98.2%
*   **Outliers:** 1 (Batch FL-102 - exceeded Lead limit by 0.02%)
*   **Average Concentration:** 0.004 mg/kg

All other samples are well within state regulatory limits. Would you like the full list of results?
```

**Prompt:** 
```
Is the GC-MS ready for use?
```

**Response:** 
```
Checking instrument status...

**GC-MS System Status:**
*   **Status:** Ready
*   **Last Calibration:** 2025-04-01
*   **Next Scheduled Maintenance:** 2025-06-01
*   **Qualification:** IQ/OQ/PQ Passed

The system is cleared for use. Do you want me to check the status of the HPLC as well?
```

## Capabilities

### Track sample status
Get real-time updates on where a sample is in the testing pipeline.

### Issue CoAs
Generate and retrieve Certificates of Analysis for product release.

### Monitor lab workflows
See exactly where bottlenecks are happening in your testing process.

### Manage lab instruments
Check calibration dates and maintenance schedules for your equipment.

### Audit lab operations
Pull full logs of user actions for regulatory compliance.

### Track production batches
Link specific cannabis batches to their seed-to-sale data and test results.

## Use Cases

### Audit Preparation
A Quality Manager needs to find every change made to a specific test result last month. They ask the agent to pull the audit logs for that record using list_audit_logs.

### Batch Clearance
A Director wants to know which batches are cleared for sale. The agent checks the batch status and links them to their CoAs using list_batches and list_certificates.

### Client Status Update
A client calls asking about a rush order. The agent checks the sample queue and gives the exact status of the pesticide screening using list_samples.

### Instrument Readiness
A chemist needs to know if the GC-MS is ready for the next run. The agent checks the calibration status and maintenance history using list_instruments.

## Benefits

- Get instant CoA status without logging into PharmWare. Use list_certificates to see what is ready for release immediately.
- Stay audit-ready with list_audit_logs. Pull every user action and modification for easy regulatory review and data integrity checks.
- Reduce bottlenecks by using list_workflows. Identify where samples are getting stuck in the intake process to improve turnaround times.
- Keep equipment running with list_instruments. Track calibration dates so you never miss a maintenance window or risk a failed test.
- Speed up client updates using list_samples. Give cultivators real-time status on their rush orders without manual phone calls.
- Monitor external syncs with list_integrations. Ensure your data is flowing correctly to Metrc and WeedMaps without constant checking.

## How It Works

The bottom line is you get a conversational interface for your entire laboratory management system.

1. Connect your PharmWare API credentials to the Connector.
2. Link your preferred AI client like Claude or Cursor.
3. Ask your agent to pull reports, check samples, or verify compliance.

## Frequently Asked Questions

**Can PharmWare MCP help with FDA compliance?**
Yes. It allows you to pull full audit logs of every action taken in your lab, which is essential for meeting FDA 21 CFR Part 11 requirements.

**How does this help with CoA issuance?**
You can ask your agent to list all issued Certificates of Analysis or check specific potency profiles and contaminant screening results instantly.

**Can I check my lab's instrument calibration?**
Yes. You can query the status of your HPLC, GC-MS, and other equipment to see their last calibration dates and next maintenance windows.

**Does this connect to Metrc or WeedMaps?**
It can verify the health of your existing integrations with platforms like Metrc, WeedMaps, and various state regulatory APIs.

**Can I use this to see my sample queue?**
Yes. You can monitor the current queue of cannabis samples, including their priority levels, chain of custody, and current testing status.

**How do I manage my lab staff permissions?**
You can use the Connector to review staff roles, permissions, and training certifications to ensure your team meets competency requirements.

**Can my AI automatically check if a cannabis sample has passed all required tests and is ready for Certificate of Analysis issuance?**
Yes! Use the `list_results` tool to fetch all completed analytical findings for a specific sample. Your AI agent will respond with comprehensive pass/fail determinations across potency, terpenes, pesticides, heavy metals, and contaminant panels. Once all required tests show passing results, use `list_certificates` to verify CoA generation status. Always confirm regulatory limit compliance before releasing products to distribution or retail channels.

**How do I quickly identify which laboratory instruments are due for calibration or maintenance?**
Simply ask the agent to run the `list_instruments` action. It will compile all analytical equipment with calibration status, last service date, next scheduled maintenance, and qualification records. The AI will highlight any HPLC, GC-MS, ICP-MS, or other systems approaching calibration expiry or overdue for preventive maintenance. This ensures your laboratory maintains ISO/IEC 17025 compliance and analytical data integrity.

**Does PharmWare integration allow modifying test results or deleting sample records?**
No. The current toolset focuses strictly on read-only querying and analytical operations — listing samples, reviewing results, checking certificates, and monitoring workflows. State alteration operations (modifying test data, deleting samples, or revoking certificates) are not currently exposed, assuring your laboratory records remain secure against destructive queries and maintaining complete audit trail integrity for regulatory inspections.