Tool in Hand
You'll give a model one real tool it can call, make the loop reliable, and test that it reaches for the tool only when it should.
About
A model with a tool stops being a chatbot and starts being a program that can do things: look up today's weather, read your calendar, run a calculation it would otherwise get wrong. On paper the mechanics are simple: you describe the tool, the model replies with a call instead of an answer, your code runs the tool and feeds the result back. In practice the model calls the tool when it shouldn't, makes up arguments, and sometimes answers in prose when you wanted a call. Getting it right thirty times out of thirty on your own prompts is a real skill and the floor under any agent. Keep the tool read-only for this badge, nothing that sends, deletes or pays.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Two to three weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Pick one read-only tool and describe it the way a model needs. A calculator, a unit converter, a lookup in a local file, a weather API or a search of your own notes. Write the name, a one line purpose and each argument with its type. Take a screenshot of the tool definition. Photo
-
2
Write the loop: call, run, feed back, answer. Your code sends the prompt and the tool description, checks whether the reply is a tool call, runs the tool, appends the result and asks again. Cap it at five rounds so a confused model can't loop forever. Film one full round from question to final answer with the tool call printed in between. Video
-
3
Write thirty prompts: twenty that need the tool and ten that don't. The ten decoys matter most. Asking what the capital of France is should not trigger the weather tool. Keep them in a file with the expected behavior next to each. Take a screenshot of the list. Photo
-
4
Run all thirty and count the four ways it goes wrong. Called when it shouldn't, didn't call when it should, called with bad arguments, and a right call followed by a wrong final answer. Take a photo of the tally. Photo
-
5
Fix the worst category and rerun until it's thirty out of thirty. Usually a better tool description or an example in the prompt does it. If a small model can't get there, say which model finally did and at what size. Take a screenshot of the clean run. Photo
-
6
Give it a tool result that lies and see what it does. Have your tool return an obviously wrong value, such as a temperature of 400 degrees, and watch whether the model repeats it, questions it or ignores it. Take a screenshot and write one line on what this means for trusting tool output. Photo