Your booking assistant’s tools now act only for the signed-in passenger, refuse values the data can’t support, and wait for the passenger’s yes before a change. Each guard went onto one tool after something went wrong with it.
Now you’ll look at the whole set at once. You’ll judge each tool by the worst a misbehaving model could do with it, give each feature only the tools it needs, and cap what one question can cost. Start with the three tools the assistant already has.
Weigh Each Tool’s Worst Case
A tool’s description tells the model when to use it, but nothing makes the model follow the description. So assume the model will one day call each tool with any arguments its schema allows, and ask what the worst result would be:
| Tool | Kind | Worst Case | What Limits It |
|---|---|---|---|
findSailings |
Read, public data | A wasted lookup, or many | The caps in this lesson |
lookUpBooking |
Read, private data | One passenger reads another’s booking | The session’s passenger |
changeBooking |
Write | A booking moved or canceled by mistake | The session’s passenger, value checks, and confirmation |
The worst case grows down the table, and so do the guards. A bad findSailings call costs a request, but a cancellation by changeBooking can cost a family their crossing. So a feature that only answers questions gets no write tool.
The same test tells you which tools to keep out of passenger chats. Say the ferry office asks for a tool that cancels every booking on a sailing when a storm closes the harbor. Its worst case is a full ferry’s worth of canceled bookings, so it belongs in a staff feature, never a passenger chat.