SafetyChain MCP by usefulapi
v1.19.1Read SafetyChain food safety records, CAPAs, forms, suppliers, items, locations and equipment.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
safetychain_list_customers List customers
List customers of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/customers.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by customer name. |
safetychain_get_customer Get customer
Get one customer by id (an id from safetychain_list_customers). GET /clientapis/resourcemanagement/v1.0/customer/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | customer id |
safetychain_list_locations List locations
List locations (plants, sites, areas) of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/locations.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by location name. |
safetychain_get_location Get location
Get one location by id (an id from safetychain_list_locations). GET /clientapis/resourcemanagement/v1.0/location/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | location id |
safetychain_list_suppliers List suppliers
List suppliers of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/suppliers.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by supplier name. |
safetychain_get_supplier Get supplier
Get one supplier by id (an id from safetychain_list_suppliers). GET /clientapis/resourcemanagement/v1.0/supplier/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | supplier id |
safetychain_list_items List items
List items (products, ingredients, materials) of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/items.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by item name. |
safetychain_get_item Get item
Get one item by id (an id from safetychain_list_items). GET /clientapis/resourcemanagement/v1.0/item/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | item id |
safetychain_list_equipment List equipment
List equipment of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/equipment.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by equipment name. |
safetychain_get_equipment Get equipment
Get one equipment by id (an id from safetychain_list_equipment). GET /clientapis/resourcemanagement/v1.0/equipment/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | equipment id |
safetychain_list_resources List resources
List resources of every type (customers, equipment, items, suppliers, lists) of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/resources.
| Parameter | Type | Description |
|---|---|---|
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by resource name. |
safetychain_get_resource Get resource
Get one resource by id (an id from safetychain_list_resources). GET /clientapis/resourcemanagement/v1.0/resource/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | resource id |
safetychain_list_forms List forms
List forms (the checklists and data-entry forms operators fill in) of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/forms.
| Parameter | Type | Description |
|---|---|---|
is_current | boolean | Only the current version of each form (true). |
is_released | boolean | Only released (true) or unreleased (false) forms. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by form name. |
safetychain_get_form Get form
Get one form by id (an id from safetychain_list_forms). GET /clientapis/resourcemanagement/v1.0/form/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | form id |
safetychain_list_categories List categories
List categories used to group resources of the SafetyChain tenant, with ids, names, enabled flags and created/modified dates. Filter by name. The API does not page: all matches come back (cut at limit). GET /clientapis/resourcemanagement/v1.0/categories.
| Parameter | Type | Description |
|---|---|---|
is_deleted | boolean | Only deleted (true) or not deleted (false) rows. |
is_enabled | boolean | Only enabled (true) or disabled (false) rows. |
limit | integer | Return at most this many rows (default 200, max 1000); the reply says how many were cut. |
name | string | Filter by category name. |
parent_category_id | string | Only children of this category id. |
safetychain_get_category Get category
Get one category by id (an id from safetychain_list_categories). GET /clientapis/resourcemanagement/v1.0/category/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | category id |
safetychain_search_capas Search CAPAs
Search corrective and preventive actions (CAPA, SCAR, CCAR). Filters combine with AND. Returns id, name, severity, owner workgroup, status, event and due dates, task counts, location and template type, 50 per page. Use the Id (a GUID) with safetychain_get_capa and the other CAPA tools. POST /clientapis/capamanagement/v1.0/capas (a read: it only searches).
| Parameter | Type | Description |
|---|---|---|
capa_id | integer | The numeric CAPA number (CapaId). |
descending | boolean | Sort descending. |
locations | array | Location names or ids (up to 10). |
name_contains | string | CAPA name contains this text. |
owner_workgroup_contains | string | Owner workgroup contains this text. |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
search_term | string | Free-text search term. |
severities | array | Severity names (up to 10). |
statuses | array | CAPA statuses, for example Draft, Open, Closed, Voided (up to 10). |
template_types | array | Template types. |
safetychain_get_capa Get CAPA
Get one CAPA's details: status, severity, event and due dates, summary, creator, resource, source, category, owner workgroup, template and steps. The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
safetychain_get_capa_tasks Get CAPA tasks
List a CAPA's tasks (step, form, location, resource, workgroup, assignee, due date, status). The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/tasks.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
safetychain_get_capa_attachments Get CAPA attachments
List a CAPA's attachments (name, extension, link, creator, date). The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/attachments.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
safetychain_get_capa_history Get CAPA history
List a CAPA's history entries. The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/history.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
safetychain_get_capa_linked_records Get CAPA linked records
List a CAPA's linked records. The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/linkedrecords.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
safetychain_get_capa_linked_capas Get CAPA linked capas
List a CAPA's linked CAPAs. The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/linkedcapas.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
page | integer | Page number, from 1 (default 1). |
page_size | integer | Rows per page (default 50, max 200). |
safetychain_get_capa_activity Get CAPA activity
List a CAPA's activity (comments and events). The id is the GUID `Id` from safetychain_search_capas. GET /clientapis/capamanagement/v1.0/capa/{id}/activity.
| Parameter | Type | Description |
|---|---|---|
id * | string | CAPA id (GUID) |
safetychain_get_record Get record
Get one submitted record in full by its record id (the GUID `recordId` from safetychain_search_records): form, who submitted it and when, location, resource, field values, verifications. GET /clientapis/recordmanagement/v1.0/record/{recordId}.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | Record id (GUID) |
safetychain_record_exists Check a record exists
Check whether a record exists for a record id (GUID). GET /clientapis/recordmanagement/v1.0/record/{recordId}/Exists.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | Record id (GUID) |
safetychain_search_records Search records
Search submitted records (the headers: record number, compliance, submitted date, location, form and version, resource, who submitted, signed, verifications, ids). Filter by date range, form, location, resource, identifier and compliance. Always narrow by a date range or a name: the tenant can hold millions of records. Pages are not snapshotted: for a stable multi-page read use a closed date range (start and end in the past). Use safetychain_get_record_fields for the field values. POST /clientapis/v2.0/getRecords (a read: it only searches).
| Parameter | Type | Description |
|---|---|---|
date_type | string | Which date the range applies to (default submitted). processed = when SafetyChain saved it; modified = last change (includes submitted when never modified); modifiedOnly = only records actually modifi… |
end | string | End of the date range (default: now). |
form_like | string | Form name contains this text (slower than form_name). |
form_name | string | Exact form name. |
identifier_name | string | Identifier field name, for example Lot. Use together with identifier_value. |
identifier_value | string | Identifier value that goes with identifier_name. |
is_signed | boolean | Only records with a sign-off or validation. |
is_verified | boolean | Only verified (true) records. |
location_like | string | Location name contains this text (slower). |
location_name | string | Exact location name. |
min_ago | integer | Sliding window: records from the last N minutes (1440 = a day). Not together with start. |
page | integer | Page number, from 1 (default 1). |
page_rows | integer | Rows per page (default 50, max 500). |
record_compliance | boolean | Only compliant (true) or non-compliant (false) records. Records without compliance rules count as compliant. |
record_number | integer | One record number. |
resource_like | string | Resource name contains this text (slower). |
resource_name | string | Exact resource name (customer, equipment, item or supplier). |
start | string | Start of the date range, yyyy-mm-dd or yyyy-mm-dd hh:mm:ss. Not together with min_ago. |
time_zone_offset | integer | Hours from UTC applied to the date filters and the dates returned (default 0). |
safetychain_get_record_fields Get record field values
Get the field-level values of records (one entry per record with its fields: name, short name, type, value, unit, compliance, min, max, target, comments, section). Same filters as safetychain_search_records; narrow strongly (a record number or one form and a short date range), each record carries many fields. POST /clientapis/v2.0/getRecordsWithFields (a read).
| Parameter | Type | Description |
|---|---|---|
date_type | string | Which date the range applies to (default submitted). processed = when SafetyChain saved it; modified = last change (includes submitted when never modified); modifiedOnly = only records actually modifi… |
end | string | End of the date range (default: now). |
field_names | array | Only these fields, by full field name. |
field_short_names | array | Only these fields, by short name. |
form_like | string | Form name contains this text (slower than form_name). |
form_name | string | Exact form name. |
identifier_name | string | Identifier field name, for example Lot. Use together with identifier_value. |
identifier_value | string | Identifier value that goes with identifier_name. |
is_signed | boolean | Only records with a sign-off or validation. |
is_verified | boolean | Only verified (true) records. |
location_like | string | Location name contains this text (slower). |
location_name | string | Exact location name. |
min_ago | integer | Sliding window: records from the last N minutes (1440 = a day). Not together with start. |
page | integer | Page number, from 1 (default 1). |
page_rows | integer | Records per page (default 20, max 100). |
record_compliance | boolean | Only compliant (true) or non-compliant (false) records. Records without compliance rules count as compliant. |
record_number | integer | One record number. |
resource_like | string | Resource name contains this text (slower). |
resource_name | string | Exact resource name (customer, equipment, item or supplier). |
start | string | Start of the date range, yyyy-mm-dd or yyyy-mm-dd hh:mm:ss. Not together with min_ago. |
time_zone_offset | integer | Hours from UTC applied to the date filters and the dates returned (default 0). |
safetychain_get_record_summary Summarize records
Fast summary of the records matching the filters: first and last date, and how many forms, resources, locations and users are involved. Use it to size a request before safetychain_search_records. POST /clientapis/v2.0/getRecordSummary (a read).
| Parameter | Type | Description |
|---|---|---|
date_type | string | Which date the range applies to (default submitted). processed = when SafetyChain saved it; modified = last change (includes submitted when never modified); modifiedOnly = only records actually modifi… |
end | string | End of the date range (default: now). |
form_like | string | Form name contains this text (slower than form_name). |
form_name | string | Exact form name. |
identifier_name | string | Identifier field name, for example Lot. Use together with identifier_value. |
identifier_value | string | Identifier value that goes with identifier_name. |
is_signed | boolean | Only records with a sign-off or validation. |
is_verified | boolean | Only verified (true) records. |
location_like | string | Location name contains this text (slower). |
location_name | string | Exact location name. |
min_ago | integer | Sliding window: records from the last N minutes (1440 = a day). Not together with start. |
record_compliance | boolean | Only compliant (true) or non-compliant (false) records. Records without compliance rules count as compliant. |
record_number | integer | One record number. |
resource_like | string | Resource name contains this text (slower). |
resource_name | string | Exact resource name (customer, equipment, item or supplier). |
start | string | Start of the date range, yyyy-mm-dd or yyyy-mm-dd hh:mm:ss. Not together with min_ago. |
time_zone_offset | integer | Hours from UTC applied to the date filters and the dates returned (default 0). |