MedVertical
Open menu

Developers · Records MCP server

Give agents tenant-scoped validation context.

Expose validation, issue explanation, quality scores, and run comparison through a workspace-issued agent-tools key.

Available with Records deployments

Smallest useful example

Start from a deployment-issued scope.

The MCP process belongs to a Records deployment. Its key and tenant scope are provisioned before an agent can request validation or run context.

Start the MCP serverShell
npm run --silent mcp:serve

Expected contract

What comes back

Bounded tool responses for validation, issue explanation, quality context and comparison of existing runs—not workspace administration.

PrerequisiteA Records deployment and workspace-issued agent-tools scope
Can readTenant-scoped validation, findings, quality scores and existing run comparison
Cannot changeServers, settings, keys, baselines or the connected FHIR system

One input, a concrete finding, a verified correction.

An actual Records validator-tool execution on assistant-authored synthetic FHIR. Six information findings remain after the correction.

Validate a resourceJavaScript
validate_resource({ resource, fhirVersion: "R4" })
1 · Input · ExcerptJSON

patient-before.json

{  "active": "true"}
String instead of boolean
2 · Finding · ExcerptJSON

Patient.active

{  "message": "Primitive type mismatch for Patient.active: expected boolean, found string"}
1 error
3 · Correction · ExcerptJSON

patient-after.json

{  "active": true}
0 errors · 6 information

Change Patient.active from "true" to true. Revalidation resolves the type error; six information findings remain.

Synthetic FHIR R4 · Validator 0.6.4 · Executed locally on 15 September 2026

View complete JSON
Agent · InputJSON

String instead of boolean

{  "resourceType": "Patient",  "id": "synthetic-cli-patient",  "active": "true"}

The calling application or reviewer decides the next action.

Built for one clear integration job

Choose the functions your integration needs.

Validate resources

Return normalized findings, counts, and a score for a request-local resource and profile.

Explain findings

Give the agent a bounded explanation, suggested fix, and specification links.

Read quality context

Query tenant-scoped scores and compare two existing Records runs without exposing administration.

Saved runs, comparisons and reports require a Records workspace.

Scope

The boundary

Know what this surface owns before you put it into a workflow.

What remains outside this surface

The agent-tools scope cannot create or delete servers, change settings, manage keys, establish baselines, or mutate the connected FHIR system.