• Skip to primary navigation
  • Skip to main content
Keta

Keta

Supporting the Future of Healthcare IT

  • Home
  • Resources
  • Contact Us
  • 日本語
  • Show Search
Hide Search

MCP

AI Agents in EHRs: A Blocked Agent Doesn’t Go Away, It Just Gets the Narrow API

Simon · November 29, 2026

Why AI agents locked out of EHR screens end up seeing half the chart

There’s an old story, usually told about the Sufi wise fool Nasreddin, of a man searching for his key under a streetlamp. He lost it inside his house, but he’s looking outside because that’s where the light is. The philosopher Abraham Kaplan later called it the “drunkard’s search,” and it’s now better known as the streetlight effect: looking where it’s easy to look rather than where the answer is.

It’s an apt analogy for what happens to AI agents in EHRs right now. Recent debate has been about whether agents should be let in. Josh Mandel proposed that certified EHRs let customers bring their own agents to the screens they already license. HTI-5 deferred ONC’s plan to say that “access” includes agentic AI. Epic said at Open@Epic that its agents would act as MCP clients, then announced at HLTH that it would run an MCP server for external agents too. The National Coordinator gave a candid interview about what comes next.

Less attention goes to what happens when the answer is no. A blocked agent doesn’t go away. It gets the narrow API, and it searches wherever the light is.


Why blocked agents don’t go away

Brendan Keeler summed up the options for a locked-out product in Epic’s Emu War?:

Point solutions that get locked out of a platform have three options: die, get acquired, or go around (rules be damned).

In the US there’s a fourth outcome, and he describes it in the same piece. Under the Manner exception, a vendor can refuse screen access as long as it offers a standards-based alternative, “other supported (but less than ideal) mechanisms.” The agent doesn’t die and doesn’t go around. It’s redirected to whatever API is on offer, and the vendor can say access was provided.

To be fair, this is shifting. In Epic, MCP, and the Right to Click, Brendan reports that since Real Time Medical Systems v. PointClickCare, several EHRs, Epic included, now permit RPA “in specific situations when there is no other method of EHI exchange.” The condition matters, though. Where an API exists, however narrow, that’s still where the agent is sent.

Meanwhile the demand doesn’t change. The practice still wants the work done, the agent’s developer still needs revenue, and the clinician is still behind. So the agent ships with whatever the light reaches.


What’s outside the light

In integration work, the gap between what’s on the screen and what comes through the API is familiar territory. It tends to fall in the same places:

  • Patient messages and inbox items. Message history and the health maintenance list aren’t in USCDI through v7, as Josh points out.
  • Site-built data. Flowsheet rows and SmartForm questions that a health system built for its own workflows.
  • Outside records. Documents received from other organizations but not yet reconciled into the chart.
  • Scanned and free-text content. Referral letters, faxed results, and the context clinicians write into comments rather than structured fields.

Some of this sits in the dark completely. Some of it is under a dim light: an API returns it, but it’s coded to local build, so an agent can’t interpret it without knowing how that site set things up. A flowsheet row called “Pt goals (custom)” is technically available and practically unreadable.

And sometimes an agent uses less light than is available. Brendan’s review of Google’s new Gemini for healthcare found that its Epic connector supports only a subset of USCDI, with no care plans, care teams or goals, and truncates clinical notes at around 20,000 characters. That’s not a criticism of an early launch so much as a reminder of how quickly the visible area shrinks.

The pattern isn’t random. Standard data sets cover what’s common across organizations. The context that matters most in a particular visit is often the part that’s local.


Every site has its own streetlights

There’s a further complication that rarely comes up in policy discussions. The light isn’t the same everywhere.

Which APIs are available depends on what each health system has activated, licensed and configured. Two sites on the same EHR, even on the same version, can expose different things. So the same agent, deployed at two customers, can see different halves of the chart, and its output quality changes from site to site without anyone necessarily noticing.

The boundary also moves over time. Upgrades change what’s exposed, older API versions get retired, and new USCDI versions add elements. Each change shifts where the light falls, and the agent’s blind spot shifts with it.

For a human user, none of this matters much. The screen is the screen. For an agent working through APIs, it’s a moving, site-specific map that someone has to maintain.


Confident in the dark

The real risk is how the agent behaves at the edge of the light.

A clinician who can’t find something knows they couldn’t find it. An agent working through a narrow API returns a tidy, confident summary of everything the light reached. Nothing in it says “the key may be elsewhere.” An agent that can see the whole chart and misses something has a performance problem, and performance can be measured. An agent that can’t see half the chart and doesn’t know it has a different problem: its errors follow the boundary of the data set.

