Skip to main content
Glama

SafetyChain MCP by usefulapi

Get record field values

safetychain_get_record_fields
Read-only

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

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_rowsNoRecords per page (default 20, max 100).
field_namesNoOnly these fields, by full field name.
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).
field_short_namesNoOnly these fields, by short name.
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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the bar is lower, but the description still adds value by noting the call is a POST that is nonetheless a read ("POST /clientapis/v2.0/getRecordsWithFields (a read)") — pre-empting an agent's assumption that POST mutates. It also warns about heavy payloads per record, though it says nothing about pagination limits or rate behavior.

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?

Three tightly packed sentences: what it returns, how to filter, and how it is transported. The returned-field list is front-loaded and every clause earns its place; nothing is repeated from the schema.

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?

With 21 params and no output schema, the description usefully enumerates the field entry keys the caller will receive, which compensates for the missing output schema. Remaining gaps are minor (pagination expectations, whether all records are returned or only those with fields), but for a read-only filtered query this is close to complete.

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

Parameters3/5

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

Schema description coverage is 100% and all 21 parameters are documented in-schema, so the description correctly defers by saying "same filters as safetychain_search_records". The narrowing advice adds some practical meaning, but no parameter-level detail beyond what the schema already provides — baseline 3.

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?

States a specific verb and resource ("Get the field-level values of records") and explicitly spells out the per-record shape (name, short name, type, value, unit, compliance, min, max, target...). This cleanly separates it from sibling safetychain_get_record (which presumably returns record-level data) and from safetychain_search_records.

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

Usage Guidelines4/5

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

Gives concrete usage direction: reuse the safetychain_search_records filter set but "narrow strongly (a record number or one form and a short date range)", with the reason that each record carries many fields. It doesn't explicitly state a when-not-to-use case against safetychain_get_record or search_records, which keeps it short of a 5.

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.