Building on Lithos · Part 6 of 6

Building on Lithos, Part 6: give your AI assistant the ability to order care

An assistant that can book a restaurant but can’t request a refill is leaving its users at the most important errand they have. Part 6 of the integration series is about giving it that ability safely: the tools, the order they run in, what the agent may and may not do, and Lithos’s MCP server, now in preview.

TL;DR

A healthcare MCP server lets an AI assistant request care through tools that mirror a clinical API: find the patient, precheck their state, open a care plan, submit an encounter and follow status. There’s deliberately no prescribe tool; a licensed provider in the patient’s state decides. Your product owns consent, identity, intake and logging. The infrastructure enforces licensure, modality rules and the provider’s signature on every request. Lithos offers these actions over REST today and through an MCP server in preview.

What the agent does, and what it never can

An AI assistant can order care through about eight tools that mirror the clinical API: find the patient, precheck, open a care plan, submit an encounter, then follow status. None of them prescribes. A licensed provider in the user’s state makes that decision, and on Lithos the actions are available over REST today and through an MCP server in preview.

Picture a user nine months into a maintenance medication telling their assistant, “I’m running low, sort out my refill.” Every step of that errand is mechanical except whether to renew. Split the work that way:

Your assistant and product ownLithos enforces on every request
Sign-in, consent and identity proofingRouting only to providers licensed in the patient’s state
The intake conversation, answers kept verbatimState modality rules: async or a live visit
Choosing a treatment from the catalogProtocol eligibility
Relaying questions and reporting decisionsThe provider’s review and signature, then orders
Logs and transcripts under your access controlsAn audit trail of who decided, when and why

This is Part 6 of Building on Lithos. Earlier parts covered the four integration patterns, the API and the event stream.

The tool set is a thin layer over the API

Each tool maps to one or two calls, so every action leaves the same trail as a call from your backend. The names are descriptive; the MCP preview’s may differ.

ToolUnderlying APIWhat the agent uses it for
Find or create patientpatients (GET, POST, PATCH)Map the signed-in user to a patient by your external ID
List treatmentscatalog_treatments (GET)See what the program offers instead of inventing a request
PrecheckGET /v1/encounter_precheckLearn whether a request is possible here, and whether it must be live
Open care plancare_plans (POST, GET)Start care in a category such as weight_management
Find and hold a slotappointment_slots, slot_reservationsOffer live-visit times where the state requires video
Submit encounterencounters (POST)Send intake and the requested treatment for review
Check statusencounters, orders (GET)Report the request and, later, the order
Message the care teaminquiriesRelay a question or the patient’s answer

No tool approves an encounter, writes a prescription, changes a dose or signs a lab requisition. An encounter moves from pending_review to in_review to completed only through a provider’s action, and orders appear only then. A prompt that says “never prescribe” is one creative user from failing. A tool that doesn’t exist can’t be talked into anything.

Run a care request in nine steps

  1. Authenticate. Act only for the signed-in user. Leave caregiver flows out of version one.
  2. Consent. Show telehealth informed consent as approved text, never paraphrased, and record acceptance with a timestamp.
  3. Identity. Complete identity proofing. If it fails, hand off to a person.
  4. Find or create the patient with confirmed demographics, including state of residence.
  5. Precheck. If the state requires a live visit, offer slots, hold one and send the reservation with the encounter.
  6. Intake. Ask the program’s questions and send what the user actually said. A model-written summary goes in a separate field.
  7. Submit the encounter with a catalog treatment.
  8. Follow status by webhook and the status tool. Tell the user plainly: “A licensed provider is reviewing your request.”
  9. Report the decision in the provider’s words, then track the order to the pharmacy.
agent toolslicensed actSign-inyour authConsentrecordedIdentityproofedPatientfind/createPrechecklive visit?IntakestructuredSubmitencounterProviderdecidesReporttheir wordsHold a live-visit slotwhere the state requires videoreservation rideswith the encounterno tool approves, prescribes, changes a dose or signs anything
The order an assistant runs a care request in. Steps one to seven are tools the agent calls; the decision is a licensed provider’s action that no tool can reach, and the assistant then reports it in the provider’s words. Where a state requires video, precheck says so and the agent holds a slot.

Step 6 is where first builds go wrong. The model condenses the answers into a tidy paragraph, and the provider ends up reviewing the model’s reading of the patient. Keep the raw answers.

