Lab Result Integrity
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lab Result Integrityscreen this potassium result for delta check and HIL interference"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lab Result Integrity
Integrity agents for clinical laboratory results. They screen numeric results for problems the laboratory's own data can reveal, assemble a cited, hashed evidence packet for anything suspicious, and queue it for a pathologist. They never release, verify or autoverify a result: release stays with the LIS's validated rules or a human.
Results ─▶ Trend Analysis ─▶ Interference Detection ─▶ Patient-based QC
─▶ Evidence Collection ─▶ Pathologist Review ─▶ Human decisionCapabilities
Capability | Implementation |
Delta checks | Most recent prior result inside a per-analyte window; absolute and/or percent limits, |
Trend analysis | Least-squares slope (units/day) over the analyte's trend window |
Reference and critical ranges | Age bands and sex; unknown sex evaluated against the narrowest combined interval; critical limits make cases |
Interference detection | HIL (hemolysis, icterus, lipemia) index rules per analyte with bias direction and flag/withhold action |
Implausible combinations | Same-specimen rules, e.g. hemolysis with high potassium, K2EDTA carry-over (high K, low Ca), delayed separation, dextrose-line contamination |
Plausibility and units | Physiologically implausible values and unit mismatches hold the result |
Patient-based real-time QC | SMA or EWMA over truncated patient results per instrument and analyte; alarm, look-back list, recovery; shared across replicas |
Evidence packet | Result, prior results, findings with citation text, specimen results, QC snapshot, catalogue digest, provenance record, SHA-256 digest |
Pathologist review queue | Priority and SLA from the catalogue, claims, director override, decisions bound to the evidence digest, escalation of overdue cases |
Agent proposals | Agents may propose a disposition; recorded as |
Governed catalogue | Every threshold cites a source; production refuses an unapproved catalogue |
Never-release invariant | No route, tool or skill releases; the service refuses to start under a policy that would let an agent release or decide |
MCP | Official |
A2A | Agent Card at |
Identity | Enterprise OIDC and agent-identity-fabric credentials; local policy plus fabric authorization, most restrictive wins |
Narrative (optional) | De-identified, advisory draft via the agentic-core model router with ContentGuard on input and output |
Audit | Hash-chained, Ed25519-signed events per replica; verification endpoint |
Observability | Prometheus metrics, OpenTelemetry traces, JSON logs with correlation IDs, SLO alerts, Grafana dashboard |
Shared controls (policy engine, audit chain, model router, content guard, logging, telemetry) come from agentic-core.
Related MCP server: Medical Calculator MCP Server
Analyte thresholds
All thresholds live in configs/analytes.yaml. The
shipped catalogue is a starter: typical values chosen so the rules run on
synthetic data, each tagged with the source category it should be verified
against (CLSI EP28, GP47, EP33, C56, EP07, Badrick et al. 2019, 42 CFR 493).
They are not clinical guidance. A laboratory replaces them with its own
verified values and marks the catalogue approved; the service refuses a
starter catalogue in production. See
ADR 0003.
Quick start (local)
Requires Docker. No API keys or cloud credentials are needed; all data is synthetic.
docker compose up --build
curl -s localhost:8080/.well-known/agent-card.json | jq .skillsThe compose stack runs PostgreSQL, an OIDC provider standing in for the enterprise IdP, and an OpenTelemetry collector.
Development
uv sync
make check # ruff, black, mypy --strict, bandit, contracts, tests (coverage >= 90%)
make integration # PostgreSQL integration tests (needs LRI_TEST_DATABASE_URL)
make helm terraform audit-depsTest suites: tests/unit (rules, catalogue, PBRTQC, review state machine,
service, auth, fabric client, container), tests/security (attacks mapped to
the threat model), tests/chaos (dependency failures, contention, resume),
tests/performance (latency budgets; locustfile.py for load),
tests/e2e (HTTP lifecycle, MCP, A2A, property-based OpenAPI contract test),
tests/integration (PostgreSQL).
API
Endpoint | Caller | Purpose |
| LIS middleware, agents ( | Screen a batch; returns dispositions, findings, case IDs |
| Staff, agents ( | Result with outcome and review state |
| Staff, agents | Prior results and trend |
| Staff, agents ( | Cases by priority and due time |
| Staff, agents | Case with evidence packet |
| Pathologist, lab director | Human review |
| Agents ( | Proposal pending human approval (202) |
| Staff, agents ( | Moving-statistic state per instrument and analyte |
| Staff, agents | Catalogue governance, digest, sources |
| Auditor, lab director | Verify this replica's audit chain |
| MCP clients | Tools: |
| A2A peers | Skills: |
Full contract: docs/api/openapi.json; JSON Schemas in schemas/.
Deployment
Layer | Location |
Container image |
|
Helm chart |
|
Namespace and secret sync |
|
Cloud infrastructure |
|
See the start-up runbook.
Documentation
Runbooks: startup, monitoring, incident response, PBRTQC alarm, review SLA breach, catalogue change, rollback, disaster recovery
License
Apache-2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
Workflow diagnostics, capability routing, and x402 settlement for MCP-compatible agents.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
Agent-driven search: build, import, tune, search, and score result quality — all over MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to programmatically inspect, test, and validate other MCP servers by exposing MCP Workbench capabilities as structured tools. It supports automated test spec generation, execution, and detailed failure analysis to ensure server reliability.414 npmApache 2.0
- AlicenseAqualityBmaintenanceProvides validated clinical scoring tools for AI agents via MCP, with evidence-based calculators and smart tool discovery.64Apache 2.0
- AlicenseAqualityBmaintenanceProvides governed retrieval over MCP with hybrid search, strict confidence gating, and access control, exposing three read-only tools.3Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to discover and invoke seven specialist tools—research, finance, risk, compliance, strategy, verification, and report—for orchestrating, validating, and synthesizing enterprise decision workflows.1 npmMIT