WhoBuilt

Your MCP Server is Bad (and you should feel bad)

Jan 12, 2026· 55 min· 22K views·Watch on YouTube

Speaker

Jeremiah Lowin, founder and CEO of Prefect Technologies and creator of FastMCP, explains how to design MCP servers for AI agents at an AI Engineer talk.

Design for agents, not API users

Lowin argues that MCP servers are interfaces for agents, which have different constraints from human developers. Agents pay a token cost to discover tools, are slow to iterate through repeated calls, and have limited context, so server designers should curate what they expose.

Build around outcomes

Lowin contrasts a sequence of small order lookup operations with one agent-facing tool that tracks the latest order and returns its status. Keep known workflows in code instead of asking the agent to orchestrate them, and name tools for the task the agent needs to complete.

Make tools easier to understand

Use simple, top-level arguments such as an email, a limit, or a status instead of asking the agent to invent a complex configuration object. Document the server and its tools, choose examples carefully because agents may copy their patterns, and write useful errors that help the agent recover.

Manage tools and token costs

Tool descriptions consume context when clients discover a server, and that context is shared with other servers. Lowin suggests treating more than 50 tools available to an agent as a warning sign, with 5 to 15 as an aspiration, while noting that larger servers can work with careful routing and evaluation.

Use REST conversion as a starting point

Lowin cautions against shipping a REST API wrapper as a finished MCP server because it exposes operations without curating workflows for agents. He recommends using conversion to test whether an agent can use a tool, then replacing the wrapper with focused tools designed around useful outcomes.

Takeaways

  • Design MCP tools around agent workflows and outcomes, not API endpoints.
  • Keep predictable orchestration in code and reduce unnecessary agent calls.
  • Use simple arguments, clear instructions, and recovery-focused error messages.
  • Budget tool descriptions and choices for the agent's total context, not just one server.
  • Treat REST conversion as a prototype, then curate before production.

Mentioned in this talk

Search inside this talk

What was claimed 14

Show all 14 facts

Related talks