Bring one conversation you want your assistant to handle, a refill or a new request, and we’ll map it to these tools and walk your engineers through the MCP preview on a call. Book a call.

The agent can request, never decide

The agent can explain the program, collect consent and intake, submit a request, book a required live visit and relay the provider’s questions and decisions. It can’t recommend a treatment, prescribe, change a dose or answer clinical questions itself, and none of those limits depends on the agent behaving well. The rules hold whether a request came from your web form, your backend or a model calling a tool. If you’re still deciding what an AI company needs clinically, start with putting licensed providers behind your AI health product.

agent: submit encounterpending_reviewprovider opensin_reviewprovider signs offcompletedorders and patientmessage populateagent: check status, reportneeds infoanswer returnedescalatedpatient_information_requiredagent: relay the questionverbatim, collect the answerno agent tool touches in_review → completed
The encounter states an agent can see versus the ones it can move. Its tools create the request, relay answers while the case is escalated, and read status; only a licensed provider’s action takes an encounter from in_review to completed, which is when orders appear.

Escalate three ways

  • Urgent symptoms stop the care flow for emergency guidance. Check before every tool call, in code and in the model’s instructions. A missed emergency is the worst failure here, so it gets two layers.
  • Clinical questions (“Is it safe with ibuprofen?”) become an inquiry to the care team, even when the model knows a plausible answer.
  • A provider who needs more moves the encounter to escalated with patient_information_required. The agent relays the question verbatim and returns the answer. It never coaches toward approval; read transcripts to check. Where AI stops has the full taxonomy.

Log enough to show why an encounter exists

For every clinical tool call, record the signed-in user, the tool and arguments, the consent version and time, the identity result and the conversation turn that triggered it. Store intake answers separately from any summary, and log the encounter ID so your records join to it. Transcripts contain PHI, so keep them under the chart’s access controls.

The test: if a provider, an auditor or the user asks why an encounter exists, you can show the moment they asked and what they agreed to. The same records feed the ops fan-out in Part 5, wiring clinical events into Slack and your CRM.

Use REST in your backend, MCP for MCP-native clients

Lithos’s MCP server is in preview with design partners as of late 2026. The REST API is available today and covers everything above.

  • Agent runs in your backend: call REST from your own tool implementations. You keep full control of consent screens, logging and PHI handling.
  • Building for an MCP-native client, or prototyping fast: join the preview.

Either way, every party touching PHI, the model provider included, needs to be in your BAA chain.

Before real users, script the conversations that matter in the sandbox: a live-visit state, a provider follow-up, a declined request, a canceled order. Read every transcript. For a full worked flow, see refilling medication with AI.

Lithos gives your assistant licensed clinical infrastructure to call: patients, care plans, encounters, live-visit booking and order status over REST today, and as tools through our MCP server in preview. AI prepares the chart; a licensed provider in the patient’s state reviews and makes the clinical decision. We’ll walk your team through the API and the MCP preview. See Lithos for AI agents, start in the free sandbox, or book a call.

Frequently asked questions

Can an AI assistant order medication for a user?

It can request care by submitting the user’s intake and the requested treatment as an encounter. A licensed provider in the user’s state reviews it and decides whether to prescribe. The assistant then reports the decision and tracks the order.

What is a healthcare MCP server?

A healthcare MCP server uses the Model Context Protocol to expose actions such as creating a patient, submitting a care request and checking its status as tools an AI model can call. Lithos’s MCP server is in preview with design partners as of late 2026; the same actions are available today through the REST API.

Why is there no prescribe tool for AI agents?

Prescribing is a licensed act, so the tools only let an agent request care and follow it. Leaving the tool out makes the boundary part of the system instead of an instruction in a prompt.

How should an AI assistant handle consent and identity before ordering care?

Show the approved consent text, record explicit acceptance with a timestamp, and complete identity proofing before any clinical tool call. Never infer consent or submit a request for anyone but the signed-in user.

What happens when the provider needs more information from the patient?

The encounter moves to escalated with the reason patient_information_required. The assistant relays the provider’s question word for word and sends back the user’s answer, without coaching.

Get started

Put a medical practice behind your product

Book a call and we'll scope your program together, or get free sandbox access and start building.

Book a call Get sandbox access

Free to startNo setup or platform fees