This is why screen access matters more than it used to. Robotic process automation (RPA) earned its reputation for brittleness: an upgrade moves a button and the bot clicks the wrong thing. But today’s agents read a screen the way a person does, and more patiently than most of us at 4:55pm. Keeping agents off the screens used to be justified by fragility. Increasingly, the effect is to push them onto a narrower view.

The insurance market is starting to look at this. Klaimee, a Y Combinator–backed startup selling “insurance for AI agent mistakes,” scores agents A to F and ties premiums to the score, and limits itself to “non-safety-critical” use cases. Clinical agents sit right on that line. “What can your agent see, and does it know what it can’t?” seems likely to become a standard underwriting question before it becomes a regulatory one.


More streetlights won’t light the house

The obvious answer is better APIs. But with Epic, the problem isn’t a shortage of APIs. Epic has so many you need an API to find the API.

Quite literally: at Open@Epic in October, Epic announced an MCP server for its public API documentation, so developers can ask an AI which endpoint they need. Brendan covered it in Moat Context Protocol, along with Agent Factory Connectors, which let Epic’s own agents call out to third-party Model Context Protocol (MCP) servers. At HLTH, Epic added the reverse: an MCP server that external agents can call. Two points stand out:

  • A new protocol doesn’t move the light. As Brendan notes, “often MCP servers are just wrappers over existing APIs.” Epic’s HLTH announcement bears that out. Its Connectors page says it “will start by making capabilities from its FHIR APIs available as MCP tools,” letting agents “read data available through Epic’s USCDI v5 FHIR R4 APIs.” That’s a brighter bulb in the same lamppost.
  • The two directions aren’t symmetric. Connectors let Epic’s agents reach out to other systems and take action. The new server lets external agents read the USCDI data set, in a backend context, with more tools promised “over time.” Useful, but the light falls in the same place it did before.

As Brendan put it after the panel, “every API (FHIR or proprietary or MCP) only covers what a vendor chose to expose.” ONC appears to be heading toward MCP too. The HTI-5 final rule mentions it by name, and Brendan expects HTI-6 to require it in some form. If that requirement covers only what certified APIs already cover, the result is a nicer streetlight and the same dark house.


The council and the clock

On a16z’s Raising Health podcast, Dr. Tom Keane invited developers to “please bring to us the frictions that you’re having,” adding that most of them come from “the normal operations of the market,” not bad actors. Brendan’s write-up, Unleash the Coordinator, covers the interview in detail.

That’s a welcome change, and it matches what integration teams see day to day: most stalls trace back to a full support queue, not malice. The difficulty is timing. HTI-5 took ten months from proposed to final rule and lost its information blocking changes along the way. HTI-6 was expected in the summer, then “this fall,” and is still to come as a proposed rule. Agents change every few months. By the time the council votes on a new streetlight, agents will have been working under the old one for a long time.

Keane also described a test for spotting “competitive moats masquerading as privacy and security concerns”: “are affiliates and non-affiliates treated differently?” That test applies naturally here. If a vendor’s own agents can see the whole house and a customer’s chosen agent gets the streetlight, the difference is easy to spot.


Knowing where the light ends

Letting customers’ agents use the screens they already license, as Josh proposes, is one way to light the whole house. Brendan’s post-HLTH list points the same way, including “formalizing RPA and computer use via a sanctioned program with clear rules and documentation.” Either approach also changes vendors’ incentives: once the screen is always available, the best way to keep control is to offer an API that agents would rather use.

Until then, the most useful thing anyone building or buying an agent can do is map the boundary. For each site, list the data elements a clinician sees on the screens the workflow touches, mark which ones the integration can’t reach, and revisit the list after each upgrade. It’s a short document. It turns “the agent missed something” from a surprise into a known limit, and it’s exactly the kind of friction report Keane is asking for.

A blocked agent doesn’t go away. It just gets the narrow API. The least we can do is know where the light ends.


Keta is a healthcare technology company based in New York and Tokyo, please don’t hesitate to get in touch.

Tokyo

Aoyama Ezaki Bldg 3F, 1‑1‑16 Shibuya, Shibuya-ku, Tokyo 150‑0002

New York City

Work Heights, 506 Warren St, Brooklyn, NY 11217

Simon Johnson

Simon is the lead architect for JupyterHealth and has spent more than six years designing Epic integrations, helping startups like Sapien Health go from zero to one and deploying clinical applications at major health systems across the US.

    Maxime Guilbot

    Maxime is the founder of Ekohe and has been based in Tokyo for more than a decade, helping companies across Asia adopt AI and build software.

      Copyright © 2026 Keta