Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. AI Agents /
  4. What is Tool Calling?
AI Agents

What is Tool Calling?

Updated September 27, 2026 Read 3 min

Tool calling is the mechanism that lets a language model request actions from external systems, such as searching a database or sending an email, by emitting a structured request that your code executes.

Contents 11
  1. 01Key takeaways
  2. 02Tool calling explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Designing good tools
  6. 06Standards and ecosystems
  7. 07Security considerations
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

Tool calling is the mechanism that lets a language model request actions from external systems, such as searching a database, calling an API or running code. The model does not execute anything itself: it emits a structured request naming a tool and its arguments, your application runs it, and the result is returned to the model. Tool calling is what turns a text generator into an agent that can affect the world.

Key takeaways

  • The model chooses which tool and what arguments; your code does the execution.
  • Tools are described with names, descriptions and a JSON schema for parameters.
  • Tool descriptions are prompt engineering: vague descriptions cause wrong calls.
  • Models can call several tools, sometimes in parallel, across multiple turns.
  • Tools are a security boundary, and untrusted results can carry prompt injection.

Tool calling explained in simple terms

A consultant who cannot access your systems can only advise. Give them a phone and system logins and they can check the actual order, update the record and email the customer. Tool calling is handing the model those capabilities, while you keep control of what it may touch.

How it works

  1. You send the model a list of available tools, each with a description and parameter schema.
  2. The model decides a tool is needed and returns a structured call, for example `get_order(order_id: “INV-2041”)`.
  3. Your application validates the arguments and executes the function.
  4. The result is appended to the conversation as a tool result.
  5. The model uses it to answer or to call another tool.

Steps 2 to 5 repeat, forming the agent loop.

A worked example

User: “Is order 4471 delayed, and if so tell me the new date.”

  1. Model calls `get_order(order_id: “4471”)`.
  2. Result: status “in transit”, carrier “BlueDart”, tracking “BD983…”.
  3. Model calls `track_shipment(carrier: “BlueDart”, tracking_id: “BD983…”)`.
  4. Result: expected delivery 14 October, two days later than promised.
  5. Model answers: the order is delayed by two days, with the new date.

Two tools, chosen by the model, executed by your code.

Designing good tools

PrincipleWhy
Clear names and descriptionsThe model chooses tools by reading them
Narrow, single-purpose toolsEasier for the model to use correctly
Strict parameter schemasPrevents malformed calls
Useful error messagesLets the model retry sensibly
Return only what is neededLarge outputs waste context
Idempotent where possibleSafe to retry after a failure

Treat tool descriptions like documentation written for a capable but literal new colleague.

Standards and ecosystems

Providers expose tool calling through their APIs, and the Model Context Protocol (MCP), introduced by Anthropic in late 2024, standardises how applications connect models to external tools and data sources. A shared protocol means one connector can serve many applications instead of writing bespoke integrations for each.

Security considerations

  • Permissions: give each tool the minimum access it needs.
  • Validation: never trust model-supplied arguments; validate and sanitise them.
  • Prompt injection: content returned by a tool, such as a web page, may contain instructions. Treat tool results as data, not commands.
  • Approval gates: require human confirmation for payments, deletions and outbound messages.
  • Audit logs: record every call, argument and result.

Limitations

  • Models sometimes call the wrong tool or invent arguments.
  • Too many tools confuse selection; keep the list focused.
  • Each call adds latency and tokens.
  • Tool failures need explicit handling, or the agent stalls.

Common Use Cases

01

Data lookups

Let assistants query orders, accounts and inventory.

02

System actions

Create tickets, update records and schedule events.

03

Web search

Fetch current information beyond the model's training data.

04

Code execution

Run calculations and scripts for precise results.

05

File operations

Read, write and transform documents.

06

Multi-system agents

Coordinate several business systems in one task.

Frequently Asked Questions

A mechanism where a model emits a structured request to use an external tool, which your application executes and returns.

No. It produces a structured request; your code validates and executes it.

The Model Context Protocol, a standard introduced in late 2024 for connecting models to external tools and data sources.

Keep the list focused. Too many similar tools increase wrong selections.

Over-broad permissions, unvalidated arguments and prompt injection through tool results.

Related Terms

  • Function Calling
  • AI Agent
  • Agentic Workflow
  • Structured Output
  • Agent Planning
  • Prompt Injection

Related AI Terms

What is an AI Agent?An AI agent is a system that uses a language model to pursue a goal over multiple steps,…What is Agentic AI?Agentic AI describes systems that act with a degree of autonomy towards goals, planning steps and using tools,…What is an Agentic Workflow?An agentic workflow is a process where AI carries out or chooses multiple steps towards a goal, ranging…What is Function Calling?Function calling is the API feature that lets a language model return a structured request to run a…What is Agent Memory?Agent memory is how an AI agent retains information, both within a task and across sessions, ranging from…What is Agent Planning?Agent planning is how an AI agent breaks a goal into steps, decides their order and revises them…

Contents

  1. 01Key takeaways
  2. 02Tool calling explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Designing good tools
  6. 06Standards and ecosystems
  7. 07Security considerations
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • AI Agents

Related Terms

  • What is an AI Agent?
  • What is Agentic AI?
  • What is an Agentic Workflow?
  • What is Function Calling?
  • What is Agent Memory?
  • What is Agent Planning?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 27, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}