Governing Agent Behavior with Oversight Modes, Constraints and Tool Access
This lesson explains how to govern agents, whose actions have consequences, by deciding how much autonomy each action receives, constraining what agents can do and controlling access to tools.
Learning outcomes
After completing this lesson, you will be able to:
- Choose an oversight mode from an action's impact and reversibility.
- Describe the constraints that bound agent behaviour, such as run limits.
- Configure tool-access controls such as an allowed tools list.
- Explain how autonomy is reviewed and adjusted over time.
Oversight modes
Oversight decides how closely people supervise what an agent does, and it is set per action rather than per agent, according to the action's impact and reversibility. An action that only reads data, or that can easily be undone, needs little supervision; an action that moves money, changes a contract or communicates with an outside party may need a person's approval every time.
Three oversight modes describe the common levels of supervision, from the most to the least.
With a human in the loop, the agent proposes each action and waits for a person to approve it, so nothing consequential happens without a human decision. The cost is the person's time and the delay.
With a human on the loop, the agent acts immediately while people monitor its actions and can intervene or reverse them. This suits medium-risk actions when monitoring and undo are reliable.
Autonomous within limits lets the agent act alone inside hard constraints, such as read-only access or a maximum amount. This suits low-risk, reversible, high-volume actions.
The following table summarizes the modes.
| Mode | Behaviour | Suits |
|---|---|---|
| Human in the loop | Agent proposes; a person approves each action | Payments, contract changes, external communication |
| Human on the loop | Agent acts; people monitor and can intervene | Medium-risk actions with good monitoring |
| Autonomous within limits | Agent acts alone inside defined constraints | Low-risk, reversible actions such as reading data |
A single agent can combine modes: it may look up orders autonomously, issue refunds below a threshold on the loop, and require approval above it.
The following diagram shows how one agent combines the three modes according to the impact of each action.

Choose the oversight mode
Constraints
Constraints bound agent behaviour. Instructions define the agent's scope and what it must refuse. Run limits cap the number of tool calls, iterations and tokens per run, which prevents loops and runaway cost. Business rules, such as maximum refund amounts, are enforced in tool code rather than left to the model. Guardrails with task adherence detection flag actions that drift from the user's request, and output validation checks results before they are returned.
The constraints differ in how reliably they hold. An instruction such as "never refund more than 500" is guidance that the model usually follows but can misread or be manipulated into ignoring. The same rule written in the refund tool's code, which rejects any amount above 500 whatever the model asks for, cannot be bypassed by any prompt. Run limits work the same way: a cap of ten tool calls per run is enforced by the runtime, so an agent stuck in a loop of failing calls stops instead of consuming tokens indefinitely.
A useful design habit is to ask, for each constraint, what happens if the model ignores it. Where the answer is a minor inconvenience, an instruction is enough. Where the answer is a financial loss, a data leak or an action that cannot be reversed, the constraint must be enforced outside the model, in tool code, permissions, approvals or guardrails.
Tool-access controls
Each agent receives only the tools its role requires. MCP tools are configured with an allowed tools list so that only approved tools from a server are exposed, and with require approval for tools that change data. Tools authenticate with a least-privilege identity or the user's delegated identity, so that an agent cannot access more than the user could. Tool arguments are validated in code, and network egress controls limit the destinations a hosted agent can reach. At fleet level, the Foundry Control Plane inventories agents across projects and applies governance policies centrally.
In the Foundry portal, both controls are set on an agent's MCP tool. The following screenshot shows a Microsoft Learn MCP tool limited to one allowed tool, microsoft_docs_search, with the approval setting Never auto-approve tools, so every call waits for a person.

Control the agent's tools
Reviewing and adjusting autonomy
The right level of autonomy is not fixed at design time. A new agent usually starts with more human oversight, with approval required for most actions, and receives more autonomy for specific actions as evidence shows that it performs them correctly. The evidence comes from traces, evaluation of agent runs, the rate at which people reject or correct proposed actions, and incident reports.
Changes to autonomy are governed like other production changes: they are reviewed, recorded and released as a new agent version, so they can be audited and rolled back. Autonomy can also be reduced quickly when a problem is found, for example by re-enabling approval for a tool or removing it from the agent, without redeploying the whole application.
Limiting a finance agent
A finance agent connects to an MCP server that exposes 25 tools, including read-only reporting tools and tools that post journal entries. The agent should prepare month-end reports autonomously, and any journal entry must be approved by a controller.
Configure the MCP tool with an allowed tools list containing only the reporting tools and the journal posting tool, set approval to required for the posting tool and not required for reporting tools, and run the tools with an identity that has only the needed permissions. An instruction telling the agent to ask before posting would not be an enforced control.
Why are instructions in the prompt not enough to enforce a business limit, such as a maximum refund?
Show answer
A model can be persuaded to ignore instructions. Limits must be enforced in tool code, where they always apply.
Exam Tips
Remember for the exam
- Set oversight per action by impact and reversibility.
- Enforce business limits in tool code; instructions alone are not controls.
- MCP: allowed tools list plus require approval for tools that change data.