Evaluate an AI agent before production with 8 steps and a 5-metric checklist: groundedness, task completion, tool-call accuracy, safety and cost.

TL;DR: To evaluate an AI agent before production, write down what good looks like, build a test set from real tasks, then score five things: groundedness, task completion, tool-call accuracy, safety and cost. Layer code checks, AI judges and expert review, set a pass bar for each, and keep scoring live traffic after launch.
Most teams can see their agents. Far fewer can prove their agents are right. At Microsoft Ignite 2026, the Microsoft Foundry team cited a LangChain survey of 1,340 practitioners: 89% have some agent observability, but only 52% run offline evaluations on test sets and 37% evaluate live traffic. The same session quoted a Gartner forecast that more than 40% of agentic AI projects will be canceled by the end of 2027.
This guide shows you how to evaluate an AI agent with the tools you already license, and gives you a checklist you can reuse for every agent you ship.
AI agent evaluation is the practice of scoring an agent's answers and actions against a written definition of good, using repeatable tests, so you can decide with evidence whether it is ready for users. It answers a different question from monitoring. Monitoring asks "Is it up?" Evaluation asks "Is it right?"
This guide is for IT leaders, Copilot Studio and Microsoft Foundry platform owners, and the business owners who sign off on agents. By the end you will have a written quality bar, a test set, scores on five dimensions, a release gate and a plan to keep scoring after launch.
It works for agents built in Microsoft Copilot Studio, Microsoft Foundry or any framework you trace with OpenTelemetry. If your agent estate doubled while your controls didn't, evaluation is the control that tells you which agents deserve to stay.
Use five metrics: groundedness, task completion, tool-call accuracy, safety and cost. Each has a built-in evaluator in Microsoft Foundry or Copilot Studio, so you rarely need to build scoring from scratch.
Swipe horizontally to see each metric, its evaluator and a starting pass bar.
| Metric | Question it answers | Microsoft evaluators | Starting pass bar | Layer |
|---|---|---|---|---|
| Groundedness | Is every claim supported by the sources the agent retrieved? | Groundedness (Foundry); Quality test method (Copilot Studio) | 4 or higher on a 1-5 scale, with zero invented policy or pricing facts | AI judge, plus expert spot checks |
| Task completion | Did the agent finish the job and follow its instructions? | Task Completion, Task Adherence, Intent Resolution (Foundry) | 85% or higher pass rate on the test set | AI judge |
| Tool-call accuracy | Did it call the right tool, with the right inputs, and use the result? | Tool Call Accuracy, Tool Selection, Tool Input Accuracy, Tool Output Utilization (Foundry) | 100% on tools that write, send or delete; 95% on read-only tools | Code checks first, then AI judge |
| Safety | Can it be pushed into harmful content, data leaks or forbidden actions? | Risk and safety evaluators, AI Red Teaming Agent (Foundry); four safety evaluators (Copilot Studio) | Zero high-severity defects; attack success rate tracked and falling | Automated scans, plus human red team for high-risk agents |
| Cost | What does one completed task cost in tokens and Copilot Credits? | Token usage per run in evaluation results; Fleet cost (Foundry, preview) | A cost per completed task the sponsor has approved | Code checks |
The Agent Release Checklist. Source: 2toLead, mapped to Microsoft Foundry and Copilot Studio evaluators on Microsoft Learn, December 2026. Pass bars are 2toLead starting points; tune them to your risk.
The 85% bar comes from Microsoft's own example of an acceptance threshold for task adherence. Tighten every bar for agents that act on money, health or personal data.
You need an agent with a named owner, a place to run evaluations, tracing switched on and a business sponsor who will sign the pass bars.
Swipe horizontally to see each prerequisite and why it matters.
| Prerequisite | What you need | Why it matters |
|---|---|---|
| Owner and sponsor | A technical owner and a business sponsor recorded for the agent, ideally in Microsoft Agent 365 | Someone has to define good and accept the risk that remains |
| Evaluation tool | Copilot Studio agent evaluation, or a Microsoft Foundry project with the Foundry User role and a judge model deployment | Built-in evaluators save weeks of custom scoring |
| Tracing | Automatic tracing for Foundry agents, or the Microsoft OpenTelemetry distribution for external agents, sent to Application Insights | You can't score a tool call you can't see |
| Test environment | A test copy of each knowledge source and tool, with test accounts | Evaluations run as a real user and can call real tools |
| Budget | Tokens or Copilot Credits for the judge model and test runs | Evaluation runs cost money, so plan for them |
Test an AI agent in eight steps: define good, build a test set, trace, then layer code checks, AI judges, safety scans and expert review before you set a release gate. Plan one to two weeks for a first agent.
For step 8, pair the gate with Power Platform pipelines so a failed evaluation stops a Copilot Studio deployment, not just a report.
Keep evaluating by scoring a sample of live traffic, rerunning your test set on a schedule and red teaming again after every model change. Microsoft frames this as three stages: build, production and scale.
Each finding becomes a new test case, and each better version becomes the new baseline. Users, data and models keep changing, so an agent that passed in December can drift by March.
Evaluation tells you whether an agent works, not whether it is governed. Run it alongside our AI agent governance checklist so quality and control are reviewed together.
The most common mistake is testing only the final answer and never the actions. An agent can give a polite, fluent reply after calling the wrong tool.
Indirect prompt injection hides in documents and email, so read our guide to defending Copilot and Copilot Studio agents from prompt injection before you write your safety test cases.
Your evaluation works when it catches a bad change before users do. Test it on purpose: break something and see whether the gate fails.
Measure value as incidents avoided, review hours saved and cost per completed task. Report the pass rate and cost per task next to adoption.
Microsoft showed a real result at Ignite. Tata Consultancy Services used Foundry evaluation and optimization on an Azure Kubernetes Service diagnosis agent. Tokens per diagnosis fell 66%, from 275,119 to 94,000, and the overall evaluation score rose from 85% to 100%.
Here is a 2toLead illustrative model; swap in your own numbers. A 3,000-person professional services firm launches an HR policy agent without evaluation. Two weeks in, it gives wrong leave-policy answers. Pulling, fixing and relaunching it takes about 120 hours across IT, HR and legal: $14,400 at a loaded $120 an hour.
A two-week evaluation for the same agent takes about 40 hours to define good, build 150 test cases and run the first rounds: $4,800. After that, automated reruns take an hour per release. Spending a third of the cost of one incident buys a gate that runs on every change.
Link evaluation cost to your wider FinOps plan for Copilot Credits, since judge models and test runs bill too.
An agent that can't show its scores isn't ready for your users. Test it like a new hire, then keep reviewing it like one.
Enough to cover every job, edge case and forbidden action in your quality definition. In 2toLead's practice, 100 to 200 cases is a sound start for a single-purpose agent. Microsoft recommends multiple diverse queries and repeating each query to catch inconsistent behavior.
Yes. Copilot Studio has built-in agent evaluation with test sets, Text match, Similarity and Quality test methods, and four safety evaluators. You can run it from the Evaluation page, the Power Platform REST API or a Power Automate connector.
Observability shows what happened: errors, latency, tokens and traces. Evaluation judges whether what happened was right: the right tool, the right answer, within policy. You need both, and evaluation depends on tracing.
The business sponsor owns the definition of good and the pass bars. The technical owner runs the tests and fixes failures. Risk teams own the safety bar.
2toLead helps organizations in healthcare, financial services, education, nonprofit and government put agents into production with evidence, not hope. Evaluation only sticks inside a wider agent governance operating model. Our Microsoft MVP team can:
For the full setup steps, read Microsoft's guide to evaluating your AI agents in Microsoft Foundry.
For the month's other agent changes, see our Agent Intelligence Newsletter for November 2026.
Find more practical guidance on the 2toLead Insights hub, or book a discovery call.
No hype. Just practical, governed AI that actually gets adopted.
Agent ideas everywhere, nothing in production? Three ways we help:
A regulated health system turned its legal contract playbook into a governed Copilot agent that reviews real contracts every day.
Read the case study →Copilot can surface what people shouldn't see. Three ways we help:
A professional organization built a Purview-based foundation for secure AI adoption with 2toLead.
Read the case study →Join Our Newsletter