Boss lesson · Unit 03
Wire up an agent
Pick tools, read a schema, load on demand and set permissions
What you practise
- Choose tools for a job, read a server's tool schema end to end, what too many tools does to the model, loading tools on demand, permissions per tool
Try a question from this lesson
Pick one
A shop's support agent answers "where is my order?". Its servers offer 140 tools, from order lookup to payroll. Which should it be given?
Correct answer
Order lookup and shipment tracking only
Why
The job needs two read-only tools. Every extra one costs tokens on each call, makes the right choice harder, and is one more thing to misuse. "Order" in the name would bring in refunds and cancellations too.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Too many tools
Tool definitions are prompt text. A hundred of them can take a large share of the window before the user has said a word, and near-duplicates make the model choose badly.
Two fixes: give the agent only the tools its job needs, or load definitions on demand. The model gets one small search tool, and full schemas enter the context only when it asks for them.
Concept
Permissions per tool
Not every tool deserves the same trust. A common split: tools that only read run automatically, tools that change things ask first, and tools that could do lasting damage are not given to the agent at all.
This is least privilege: the agent holds what the job needs and nothing more. A tool it does not have cannot be misused.
9 more exercises in the app
- 2× type the answer
- 1× order the lines
- 4× multiple choice
- 1× true or false
- 1× fill the blanks
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.