This is the complete reference for what an AI assistant or a script can do through Formwork's MCP server. You don't need it to use Claude or ChatGPT with Formwork; they discover all of this on their own. It is here for people writing scripts or pipelines, and for anyone who wants to know exactly what the AI can and cannot touch.
For connecting an assistant, see Connect Your Own AI via MCP. For scripts and CI, see Accessing MCP with a machine token.
How Calls Work
- Endpoint:
POST https://app.openregulatory.com/mcp, JSON-RPC 2.0 over HTTP. SendContent-Type: application/jsonandAccept: application/json, text/event-stream. Authenticate with a bearer token: either the one your AI tool obtained by signing in, or an API token (fw_...). - Stateless: no
initializehandshake or session is required; every request stands alone. Theinitializeresponse does tell the client which company and access level the connection has. - Company scope: every call runs against the single company the connection is bound to. There is no way to reach another company through the same connection.
- As you: the connection acts as your user. It sees what you can see and changes only what you could change. Read-only connections get the six read tools; read-and-write connections get all eleven.
- Results:
tools/callanswers carry the tool's JSON result underresult.structuredContent(and as text underresult.content). - Rate limit: 300 requests per minute per token. Requests beyond that answer HTTP 429.
Concepts That Apply Everywhere
Resource types. Everything in Formwork is addressed by a resource_type string (document, hazard, capa, ...) and a UUID id. The full list is below; describe_formwork_schema returns it at runtime.
Items. Every item returned by a query or read has id, human_display_text (the title with its identifier where one exists, e.g. HAZ-7: Electrical shock, usually cut at 80 characters) and link (the full URL of the item in Formwork; null for activities, comments, comment threads, reviews and the company, and the parent's URL for CAPA actions and training questions), plus the type's own fields. Documents, records and most product-release items also have permalink, which always opens the newest version, while link opens this exact version; use permalink when writing links into content. Reading a single item of a type that takes files also returns attachments (id, filename, content_type, byte_size for each; not in query listings); read one with read_formwork_attachment.
Pagination. Queries return { success, total, offset, limit, items }. limit defaults to 50 and is capped at 200. When there is more, a note says which offset to pass next.
Rich text. Markdown fields (document and record content, most descriptions, test steps and expected) accept Markdown on write and return Markdown on read; Formwork renders them as rich text.
AI marks. Formwork records what an AI created or edited. Every type that can be created or updated, except product releases and test runs, returns on single reads and in create and update answers (not in query listings) ai_created ({ creator, created_at } when an AI created the item) and last_worked_on_by_ai ({ client, at } while the item carries the AI badge in Formwork: an AI created or edited it and no person has edited, approved or released it since).
Drafts for reviewable content. Creating a document, record, design or risk item, CAPA, incident or change request produces a draft. Updating only works on items that are drafts and that you may edit. Items that are approved, released, under review, or deleted from their release refuse with a forbidden answer, with two exceptions described under update_formwork_resource: released records, CAPAs, incidents and change requests can be amended with amendment_comment, and documents, records and folders can be moved to another folder whatever their review status. For an approved document, or a record carried over unchanged from an earlier release, use dispatch_formwork_agent with new_document_or_record_draft to get a new editable draft first; their uploaded-file and Google Doc counterparts need the new draft created in Formwork. Items without a review lifecycle - tasks, task groups and projects, folders, roles, trainings, comments - are created and updated directly and take effect immediately; creating an assigned task, for example, notifies its assignees.
Never through MCP: approving, releasing, rejecting or restoring anything. Those stay in the Formwork UI. Deleting and archiving work only after a company admin allows them; see delete_formwork_resource.
Filters shared by many types.
archived(falseby default,true,any): applies to everything that can be archived. Archived items are excluded unless asked for.for_future(true,false; omitted lists both): for product-release items, whether the item is marked for a future release.deleted(falseby default,true,any): for product-release items, whether the item was deleted from its release.ai_created,last_worked_on_by_ai(true,false; omitted lists all): on the types that carry the AI marks above.query: text search on the title (typo-tolerant for documents and records, exact substring elsewhere); documents and records also match body content.product_release_id,product_id,folder_id,status: where the type has them.
Product-release items (the design and risk sections below) can also return change_history (added, modified, unmodified, deleted compared to the previous release) and for_future, and accept for_future: true|false as an update relation to move the item between the current and a future release. Not every type supports all of these: test runs carry none of them, and run sets, design-input systems and the probability and severity categories have no for_future, so check describe_formwork_schema for the type before relying on one.
Relations. Fields ending in _ids (e.g. user_need_ids) take an array of UUIDs and replace the full set, with one exception: attachment_signed_ids adds the listed uploads and keeps the existing attachments, and remove_attachment_ids removes only the attachments listed. A pipeline that replaces evidence must remove the old file explicitly. Ids must belong to the same company, and for release items to the same release. Links to documents and records come as one field for each format (document_ids, custom_file_document_ids, google_doc_document_ids, and the same for records), and each replaces only the links of its own format. Only the newest approved version of a document, and the newest version of a record, can be newly linked.
Errors. Most failures answer { success: false, error: "...", code: "..." }. Validation failures are the exception: they answer { success: false, status: "validation_error", ... } with no error or code, and name the fields that were wrong in operation-specific keys, for example missing and invalid on create, invalid on update, or kind and invalid on dispatch_formwork_agent. Check success rather than code alone. A call that leaves out a required argument, or whose arguments don't fit the tool's schema, is stopped before the tool runs: it answers plain text with isError: true ("Missing required arguments: ..." or "Invalid arguments: ...") and no structuredContent. Common codes:
code |
meaning |
|---|---|
|
no such type; the message lists the known ones |
|
|
|
no item with that id in this company |
|
the operation is refused for you or for this item, and |
|
fields missing or invalid; |
|
the type does not support that operation |
|
deletes, see |
|
bad |
|
|
|
|
|
reading attachments, see |
|
file uploads, see below |
Unknown filters answer unknown filter(s): x (allowed: ...); a bad enum value answers invalid value "x" for filter y (allowed: ...).
The Tools
Read Tools
describe_formwork_schema — resource_type (optional). Without an argument, lists every resource type with its queryable, creatable, updatable, deletable and traceable flags. With one, returns that type's description, query filters, required and optional create fields, editable update fields and relations, read fields and traceability fields. Call it whenever you are unsure about a contract.
query_formwork_resources — resource_type (required), filters (object), limit, offset. Lists items matching the filters, paginated as described above. Order is only defined where a type documents it, for example activity newest first and tasks and task groups by position. For other types do not rely on the order: page through all results rather than treating the first page as the most recent.
read_formwork_resource — resource_type, id (both required). Returns the item with all its read fields and traceability links. Reading an unreleased version of a document adds a warning naming the latest released version; reading an item deleted from a release says so.
read_formwork_attachment — attachment_id (required), offset. Reads one file: take attachment_id from an item's attachments, or file_attachment_id on a custom_file_document or custom_file_record to read the uploaded file itself.
- PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx), JSON, XML, SVG and any
text/*file (plain text, CSV, Markdown, ...) come back as extractedtext, in pages of 100,000 characters. Whentruncatedis true, call again withoffsetset tonext_offset. - PNG, JPEG, GIF and BMP images come back as a
blob_urlthat works for an hour. - Extraction keeps the first 500,000 characters of a file (
text_capped: truemeans the rest was not read) and skips files over 50 MB (oversize). A large file is extracted in the background: onextraction_pending, call again a few seconds later. A scanned PDF without a text layer returns emptytextwith a note. Other file types and encrypted PDFs answerunsupported_content_type. - The Google Doc or Sheet behind a
google_doc_documentorgoogle_doc_recordcannot be read.
search_formwork — query (required, up to 200 characters; body-content matching inside documents and records needs at least 3 characters), scope (qms by default, manual, templates, all), limit (for qms: items for each resource type, 10 by default; no effect on manual and templates).
qmssearches every type that has aqueryfilter by title, and documents and records also by body content (including uploaded PDFs, Word, Excel and PowerPoint files, and synced Google Docs). Content matching is a literal substring, so short distinctive stems (evaluat,nonconform) beat long phrases. Document and record hits carrycontent_snippet,matched_field(titleorcontent) and, when the match is in an older version,matched_version_id. Title matches come first; the rest is ordered by recency, not relevance.manualsearches this manual and returns the best two articles with the relevant passage.templatessearches OpenRegulatory's public document templates.
trace_formwork_resource — resource_type, id (both required). Returns the ids of everything linked to the item across the design and risk graph (for a hazard: its risk table entries, failure modes, preliminary hazards and user needs), plus its review where the type is reviewable. Only for types marked traceable.
Write Tools
create_formwork_resource — resource_type, attributes (object; both required). Creates the item: a draft for reviewable content, a live item for types without a review lifecycle (tasks, folders, roles, trainings, comments). Missing required fields come back in missing; unknown ones in invalid.
update_formwork_resource — resource_type, id, attributes (all required). Changes editable fields and relations on an item you may edit: a draft for reviewable content, any editable item otherwise. Anything not listed as editable for the type is rejected as field not editable. Two relations reach beyond drafts:
amendment_comment(records, uploaded-file records, CAPAs, incidents, change requests): amends a released item like the in-app Amend form. Pass the fields to change in the same call and say in the comment what changed and why. A record's previous state is kept as a read-only copy (statusamended, listed inprior_versions). Refused on drafts and items under review, and on records carried over unchanged from an earlier release: arecordneedsnew_document_or_record_draftinstead, and an uploaded-file record needs its new draft created in Formwork.folder_id(all six document and record types) moves the item to another folder with all its versions;parent_folder_idmoves a folder with its subfolders and contents. The checks are those of the in-app Move dialog: write access to the current and the destination folder, the same content type (documents or records), no move into a released product release, and a record in a released release, or linked to design outputs, can't leave its release. Archived items and the root folders can't be moved. A move on its own needs only write access, so approved and released items can be moved too.
delete_formwork_resource — resource_type, ids (1 to 50 ids of one type; both required). Deletes or archives the items, doing exactly what each item's Delete/Archive entry in the Formwork UI does, with the same permission checks. It works only when a company admin has turned on "Allow AI to Delete Items" (Settings › AI Usage); otherwise it answers code disabled. The answer lists each item under deleted with its effect:
destroyed: gone for good; it cannot be brought back.archived: kept, and restorable from the Archived list in Formwork (tasks, task groups and task projects have no restore screen yet).marked_deleted: a product-release item carried over from an earlier release, marked deleted in this release and restorable from the Deleted list.discarded: a draft over a released version. The draft is gone for good and the released version stays. Passing the id of such a draft discards only that draft. While a document has such a draft, any other id of that document is refused with a reason naming the draft's id, so discard the draft first. Otherwise any id of a document or record deletes or archives the whole item with all its versions (listed inversion_ids).
All or nothing: if any item is refused (already archived or deleted, no permission, a role that still owns documents, ...), nothing is deleted and the answer has code refused and a refused list naming each item with its reason. Other codes: not_deletable (the type can't be deleted), not_found (an id is unknown or not readable; missing lists them), invalid_args (no ids or more than 50), forbidden (the company's plan does not include that part of Formwork), delete_failed (Formwork could not delete an item; nothing was deleted). Every creatable type is deletable except capa_action, comment_thread and training_question; google_doc_document and google_doc_record are deletable though not creatable.
upload_formwork_file — filename (required), then exactly one of data (base64, at most 1 MB decoded) or byte_size (to get a one-time upload URL), optional content_type. Answers with handles:
attachment_signed_id: pass it inattachment_signed_idsof a document, record, system test run or user test run to attach the file, or asfile_signed_idwhen creating acustom_file_documentorcustom_file_recordto make the file the document itself.blob_url(PNG, JPEG, GIF, BMP only): embed asin Markdown content to place the image inline.
With byte_size, the answer instead holds upload_url, http_method (POST), multipart_field (file) and expires_at. POST the file there as a multipart form part named file within 10 minutes; the URL works once and needs no token, and its answer carries the same handles. Handles are valid for 24 hours; files that are never attached (or embedded as an image) are removed within a few days. Attachments take any file type; a file used as a custom_file_document or custom_file_record must be a document, presentation, spreadsheet, image, video, archive or PDF. The per-file limit is 15 MB on free plans and 150 MB on paid plans. Viewers cannot upload.
dispatch_formwork_agent — kind, args (object; both required). Runs a compound operation:
release_readinesswith{ product_release_id }(or{ product_id }for the latest release): the same read-only sanity check as the release page, across records, change requests, risk items, design items, tests and test runs. Changes nothing.send_for_reviewwith{ resource_type, id, reviewer_role_ids: [...], comment?, criteria? }for a document or record (any of the six types), CAPA, incident or change request that is a draft you may edit; or with{ resource_type, product_release_id, reviewer_role_ids: [...], comment?, criteria? }for a product-release type (hazards, design inputs, user needs, ...), which sends the whole list of that type in the release as one batch review. Creates the review and its requests; it never approves or rejects.cancel_reviewwith{ review_id }: withdraws a waiting review, returns the item to draft and notifies the reviewers still waiting. A batch review is cancelled for the whole batch. It is not a reviewer's rejection, and needs write access to the item under review.new_document_or_record_draftwith{ resource_type: "document"|"record", id }: creates a new editable draft version of an approved document, or of a record carried over unchanged from an earlier release, and returns the new draft's id. If a document already has a draft, that draft's id is returned and nothing new is created; a record that already has a draft answersforbidden, so edit that draft instead. Uploaded-file and Google Doc documents and records are not accepted: create their new draft in Formwork.
Resource Types
For each type: what it is, its query filters, what create needs (required, then optional), what update allows (fields, then relations). Filters and fields shared by many types (archived, for_future, deleted, query, change_history, permalink, attachments, ai_created, last_worked_on_by_ai) are described above and not repeated. Read-only types say so; which types can be deleted is listed under delete_formwork_resource.
Documents and Records
document — a QMS document written in Formwork (SOP, plan, procedure, work instruction). Draft → under review → approved. Filters: status (draft, under_review, approved, review_rejected), query, folder_id. Create: required title and content, unless template_id is given (they then default to the template's; left out without a template, they come back under invalid as blank, not under missing); optional folder_id, attachment_signed_ids. Update: title, content; relations attachment_signed_ids, remove_attachment_ids, folder_id (move). Reads return version, content and attachments.
custom_file_document — a QMS document uploaded as a file. Read its file with read_formwork_attachment and file_attachment_id; search matches its text too. Filters as document. Create: required file_signed_id; optional title, folder_id, convert_to_markdown (when true, an AI job turns the file into a native document shortly after and removes the uploaded one; PDFs up to 30 MB only). Update: title; relation folder_id (move). Reads return filename, file_content_type and file_attachment_id.
google_doc_document — a QMS document backed by a Google Doc or Sheet; google_doc_url links to it. Its content is not readable through MCP (search still matches it). Not creatable. Filters as document. Update: relation folder_id (move) only.
record — evidence written in Formwork (meeting minutes, checklists, audit logs), QMS-wide or scoped to a product release. Draft → under review → released. Filters: status (draft, under_review, released, review_rejected), product_release_id, product_id, qms (true for QMS-wide only, false for product records only), folder_id, query. Create as document. Update as document, plus relation amendment_comment to amend a released record. Reads add product_name, version_title, product_release_id, and have no version.
custom_file_record — evidence uploaded as a file. Filters as record; create, update and reads as custom_file_document, plus relation amendment_comment and the read fields product_name and version_title.
google_doc_record — evidence backed by a Google Doc or Sheet; its content is not readable through MCP. Not creatable. Filters as record; update as google_doc_document.
folder — container for documents or records. Filters: query, parent_folder_id, product_release_id, product_id, content_type (documents, records). Create: required title, parent_folder_id. Update: title; relation parent_folder_id (moves the folder with its contents). Reads return full_path.
comment_thread — a comment thread on a document or record (threadable_type is one of the six document and record types). Filters: resolved, threadable_type, threadable_id (pass the last two together). Create: required threadable_type, threadable_id, content (starts a thread with a first comment). Not updatable; reading returns the thread's comments and, for anchored threads, the quote it discusses. Resolving is in-app only.
comment — one comment in a thread. Filter: comment_thread_id. Create: required comment_thread_id, content. Not updatable; resolved threads are read-only. Only your own comments can be deleted.
review — read-only. A review on a document, record, CAPA, incident, change request or batch review. Filters: status (waiting, approved, rejected), reviewable_type, reviewable_id (pass both together; one alone is ignored). Reads return comment, criteria and requester, and reading one review adds review_requests: each reviewer role's decision (status), comment, reviewer and completed_at. Cancel a waiting review with dispatch_formwork_agent.
activity — read-only. The event timeline of an item (created, edited, archived, released, review requested, review approved, ...), newest first. Filters: trackable_type (any casing or plural form), trackable_id (the item's id or the recording id from its permalink); pass both together; with neither, the result is empty. Only CAPAs, change requests, documents, records, folders, incidents, non-conformities and reviews have a timeline.
Quality Processes
capa — corrective and preventive action. Filters: query, status (open, closed). Create: required title, description; optional detected_at (defaults to today), document_ids, custom_file_document_ids, google_doc_document_ids, record_ids, custom_file_record_ids, google_doc_record_ids. Update: title, description, detected_at, root_cause_analysis, potentially_adverse_implications, verification, validation, incident_id, root_cause_analysis_completed_at, actions_defined_at, verified_at, validated_at; relations the six document and record links, amendment_comment.
capa_action — one action inside a CAPA; the CAPA must be a draft. Filter: capa_id. Create: required capa_id, description; optional deadline_kind (date, description), deadline_at (YYYY-MM-DD), deadline_description, verified_at (YYYY-MM-DD, marks the action done), verification. Without a deadline, deadline_at defaults to one year from today. Update: the same fields except capa_id.
non_conformity — a process or product not meeting a requirement, optionally linked to a CAPA and an incident. Filters: query, status (open, closed), severity (minor, major), capa_id. Create: required title, description, detected_at; optional capa_id, incident_id, severity, document_ids, custom_file_document_ids, google_doc_document_ids. Update: title, description, severity, detected_at, notified_body_validation, audit_evidence, correction, capa_id, incident_id; relations the three document links.
incident — a post-market event on a product. Filters: query, product_id, serious, status (draft, released). Create: required title, description, product_id, incident_category_id; optional happened_at, serious, record_ids, custom_file_record_ids, google_doc_record_ids. Update: title, description, serious, happened_at, incident_category_id; relations the three record links, amendment_comment.
incident_category — a product's own incident taxonomy; resolve one before creating an incident. Filters: query, product_id. Create: required product_id, title; optional description. Update: title, description.
change_request — a proposed change to a product, or to the QMS itself when product_id is omitted. For a product, significant_change follows MDCG 2020-03; for the QMS it means a substantial change (MDR Annex IX 2.4). Filters: query, product_id, product_release_id, capa_id. Create: required title, significant_change, significant_change_rationale; optional product_id, description, product_release_id (product change requests only; omit to scope to a future release), capa_id, document_ids, custom_file_document_ids, google_doc_document_ids (the CAPA and document links are for QMS change requests only). Update: title, description, significant_change, significant_change_rationale, product_release_id, capa_id; relations the three document links, amendment_comment.
supplier — an entry in the list of qualified suppliers. criticality_or_custom is a criticality (A = yearly, B = every 2 years, C = every 3 years) or a custom cycle such as 18 months; last_evaluated_on and next_evaluation_before are derived from released evaluation records and not writable. Filters: query, category, status (draft, approved, blocked). Create: required title; optional description, category, criticality_or_custom, status, record_ids, custom_file_record_ids, google_doc_record_ids. Update: those fields; relations record_ids, custom_file_record_ids, google_doc_record_ids (the evaluation records).
People, Roles and Training
company — read-only. The one company this connection belongs to; returns name.
user — read-only. A member of the company: name, email. Filters: query, role_id.
role — a company role; users belong to roles, trainings are assigned to roles. Creating, updating or deleting requires admin access, and a role that owns documents can't be deleted. Filters: query. Create: required title; optional description, user_ids, training_ids. Update: title, description; relations user_ids, training_ids, owned_document_recording_ids (the recordings of the documents the role keeps owning; it can only take ownership away, never add it).
training — a training assignable to roles; validation_kind is simple (a checker confirms) or quiz (auto-graded questions). Filters: query, validation_kind. Create: required title; optional description, validation_kind, due_within (no_due_date, one_week, one_month), minimum_required_quiz_score, in_person, checker_role_id, document_ids, custom_file_document_ids, google_doc_document_ids (approved documents as material), role_ids. Update: the same fields; relations the three document links, role_ids. A quiz training refuses every update until it has at least one question, so add its training_questions right after creating it, and a simple training can't be switched to quiz through MCP. Reads add per-status user counts.
training_question — a multiple-choice question on a quiz training. Filter: training_id. Create: required training_id, content, options (an array of { content, correct }, at least two, exactly one correct). Update: content only; recreate the question to change options.
training_request — read-only. One user's assignment of a training. Filters: training_id, user_id, status (pending, overdue, completed, checked). Reads return due, completed and checked dates plus user_name and training_title, the files the trainee uploaded (attachments), and the training's documents and training_attachments as they were when the request was sent.
Tasks
task_project — a project of to-do tasks; kind is regular, template, onboarding (read-only) or roadmap. Filters: query, kind. Create: required title. Update: title. Reads return tasks_done and tasks_total.
task_group — a group of tasks in a project. Filters: query, task_project_id. Create: required title, task_project_id. Update: title.
task — a to-do item, optionally linked to the item it is about (taskable_type + taskable_id: documents, records, CAPAs, incidents, non-conformities, change requests, suppliers, risk items, user needs and design inputs). Filters: query, done, task_project_id, task_group_id, assigned_user_id, taskable_type, taskable_id. Create: required title; optional description, task_group_id, task_project_id (omit both to use the company's default project), taskable_type, taskable_id, assigned_user_ids, remind_at. Update: title, description, done, remind_at, task_group_id; relation assigned_user_ids. Completing a recurring task opens its next occurrence as a new open task.
Products and Releases
product — a medical device; creating one also creates a draft v0.1.0 release. Filters: query. Create: required name, kind (software, hardware, software_and_hardware), description; optional safety_classification (A, B, C). Update: those plus setting_design_outputs, setting_detailed_designs, setting_p0.
product_release — a release of a product; most technical documentation lives on a release, and it is editable only while in draft. Not creatable through MCP. Filters: product_id, product_name, status (draft, released), query. Update: title, description. Reads return title_with_product.
Design Controls
All types here belong to a product release (product_release_id is required on create and, except on test runs, is a filter) and, except test runs, run sets and design-input systems, carry status (draft, under_review, approved, rejected) as a filter and read field. Most also carry for_future, deleted and change_history; see the note on product-release items above for the exceptions.
stakeholder — a person or group affected by the device. Create: required title, description; optional user_need_ids. Update: title, description; relation user_need_ids.
user_need — what a stakeholder needs the device to do. Create: required title, description; optional stakeholder_ids, design_input_ids, user_test_ids, hazard_ids. Update: title, description; relations stakeholder_ids, design_input_ids, hazard_ids, user_test_ids.
user_test — verifies user needs, with structured steps and expected results. Create: required title, description, steps, expected; optional user_need_ids, risk_control_ids. Update: title, description, steps, expected; relations user_need_ids, risk_control_ids.
user_test_run_set — a user test session (UTR); each included test becomes a user_test_run. Filters: query. Create: required title; optional description, user_test_ids. Update: title, description; relation user_test_ids. The runs follow the order of user_test_ids: send every id to only reorder, as leaving a test out destroys its run and any recorded results. Once its release is released, a run set that was part of it can no longer be edited. Reads return status_counts.
user_test_run — one test's execution in a run set; created by including the test in the set, never directly. Filters: user_test_run_set_id, status (planned, success, partial_success, failure, skipped). Update: status, results; relations attachment_signed_ids, remove_attachment_ids (evidence files). instructions, steps and expected are copied from the test and read-only.
design_input — an engineering requirement derived from user needs (shown as "Software Requirement" for software-only products). Filters add design_input_system_id and kind (software, hardware, system). Create: required title, description, kind (always required; on single-kind products its value is ignored and set from the product), category_or_custom; optional design_input_system_id, user_need_ids, detailed_design_ids, system_test_ids, design_output_ids, failure_mode_ids, risk_control_ids. Update: title, description, kind, category_or_custom; relations as the optional create fields.
design_input_system — a subsystem grouping design inputs; systems can nest. Filters: parent_id, query. Create: required title, prefix; optional description, parent_id. Update: title, prefix, description; relation parent_id. Only while the release is a draft and the design inputs list has no review, waiting or done.
design_output — a verifiable artifact satisfying design inputs; only when the product has design outputs enabled. Create: required title, description; optional design_input_ids, system_test_ids, record_ids, custom_file_record_ids, google_doc_record_ids. Update: title, description; the same relations. The record links take only the newest version of records in this release's Records folder.
detailed_design — an implementation spec refining a design input; only when the product supports detailed designs. Create: required title, description; optional design_input_ids. Update: title, description; relation design_input_ids.
system_test — verifies design inputs (shown as "Software Test" for software-only products). Create: required title, description, steps, expected; optional design_input_ids, design_output_ids, risk_control_ids. Update: title, description, steps, expected; the same relations.
system_test_run_set — a system test session (STX). As user_test_run_set, with system_test_ids.
system_test_run — as user_test_run, with system_test_run_set_id.
Risk Management
Same conventions as design controls: each belongs to a product release and, except the severity and probability categories, carries status, and most carry for_future, deleted and change_history.
preliminary_hazard — an early hazard-analysis entry. Create: required title, description; optional hazard_ids. Update: title, description; relation hazard_ids.
hazard — a source of potential harm. Create: required title, description; optional user_need_ids, preliminary_hazard_ids, failure_mode_ids. Update: title, description; the same relations.
hazardous_situation — circumstances under which a hazard can cause harm. Create: required title, description. Update: title, description.
harm — an injury or damage, rated with a severity category. Create: required title, description, severity_category_id. Update: title, description, severity_category_id.
severity_category — a severity tier of the release's risk matrix. Not creatable. Filters: query. Update: title, description.
probability_category — a probability tier of the risk matrix. Not creatable. Filters: query. Update: title, description, lower_limit, upper_limit.
risk_table_entry — one row of the risk table: one hazard, one hazardous situation, one harm, with probabilities. Filters add hazard_id, harm_id; there is no query filter, as entries have no title. Create: required hazard_id, hazardous_situation_id, harm_id, p1, p2, description; optional p_reduction, risk_control_ids. Update: description, p0, p1, p2, p_reduction, hazard_id, hazardous_situation_id, harm_id, severity_category_post_id; relation risk_control_ids.
risk_control — a mitigation; kind follows the ISO 14971 hierarchy: inherently_safe_design, protective_measure, information_for_safety, training. Filters add kind. Create: required title, description, kind; optional design_input_ids, system_test_ids, user_test_ids. Update: title, description, kind; the same relations.
failure_mode — a way the device can fail, traced to hazards and design inputs. Create: required title, description; optional hazard_ids, design_input_ids. Update: title, description; the same relations.
Worked Example: Filing Test Evidence from a Pipeline
query_formwork_resourceswithresource_type: "product_release",filters: { product_name: "MyDevice", status: "draft" }to find the release.create_formwork_resourcewithresource_type: "system_test_run_set",attributes: { title: "CI run 2026-09-06", product_release_id: ..., system_test_ids: [...] }.query_formwork_resourceswithresource_type: "system_test_run",filters: { system_test_run_set_id: ... }to get the run ids.upload_formwork_filewithfilenameandbyte_size, then POST the report to theupload_url.update_formwork_resourceon eachsystem_test_runwithattributes: { status: "success", results: "...", attachment_signed_ids: [...] }.
The run set has no author field; its ai_created read field names the token (or the AI app) that created it. Each run's update records the token's owner as the person who assessed it. Test run sets have no review of their own; they become part of the release when a person releases it in Formwork.