Skip to main content
Glama

SafetyChain MCP by usefulapi

Search records

safetychain_search_records
Read-only

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).

Input Schema

NameRequiredDescriptionDefault
endNoEnd of the date range (default: now).
pageNoPage number, from 1 (default 1).
startNoStart of the date range, yyyy-mm-dd or yyyy-mm-dd hh:mm:ss. Not together with min_ago.
min_agoNoSliding window: records from the last N minutes (1440 = a day). Not together with start.
date_typeNoWhich date the range applies to (default submitted). processed = when SafetyChain saved it; modified = last change (includes submitted when never modified); modifiedOnly = only records actually modified.
form_likeNoForm name contains this text (slower than form_name).
form_nameNoExact form name.
is_signedNoOnly records with a sign-off or validation.
page_rowsNoRows per page (default 50, max 500).
is_verifiedNoOnly verified (true) records.
location_likeNoLocation name contains this text (slower).
location_nameNoExact location name.
record_numberNoOne record number.
resource_likeNoResource name contains this text (slower).
resource_nameNoExact resource name (customer, equipment, item or supplier).
identifier_nameNoIdentifier field name, for example Lot. Use together with identifier_value.
identifier_valueNoIdentifier value that goes with identifier_name.
time_zone_offsetNoHours from UTC applied to the date filters and the dates returned (default 0).
record_complianceNoOnly compliant (true) or non-compliant (false) records. Records without compliance rules count as compliant.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and the description reinforces this ('a read: it only searches') while adding real value: a scale warning (millions of records), the non-snapshotted pagination caveat, and the POST endpoint mapping. The main remaining gap is return shape and pagination totals, but overall this goes meaningfully beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the resource, then filters, then the scaling constraint, then the pagination caveat and the sibling pointer. No filler; each sentence carries a distinct operational instruction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, no-required, no-output-schema search tool, the description covers scope, returned headers, narrowing strategy, pagination stability and the field-values alternative, which is enough to call it correctly. Minor incompleteness: no mention of paging limits (max page 100000, page_rows 500) beyond the schema, and no guidance on result totals.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description goes further by grouping the filter families ('date range, form, location, resource, identifier and compliance') and stating the mandatory narrowing strategy. It does not explain individual parameters like time_zone_offset or date_type, but those are already documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Search submitted records') and immediately enumerates the header fields returned (record number, compliance, submitted date, location, form/version, resource, submitter, signed, verifications, ids). It also names the sibling it does not return field values for (safetychain_get_record_fields), so an agent can distinguish it from get_record/get_record_fields without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives hard usage rules: 'Always narrow by a date range or a name: the tenant can hold millions of records', and routes field-value retrieval to safetychain_get_record_fields. It also supplies a when-to-do-what condition for pagination ('for a stable multi-page read use a closed date range'), which is exactly the kind of alternative/exclusion guidance that prevents misuse.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.