Level 9 · Build your own Health OS — the build · 9.3

Tools, not copy-pasted JSON

You stop being the courier between an AI assistant and your database. This lesson shows how to give an assistant its own tools on top of your data with an MCP server on Cloudflare Functions, and how to design them so it uses them correctly and cannot damage the data. For people who already have their own API and want to talk to it in plain language.

What's inside

  1. What you are removing
  2. Designing the tools
  3. The protocol, briefly
  4. Checking input
  5. Logging calls
  6. Documenting the same surface
This is a Members’ lesson. The full lesson is open to Flowsmith Academy members. If you are a member, open it and sign in with your e-mail address. If not, the access page explains what is always free and what membership adds.