Skip to content
< all work

Agents & MCP · Open-source experiment · 2026

One agent, five frameworks: a clinic intake benchmark

I built one clinic intake agent five times, in LangGraph, CrewAI, Strands Agents, Microsoft Agent Framework and Google ADK. All five share one MCP server, one prompt and one mechanical scorer over 55 patient messages.

agent-systemsmcpevaluation

Accuracy did not separate the frameworks: 84.8% to 87.3% of messages fully correct, and all 8 emergencies caught in every run. What reached the model did differ, and photo handling put Google ADK at $0.05 per run against $0.02 for the rest.

Role
Sole engineer
Stack
Python · LangGraph · CrewAI · Strands Agents · Microsoft Agent Framework · Google ADK · MCP · OpenAI API · FastAPI · PostgreSQL · Vue · Arize Phoenix · OpenInference · faster-whisper · Playwright
One message, one framework, one run: the agent's tool calls, then its ticket checked against the answer key.

Context

Teams picking an agent framework mostly compare feature lists. I wanted to know whether the framework changes what a tool-calling agent gets right, so I held everything else fixed and swapped only the framework.

The test needed a real job. I built Inlet, a helpdesk for a fictional network of four family clinics. Patients write in by voicemail, SMS, email and a web form. An intake agent reads each message and files one ticket for the right queue. Every clinic, patient and message is made up.

The problem

Framework comparisons are hard to make fair. Each framework has its own prompt wrapping, its own MCP client and its own way of passing tool results back to the model. Small differences there can look like accuracy differences, and a small test set can make noise look like a ranking.

Intake also has a failure that matters more than the others. A voicemail that plays down chest pain has to reach the triage nurse as an emergency, however the caller frames it.

What I built

  • Inlet itself. A FastAPI and Postgres backend with a Vue staff app. SMS arrives as Twilio-style webhooks, email goes through a local mail server, and voicemails are audio files transcribed by faster-whisper.
  • 55 hand-written messages from one working week, in English, French, Punjabi, Mandarin and Tagalog. They include red flags played down, two requests in one message, duplicates across channels and spam. Each has an answer key: the ticket a careful person would file.
  • One MCP server with nine tools. Every framework connects to it unchanged. Two of the tools, booking an appointment and replying to the patient, are traps that intake never needs.
  • Five adapters, one per framework, each its own uv project, all reading one shared prompt.
  • A runner and a mechanical scorer. The scorer compares each ticket with the answer key field by field. A missed emergency fails the message outright. The answer key lives in a separate database schema that the API never reads, so an agent can only match it by doing the work.
  • Tracing in Arize Phoenix. One OpenInference instrumentor per framework, one Phoenix project per framework, one trace per message, with the scorer's verdict attached as annotations.
  • A Results page with the leaderboard, safety, accuracy by field, reliability, cost and a matrix of every message.

How the test bench fits together: patients write to the Inlet helpdesk, the runner hands one message at a time to the intake agent, the agent acts only through nine MCP tools, and the scorer checks tickets against an answer key no agent can reach.

How it works / key decisions

  • Same model, prompt and tools for all five. The model was OpenAI's gpt-6-luna over Chat Completions with reasoning effort set to none.
  • The message is the unit, not the run. Each framework ran three times. Three runs of one message are not independent, so intervals come from a bootstrap over messages and pairwise comparisons from a paired permutation test.
  • One instrumentor, not two. Stacking the OpenAI SDK instrumentor on top of a framework's own would duplicate the model spans, so it stays off.
  • Record what reaches the model. I logged the requests each framework actually sent. That is where the frameworks differed: added prompt text, rewritten tool schemas, photos and tool errors.
  • Disclose every adapter choice. CrewAI's recommended MCP route dropped empty arguments a ticket needs, so its adapter uses MCPServerAdapter instead. Each adapter's README lists its choices and why.
  • Tests first. Every suite fails below 90% line coverage, and the end-to-end tests run against their own API, database and mailbox.

Results

Study 1 ran on November 16, 2026: 15 runs, five frameworks, three runs each, $0.35 in total.

  • Accuracy did not separate the frameworks. Between 84.8% and 87.3% of messages came out fully correct, and every framework's range across its runs overlaps the others'.
  • Safety was the same everywhere. All five caught all 8 emergencies in every run, and none used a trap tool.
  • Cost and speed differed. Google ADK sends photos to the model as base64 text, which put its cost per run at $0.05 against $0.02 for the rest. CrewAI was the slowest, at a median of 10 s per message.
  • Adapters are small. Each one is between 141 and 183 lines of code.

The full write-up, with intervals, the prompt diffs and the cost breakdown, is in the article.

What I'd do next

No test message needed its photo, so photo handling cost money but not accuracy here. The next study is a stress set built to separate frameworks: facts that exist only in a photo, tool failures on purpose and longer tool chains.

The Inlet inbox with a French voicemail, its transcript, the matched patient and the empty create-ticket form.
The staff inbox. A French voicemail, transcribed by faster-whisper and matched to a patient.
Raymond's ticket marked Emergency and routed to the triage nurse queue, with the voicemail transcript beside it.
The ticket the answer key expects for Raymond: emergency, triage nurse queue, his own clinic.
A recorded run: 8.3 seconds, six tool calls from get_message to create_ticket, with arguments and timings.
Every tool call is recorded with its arguments and timing, and each message is one trace in Phoenix.
A grid of 55 messages by five frameworks by three attempts: 43 right every time, 3 wrong every time, 9 where the frameworks differ.
Every message, every framework, every attempt. Most rows are right everywhere; the hard ones are hard for all five.
The Results page leaderboard: all five frameworks between 84.8% and 87.3%, all 8 emergencies caught, median time and cost per run.
The leaderboard from study 1. The ranges across runs overlap.