By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A tool is not magic and it is not a plugin. It is a function you expose to the model, described well enough that the model can call it correctly, and wrapped tightly enough that a bad call cannot do damage.
| Part | Who writes it | What it must contain |
|---|---|---|
| Description | You | What it does, when to use it, when NOT to use it |
| Schema | You | Argument names, types, required vs optional |
| Implementation | You | The actual call, plus authorisation and error handling |
The model only ever sees the description and the schema. If the description is vague, the calls will be wrong, and no amount of prompt engineering downstream will fix it.
search_sources { query: str, max_results: int } -> list of {id, title, url}
read_source { source_id: str } -> {id, text, published_at}
save_note { claim: str, source_id: str } -> {note_id}Note what is missing: there is no 'browse the web' tool and no 'write file' tool. Every capability you add is a capability that can be misused.
A real tool-use loop with a hard step budget: it searches, reads, cites its sources — and stops when the evidence is enough.
Running a live agent costs model calls, so it needs a free account. Sign in to try it — the offline labs stay open to everyone.
Key takeaways
A tool is a function with a description, a schema and an implementation.
The model proposes calls; your code validates and executes them.
Narrow tools limit the damage any prompt injection can do.
Vague descriptions produce wrong calls — fix the description, not the model.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.