Which of these is a tool that Foundry Agent Service can use?
Why D is the answer
Code interpreter
Microsoft lists web search, file search, code interpreter, MCP servers and custom functions.
In detail
- Code interpreter lets an agent run code to solve tasks.
- Use it for calculation and data work.
Use case
An illustrative scenario, not a real incident.
A finance agent must calculate from a spreadsheet. Code interpreter lets it run code rather than guess at the maths.
See it in different ways
flowchart LR A["Model"] --> D["Agent"] B["Instructions"] --> D C["Tools: file search, web search, code interpreter, MCP, functions"] --> D D --> E["Conversation and actions"]
mindmap
root((Foundry agent))
Definition
Role
Goals
Conversation state
Tools
Code interpreter
Custom functions
Tool schemas
Hosting
Prompt agent
Hosted agent
Control
Human approval
MonitoringsequenceDiagram participant P0 as User participant P1 as Agent participant P2 as Code interpreter P0->>P1: Total these figures P1->>P2: Run a calculation P2-->>P1: Result P1-->>P0: Answer
Key point: Code interpreter lets agents run code.
Why the other options are wrong
- A. A network subnet
- A subnet is a network resource.
- B. An Azure Policy definition
- A policy governs resources.
- C. A resource group tag
- A tag labels resources.

