What is tool use (function calling) in AI?

Tool use, also called function calling, lets an AI model ask your software to do something: run a search, query a database, call an API, send a message. The model decides which tool to call and with what inputs; your code runs it and returns the result.

On its own a model can only produce text. Tools connect it to the real world. You describe each tool (name, what it does, what inputs it takes); when the model decides a tool would help, it returns a structured request; your application executes it and hands back the result.

Why it matters

  • It gives the model fresh, accurate data instead of guesses (order status, account balance, today's weather).
  • It lets the model take actions, which is what turns a chatbot into an AI agent.
  • Results are structured, so they're easier to check than free text.

Product decisions hiding in tool design

  • Which tools exist defines what the assistant can do. Fewer, well-described tools work better than many overlapping ones.
  • Read versus write. Lookups are low risk. Anything that changes data, spends money or contacts someone needs limits, logging and often a confirmation step (human in the loop).
  • Permissions. A tool should act with the user's permissions, never more.

MCP is the common standard for packaging tools so they work across AI applications.

Articles that mention Tool use

All 27 terms in the AI glossary →