FREE STUDY NOTES · AI-103

Choosing agent tools in Foundry Agent Service

File search, Azure AI Search, Bing grounding, function, OpenAPI, MCP and code interpreter tools compared.

From Ultra Transcenders AI-103 by Tony Rough (publishing soon)

Tools are how an agent reaches beyond its training data: running code, searching, calling APIs or acting on a screen. Pick the tool that matches the data source or action the agent needs. Figure 6.1 groups these tools by job and shows the state the service keeps alongside them.

An agent (model, instructions and tools, with tool_choice auto, none or required) sits between a conversation and a memory store, which the service keeps. Below it, its tools fall into three groups: knowledge (file search, Azure AI Search tool, Grounding with Bing Search, Microsoft Fabric tool), actions (function tool, OpenAPI tool with its key taken from a project connection, computer use) and code (code interpreter).
Figure 6.1: An agent and the tools it can call, grouped by job, with the state the service keeps for it
Need Tool
Calculations, data analysis in Python Code interpreter (sandbox)
Current public web data with citations Web search (recommended; no separate Bing resource) or Grounding with Bing Search (via a project connection)
Files uploaded to the agent or chat File search (chunks and embeds into a vector store)
Curated existing index Azure AI Search tool (project_connection_id plus index name)
External REST API OpenAPI tool
Your own code Function tool
GUI automation Computer use
Enterprise analytics data Microsoft Fabric tool

Controlling whether tools are called

Giving an agent a tool doesn’t guarantee it uses it. The tool_choice setting controls that.

tool_choice Behaviour
auto (default) Model decides, and may skip the tool
none No tool calls
required At least one tool call every run; the documented fix when an agent won’t call its tool

Get the whole book

This note is one section of Ultra Transcenders AI-103: Developing AI Apps and Agents on Azure, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindle: coming soonPaperback: coming soon
Amazon.comKindle: coming soonPaperback: coming soon

Publishing soon on Amazon in Kindle and paperback editions.

About the book · Free AI-103 glossary · All AI-103 study notes

More AI-103 study notes