> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# ComplianceQuest

**Authentication:** API key. See [Application credentials](/merge-agent-handler/admin-setup/add-oauth-credentials) to configure access.

## Sample use cases

* List all open CAPAs past their due date and show the responsible owner for each.
* Find every non-conformance report filed against supplier `Acme Corp` in the last 90 days.
* Create an audit record for the annual `ISO 9001:2015` review and assign it to the quality team.

## Available Tools

#### list_audits

List ComplianceQuest audits with pagination. Optionally filter by status. Use get_audit for full details on a specific audit.

#### get_audit

Get a ComplianceQuest audit by Salesforce record ID. Use list_audits to find audit IDs.

#### create_audit

Create a new audit in ComplianceQuest. Use discover_cq_objects to verify the audit object exists in your org.

#### update_audit

Update a ComplianceQuest audit. Use list_audits or get_audit to find the record ID. Only provided fields are updated.

#### list_capas

List ComplianceQuest CAPAs (Corrective and Preventive Actions) with pagination. Optionally filter by status. Use get_capa for full details.

#### get_capa

Get a ComplianceQuest CAPA by Salesforce record ID. Use list_capas to find CAPA IDs.

#### create_capa

Create a new CAPA in ComplianceQuest. Use discover_cq_objects to verify the CAPA object exists in your org.

#### update_capa

Update a ComplianceQuest CAPA. Use list_capas or get_capa to find the record ID. Only provided fields are updated.

#### list_complaints

List ComplianceQuest complaints with pagination. Optionally filter by status. Use get_complaint for full details.

#### get_complaint

Get a ComplianceQuest complaint by Salesforce record ID. Use list_complaints to find complaint IDs.

#### create_complaint

Create a new complaint record in ComplianceQuest. Use discover_cq_objects to verify the complaint object exists in your org.

#### update_complaint

Update a ComplianceQuest complaint. Use list_complaints or get_complaint to find the record ID. Only provided fields are updated.

#### discover_cq_objects

List all ComplianceQuest custom objects available in the org. Use this to find exact object API names before querying entities.

#### run_soql_query

Execute a SOQL SELECT query against ComplianceQuest. Use discover_cq_objects to find available object names. Only SELECT queries are supported.

#### list_documents

List ComplianceQuest documents with pagination. Optionally filter by status. Use get_document to retrieve full details for a specific document.

#### get_document

Get a ComplianceQuest document by Salesforce record ID. Use list_documents to find document IDs.

#### create_document

Create a new ComplianceQuest document record. Use discover_cq_objects to verify the document object exists in your org before creating.

#### update_document

Update a ComplianceQuest document record. Use list_documents or get_document to find the record ID. Only provided fields are updated.

#### list_ncrs

List ComplianceQuest NCRs (Nonconformance Reports) with pagination. Optionally filter by status. Use get_ncr for full details.

#### get_ncr

Get a ComplianceQuest NCR (Nonconformance Report) by Salesforce record ID. Use list_ncrs to find NCR IDs.

#### create_ncr

Create a new NCR (Nonconformance Report) in ComplianceQuest. Use discover_cq_objects to verify the object exists in your org.

#### update_ncr

Update a ComplianceQuest NCR. Use list_ncrs or get_ncr to find the record ID. Only provided fields are updated.

#### list_suppliers

List ComplianceQuest suppliers with pagination. Optionally filter by status. Use get_supplier for full details.

#### get_supplier

Get a ComplianceQuest supplier by Salesforce record ID. Use list_suppliers to find supplier IDs.

#### list_training_records

List ComplianceQuest training records with pagination. Optionally filter by status. Use get_training_record for full details.

#### get_training_record

Get a ComplianceQuest training record by Salesforce record ID. Use list_training_records to find record IDs.