DigitalRoks Icon
Agents & MCPintermediate 3 min read

Tool use: giving the model hands

How does AI use tools and call functions?

The model cannot calculate reliably, cannot see today's date, and cannot open your inbox. Tools fix all three — and turn a writer into a worker.

The short answer

Tool use (also called function calling) is a mechanism where the model, instead of answering, outputs a structured request to run a specific function with specific arguments, then reads the result and continues.

The analogy

A surgeon and the instrument tray

The surgeon decides and directs; the instruments do the cutting that hands alone cannot. Scalpels do not decide anything — they are precise capabilities at the moment they are needed. Tools work the same way: the model picks one from the tray, uses it, and gets the result back into the conversation.

How it actually works
01

The model asks, your system executes

It does not run code itself. It produces something like "call get_order_status with order_id 1043". Your application executes that and returns the answer. The model is a dispatcher, and you control what is on the shelf.

02

Every tool is a permission

A read-only search tool is safe. A send-email tool is not. Decide per tool whether it needs approval, a rate limit, or a dry-run mode. The most common agent incident is a write tool with no guardrail.

03

Small, single-purpose tools beat one giant one

get_customer, get_orders, get_refund_status will be used far more reliably than run_database_query. Narrow tools make wrong choices less likely, and make the audit log readable.

Where it bites

“The AI can browse anything and do anything on the web.”

It can call the tools it has been given. If logging into your bank is not a tool you provided, it cannot do it — and any product claiming otherwise is describing a human or a very specific integration.

Try it now
12 minutes

Design three tools you would actually grant

  1. 1List the three most repeated lookups you do in a week.
  2. 2For each, write the exact inputs needed and the exact output you would want back.
  3. 3Mark each as read-only or write. Any write needs an approval step before it is allowed to run.
  4. 4Notice which of the three you could hand to an assistant today without anxiety. Start there.
Where to go next

A single wallet that lets agents call many APIs is how you avoid wiring a new key for every capability you add.

Get Started Free on SkillBoss →

Affiliate link. If you sign up through it, DigitalRoks may earn a commission at no extra cost to you. Recommendations are written the same way either way.

Common questions
Do tools make the model smarter?

They make it correct in places it was unreliable: arithmetic, current data, private records. The reasoning is the same; the inputs are finally real.

What is the safest first tool?

A read-only search over your own documents. No side effects, obvious value, and it teaches you how the model mis-queries before anything can break.

How many tools is too many?

When the model starts picking the wrong one. Practically, keep it under about ten per agent and group related ones behind a clearer name.

Keep going

Where this connects

Where this concept goes next.

You know the idea now. The next step is either wiring it up yourself (MCPHubz) or handing the build to someone (GoZealio).