Lesson 02.06 · Phase 02 · Tool Use & Function Calling
Designing tools models can use
A tool is an interface for a model, not for a programmer. Name it after the task, accept what people actually type, return what the answer needs, and make the wrong thing hard to do.
Learning objectives
- Compare a generic, backend-shaped toolset with a task-shaped one on the same backend and the same tasks.
- Apply the design rules: task-level names, few parameters, enums, forgiving inputs, readable results, and business rules enforced inside the tool.
- Measure task success with a real model, and check whether passing answers were actually grounded in tool results.
- Recognise the most dangerous generic-tool failure: a tool that reports success for an action that didn't happen.
The fastest way to give an agent access to a system is to wrap its API: dbquery(table, where), dbupdate(table, id, field, value). Two tools, total flexibility.
Loading the full lesson…