What tools are and why agents need them
What it is
A tool is a function in your program that the model may ask to have run. A language model alone has three gaps that tools fill:
- It does not know your data: tools look it up (orders, files, the web).
- It cannot calculate or run code reliably: tools do it exactly (a calculator, a Python sandbox).
- It cannot change anything: tools act (send an email, issue a refund, book a slot).
Why it matters
Tools turn a writer into a worker.
- Read tools replace guessing with facts, which is the largest single cut in made-up answers.
- Write tools are what make the system useful, and also what make it dangerous.
- Each tool is ordinary code you control, so it is the natural place for every rule.
In the real world: A finance assistant that added invoice lines itself was wrong on one long invoice in forty; routing every sum through a calculate tool brought that to zero.
Visual example
Tool catalogueRead tools are safe to retry. Write tools need the most care.
Letting the model do arithmetic or date maths in its head because 'it is usually right'. Usually is not good enough for a refund amount. Give it a calculator tool or compute the value in code.
Practise it: Design an AI Customer Support Agent