# Your MCP Server is Bad (and you should feel bad) - Jeremiah Lowin, Prefect
<!--
ref: @content/youtube/aie/2026-03-04-your-mcp-server-is-bad-and-you-should-feel-bad
version: 3
updated_at: 2026-10-31T19:08:39.544Z
-->

Jeremiah Lowin (AI Engineer, 2026-03-04): An MCP server is not an API — it is a user interface, and the user is an agent with a ~200,000-token brain, expensive discovery, and painful iteration.

*Synthesized from Jeremiah Lowin on AI Engineer, 2026-03-04.*

Jeremiah Lowin is the founder and CEO of Prefect Technologies, a former member of the Apache Airflow PMC, author of the Marvin agent framework, and the maintainer of FastMCP — the library that has become the de facto way to build MCP servers, and which was downloaded roughly 1.5 million times the day before this talk.

## Core Thesis

An MCP server is not an API — it is a user interface, and the user is an agent with a ~200,000-token brain, expensive discovery, and painful iteration. Most MCP servers are bad because they were produced by mechanically wrapping a REST API instead of by doing product design for that particular user. The single most important verb for an MCP author is *curate*: start from the workflow you want to make possible, then strip everything that does not serve it.

## Key Insights

- Lowin's vantage point is unusual: FastMCP shipped a few days after MCP itself was announced, roughly one year before this talk, and the volume of servers built on it means he sees the failure modes at scale. Anthropic upstreamed a version of it into the official SDK; the FastMCP vocabulary is being removed from the low-level SDK in a couple of months so that FastMCP is unambiguously the high-level interface while the SDK owns the low-level primitives.
- Humans and agents differ on three axes, and API best practice is tuned to the human side of all three. **Discovery**: a human reads the docs or Swagger once for the life of the application; an agent re-enumerates every tool and every description on every handshake. **Iteration**: a human writes a script that calls three routes back to back and re-runs it until it works; an agent pays for each additional round trip by resending the whole prior history, subject to caching. **Context**: an agent remembers the last 200,000 tokens plus whatever is baked into weights, which Lowin compares to flying Apollo 11 on a kilobyte of RAM.
- The objection "if a human can use an API, why can't an AI" fails twice — it assumes agents are oracles, and it is factually wrong about humans, who reach for a website, SDK, client, or mobile app rather than the raw API whenever they can.
- **Outcomes, not operations.** A REST-shaped server exposes atomic operations — look up the user, list their orders, filter, check status — and forces the agent into a minimum of three round trips in an order it has to guess. The fix is one agent-facing tool such as "track latest order" taking an email; the same three API calls still happen, but inside the tool, written by someone who already knows the sequence.
- Using the agent as glue or orchestrator is a design smell. Lowin, whose career is orchestration software, puts agents in the middle of the orchestration competence range: capable, but expensive, slow, hard to debug, and stochastic. Reserve LLM orchestration for cases where you genuinely do not know the algorithm; order-status lookup is not one.
- Name tools and arguments for the agent, not for future developers. The goal is that the agent picks the right tool at the right time, not that the surface reads like a well-factored API. He reframes the user story as an **agent story**: what a programmatic, autonomous, context-limited actor is trying to achieve.
- **Flatten arguments.** Don't ask an LLM to invent a `config: dict`; expose top-level primitives — `email: str`, `include_cancelled: bool`. An annotated Pydantic model beats a bare dict but is still harder than flat scalars. Use `Literal` or `Enum` for constrained choices; most models default to writing `format: str = "basic"` because they do not know the constrained form is supported. Avoid tightly coupled arguments, where the value of one argument (say, file type) changes which values are legal for another (say, processing mode).
- Structured arguments hit a real interoperability wall: Claude Desktop, one of the most popular clients, sends object arguments as strings. FastMCP now attempts to deserialize a string supplied where a structured object is declared — a concession Lowin calls deeply wrong but necessary.
- **Documentation is context, and double documentation is worse than none.** Document the server, document every tool. The specific trap: explaining a complex argument in a system prompt or subagent definition, then changing the tool — now you have two documents, one wrong, and only error messages to save you.
- **Examples are contracts.** Whatever incidental pattern an example carries becomes a strong signal. Lowin hit this himself the day before the talk: an example with two tags produced two tags every time, no matter how insistently he asked for at least ten. An audience member proposed out-of-distribution examples as a counterweight; Lowin found it reasonable and endorsed trying it, without claiming it fully defeats the effect.
- **Errors are prompts.** The model does not experience a 400 or 500 as a status code; it experiences the error text as its next prompt. A bare `ValueError` or a cryptic MCP error with an integer code teaches it nothing. Overly harsh errors can make it abandon the tool as inoperable. This opens a progressive-disclosure tactic he mentions without wholeheartedly endorsing: for an irreducibly complex API, document recovery from the most common failures in the error messages rather than everything in the docstring, accepting that the first call will probably be wrong.
- The MCP spec's `readOnlyHint` annotation is underused. ChatGPT's developer mode asks for extra permission when a tool lacks it, because the absence implies possible side effects — free UX improvement for the price of setting a flag.
- **The token budget is the one rule you cannot break.** Every other guideline degrades quality; this one produces an unusable server. A customer of his — a large, high-performing company — needed 800 endpoints exposed. Against a 200,000-token window that leaves each tool a sliver for name, schema, and docs, and even then the handshake alone would consume the entire window. One more tool with a one-word docstring would overflow it.
- **50 tools per agent, not per server**, is where he expects performance to degrade — an explicit correction to his own slide. Two 50-tool servers connected to one agent is 100 tools and the same bottleneck. 5–15 is the aspiration. The GitHub server's roughly 170 tools (and the meme that it ships ~200,000 tokens on handshake) is a smell rather than a verdict; that team publishes work on semantic routing to cope. Ask instead whether admin tools are mixed with user tools, whether namespacing or splitting into two servers would help.
- He cites two blog posts by an engineer he knows at Fiverr, written about a month apart in October and November, as a shot and a chaser: the first grows a server to 188 tools, the second curates it back down to five. Read together, they are the product journey — making it work, then making it work well.
- **Stop converting REST APIs into MCP servers.** It is the fastest route to violating every heuristic in the talk. Lowin takes some responsibility here: auto-conversion is one of FastMCP's most popular features, so it is not going anywhere, and he wrote a viral blog post plus documentation asking people not to ship it to production. It is legitimate as a *bootstrap* — mirror two or three key endpoints, prove an agent can use your tool at all, then strip the regurgitated REST surface and curate.
- Much of what is possible in MCP reduces to a single question: **do you control the client?** If you do — an internal team, your own mobile app — you can budget tokens precisely, document workflows as skills or files instead of in docstrings, and lean on optional protocol features. If you don't, assume the worst possible client and put everything in the docstrings; the one escape hatch is the server-level `instructions` field, which most (not all) clients download on handshake and which should not be a novel.
- Client non-compliance constrains server design. Claude Desktop hashes the tools it receives on first contact into a SQLite database and ignores subsequent spec-legal updates, which breaks notification-based approaches to progressive disclosure. Meta-tool designs — tools that describe other tools, cutting handshake context by a large margin — do get around this because they are ordinary tool calls, but they reintroduce the flatten-arguments problem one level up.
- **SEP-1686** adds asynchronous background tasks to MCP for every operation, not just tools. It changes none of the design rules because it is opt-in on the client side: the client declares it wants async execution and takes on the polling and result-collection duties. The only new question for a server author is whether a given task should block.
- **Elicitation** — a structured mid-execution request back to the client for more input, most commonly a yes/no approval before an irreversible side effect — is the right place for tightly coupled arguments and confirmations, and is better design than the common `confirm: bool = False` guard. Lowin wishes he could tell people to depend on it, but client support is thin, partly for a legitimate reason: a user-facing client can just show a form, while an automated or backgrounded client has no obvious right answer.
- Code mode — having the model write code that calls MCP tools in sequence, blogged first by Cloudflare and then by Anthropic — sidesteps much of the iteration cost, at the price of sandboxing and code-execution problems. A colleague shipped a FastMCP extension for it the day the post landed; it is headed for an experimental/optimize flag rather than the opinionated core.
- Asked whether MCP is worth it when you write the agent loop yourself with your own tool functions, Lowin says no, not today — the future reason is observability, since agent frameworks are designed to swallow tool-call failures and surface them to the LLM rather than expose them to you. Every design rule in the talk applies equally to plain Python tool functions.

