Organisations should prioritise MCP evals whenever a change affects model behavior, tool descriptions, schemas, permissions, client logic, or the server version itself. Server tests can stay green while agent performance drops. That is because evals measure whether the model still interprets the tool set correctly and completes the intended task under production-like conditions.
Why This Matters for Security Teams
mcp server contract tests answer a narrow question: does the server still behave as coded. MCP evals answer a broader one: can the model still discover, interpret, and use tools correctly after a change. That distinction matters because agent failures often show up at the model layer, not the server layer. A server can pass every contract check while a tool description change, schema drift, or permission shift causes the agent to choose the wrong action.
This is why organisations treating MCP as a static integration surface miss the real risk. The stronger signal is whether the AI system still completes the intended task under production-like conditions. The issue becomes even sharper when the agent’s tool use is tied to access to secrets, data, or operational actions, as shown in NHIMG’s AI Agents: The New Attack Surface report, which found that only 52% of companies can track and audit the data their AI agents access. In practice, many security teams discover MCP misalignment only after an agent has already taken the wrong path in production, rather than through a clean contract failure.
Current guidance suggests prioritising evals first whenever a change could alter agent behaviour, because the model is the decision-maker and the server is only one part of the control plane.
How It Works in Practice
Contract tests are still useful, but they should be treated as a lower-level assurance check. They verify that the server exposes the expected endpoints, schema, and responses. MCP evals test whether the agent can still use those tools safely and successfully in context. That means validating outcomes such as tool selection, argument formatting, sequencing, refusal handling, and recovery from ambiguous prompts.
Security and platform teams usually get the best coverage by mapping changes to the test type that can actually catch the failure mode:
- Tool description edits and schema changes should trigger evals, because language changes can alter model interpretation even when the server contract is unchanged.
- Permission and scope updates should trigger evals, because the model may still attempt a now-disallowed workflow.
- Client orchestration changes should trigger evals, because routing, retries, and tool selection logic affect end-to-end behaviour.
- Server version changes should trigger both contract tests and evals, because the server may remain syntactically correct while the agent’s task success rate drops.
That approach aligns with the threat patterns described in Analysis of Claude Code Security and with the broader agentic risk framing in the OWASP Top 10 for Agentic Applications 2026. The practical objective is not to replace contract testing, but to use evals whenever the question is “will the agent still do the right thing?” rather than “does the server still answer correctly?”
Teams should also separate release gates. Contract tests can block obvious breakage early in CI, while evals should gate changes that affect semantic meaning, workflow completion, or safety-sensitive tool use. These controls tend to break down in fast-moving multi-agent environments where tool chains, prompts, and permissions change together, because a passing server contract can hide a degraded end-to-end task path.
Common Variations and Edge Cases
Tighter eval coverage often increases test maintenance and runtime, requiring organisations to balance release speed against behavioural assurance. That tradeoff is real, especially where tool sets are large or prompts are highly dynamic.
There is no universal standard for this yet, but current guidance suggests a simple rule: if the change can affect model interpretation, run evals before relying on contract tests alone. If the change is purely transport-level, serialization-level, or backward-compatible at the schema boundary, contract tests may be sufficient as the first gate. When both layers change, both layers should be tested.
Some teams overuse evals for trivial backend fixes and create noise. Others overtrust contract tests because the server stays healthy while the agent silently degrades. The second mistake is more dangerous in agentic systems, especially when tool access is tied to privileged workflows or external side effects. NIST control thinking reinforces this split: NIST SP 800-53 Rev 5 Security and Privacy Controls supports testing of both system correctness and access enforcement, but it does not replace behavioural evaluation for AI-driven orchestration.
Where the guidance becomes less clear is in hybrid deployments that mix deterministic automation with LLM routing. In those environments, the safest pattern is to treat any prompt, tool, permission, or client change as an eval-triggering event, then use contract tests to confirm the server still matches the declared interface.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A2 | Agentic behaviour can change even when MCP contracts stay green. |
| CSA MAESTRO | MAP-2 | Focuses on agent workflow assurance, not just interface correctness. |
| NIST AI RMF | GOVERN | Evaluations support governance over AI system behavior and risk. |
| NIST CSF 2.0 | PR.AC-4 | Tool permissions and access scope changes need behavioural validation. |
| OWASP Non-Human Identity Top 10 | NHI-04 | MCP changes can expose or misapply secrets and privileged access. |
Gate releases with workflow-level evals for changes that affect autonomous tool use.
Related resources from NHI Mgmt Group
- When should organisations prioritise centralized MCP policy enforcement over per-agent inspection logic?
- Should organisations prioritise external exposure or internal credential governance first?
- When should organisations prioritise OAuth over simpler authentication for MCP?
- When should organisations prioritise migration over waiting for a better contract?