LLM Learning Path
Home Path Medium

Everyday requests that deserve tools

Shape prompts so the model emits structured tool intent (JSON is fine).

Goal

Practice function-calling thinking: when to hit a system vs chat.

Requirements

Write a system prompt that:

  • If the user needs real-world data or an action, return only JSON with name and arguments.
  • Otherwise answer in natural language.

Try it

Run the two user lines from scoring; JSON should have a sensible tool name and fillable args.

Further reading