Prompt Engineering
Advanced

Tool and Function Calling

Teach models to choose tools safely and keep business authority in code.

40 min
3 sections
tools
function-calling
agents
1
2
3

01. Tools extend capability and risk

Section 1 of 3

When a model can search, read files, create tickets, send email, or run commands, prompt design becomes system design. The prompt should define when each tool is allowed, what evidence is required, and when human approval is mandatory.

text
Tool policy:
- search_docs: allowed for public product docs and internal runbooks.
- get_customer: allowed only after a customer_id is provided by the app.
- create_refund: never call directly; prepare a refund proposal for human approval.
- send_email: allowed only with explicit user confirmation of final text.
Back to Course