## Actionable Takeaways

1. Design each tool top-down from a complete workflow outcome ("track latest order given an email"), not bottom-up from API endpoints. Bury the multi-call sequence inside the tool implementation.
2. Replace `config: dict` parameters with flat top-level primitives, and use `Literal` or `Enum` for any constrained choice instead of a bare `str` — models will not reach for the constrained form on their own.
3. Set `readOnlyHint` on every non-mutating tool so clients like ChatGPT can skip the extra permission prompt.
4. Rewrite error messages as if they were prompts, because they are — say what went wrong and how to fix the call, and go overboard on helpfulness while staying non-alarming.
5. Audit examples in docstrings for incidental patterns. If your tags example lists two tags, expect exactly two tags forever; vary the shape deliberately.
6. Count tools per *agent*, not per server. Past ~50 combined, expect degradation; aim for 5–15 by splitting admin from user tools, namespacing, or shipping separate servers.
7. Use FastMCP's REST auto-conversion only to bootstrap two or three endpoints and prove an agent can call your tool at all. Then delete the generated surface and curate before production.
8. Never document a tool in two places. If an explanation lives in a system prompt or subagent definition and the tool changes, you now have a wrong document and a right one, and only errors will reveal which is which.
9. Use the server-level `instructions` field for a high-level orientation blob, but keep it short and do not assume every client honors it.
10. Decide early whether you control the client. If you do, document workflows as skills/files and consider client-side token budgeting; if you don't, put everything in docstrings and assume the least compliant client.

## Notable Quotes

> "An agent can find a needle in a haystack. The problem is it's going to look at every piece of hay." — Jeremiah Lowin

> "You are not building a tool, you are building a user interface." — Jeremiah Lowin

> "Humans don't use APIs. We do anything we can to put something between us and an API." — Jeremiah Lowin

> "Errors are prompts." — Jeremiah Lowin

> "Examples are contracts." — Jeremiah Lowin

> "Atomic operations are best practice if you're building a REST API. It is bad if you're building an MCP server." — Jeremiah Lowin

> "Curate ruthlessly. Start with what works and then just tear it down to the essentials." — Jeremiah Lowin

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*