Technical Guide

How to Measure AI Agent Tool Call Success Rate

Tool call success rate should be measured by instrumenting the agent-tool boundary to capture four distinct outcome states: protocol-level success, tool-reported error, protocol-level transport failure, and policy-blocked calls, then defining an explicit numerator and denominator over these states rather than relying on a single aggregate pass/fail signal.

Tool call success rate sounds like a simple counting exercise, but most teams that attempt it discover their numerator and denominator are not well defined. An agent may issue a tool call that returns a technically valid response while producing an incorrect or incomplete downstream effect. A permission check may block a call before it ever reaches the tool, which is not the same failure mode as a broken API integration. A transport-level timeout is different again from a tool that executes and reports its own error. Treating all of these as a single binary success or fail outcome collapses meaningful distinctions that matter for both reliability engineering and governance reporting. Measuring this metric correctly requires separating structural protocol behavior from policy enforcement outcomes and from semantic correctness of the result, and instrumenting each of these at the point where the agent and the tool actually exchange data.

Four Outcome States of a Tool Call

Before building a measurement framework, it helps to see the outcome categories side by side. Each represents a structurally distinct event that should be logged and reported separately.

Protocol Success

Valid result returned with no reported error.

Tool-Reported Error

Structurally valid response with isError set to true.

Transport Failure

JSON-RPC or protocol-level error before a result is produced.

Policy Denial

Call blocked by authorization checks prior to execution.

Defining Success, Failure, and Silent Failure

The Model Context Protocol specification provides a useful structural starting point. MCP defines tool execution results with an isError boolean field that is distinct from JSON-RPC protocol-level errors. This means a tool call can fail in two structurally different ways at the protocol layer: as a transport or RPC-level error, where the call itself did not complete as expected, or as a tool-reported error, where the call completed and the tool returned a result indicating failure. MCP intentionally routes tool execution errors through the result object rather than as protocol errors, so the calling model can process and potentially recover from the failure rather than the call simply terminating.

A third category, often the hardest to detect, is silent failure: a structurally valid response with isError false that nonetheless reflects an incorrect or incomplete outcome relative to the task. Protocol-level telemetry alone cannot detect this category, since MCP and current OpenTelemetry conventions standardize structural error signaling, not the correctness of tool output against task intent. Detecting silent failures requires an additional application-specific validation layer, such as post-hoc output verification or downstream state checks.

Where Authorization Fits in the Classification

A call that is blocked by a permission or policy check before execution is a distinct event from an execution failure, and conflating the two produces misleading reliability data. MCP's authorization framework governs server access separately from the tool execution result itself, meaning a permission denial can occur before a tool call is even attempted. If policy-blocked calls are counted as tool failures, a team enforcing stricter access controls will appear to have a less reliable agent fleet than one with weaker controls, which is the opposite of the intended signal.

Logging authorization decisions as a first-class event category, separate from execution outcomes, preserves the ability to report both technical reliability and policy enforcement coverage without one metric distorting the other. This distinction is also relevant to audit and compliance reporting, since auditors or internal risk teams may need to see evidence that access controls are functioning as intended, independent of tool execution reliability.

Instrumentation Points and Current Standards

Two protocol-adjacent efforts are relevant to instrumenting tool calls today. MCP defines the structural shape of tool call requests and responses, including the isError distinction described above, and has undergone revisions to its authorization framework over the past year as standardization work continues. OpenTelemetry is separately developing semantic conventions for generative AI systems, including span and event attributes for tool execution such as tool name, tool call ID, and error type, intended to standardize observability instrumentation across agent frameworks.

These conventions remain marked as experimental in the most recently published specification, which means attribute names and structures may change before the standard stabilizes. Teams building measurement systems on top of either standard should version their internal telemetry schema and treat these as evolving references rather than fixed contracts, since retrofitting instrumentation across heterogeneous tool wrappers after the fact is costly.

Practical Guidance for Building the Measurement Framework

  • Adopt one consistent event schema across all tool integrations before scaling an agent fleet, rather than standardizing after tools are already in production.
  • Treat policy-blocked calls, tool-reported errors, and transport failures as separate classification categories in both logs and reported metrics.
  • Version your telemetry schema explicitly given the experimental status of current GenAI observability conventions.
  • Build a sampling or validation process specifically aimed at detecting silent failures, since standard protocol telemetry will not surface them.
  • Document the exact methodology behind any reported success rate, including known limitations, rather than presenting it as a single universally comparable score.

Governance and Reporting Implications

NIST's AI Risk Management Framework identifies measurement as one of four core functions for managing AI system risk, directing organizations to apply quantitative and qualitative metrics to track performance and trustworthiness characteristics, including reliability, over the system lifecycle. This guidance also cautions against treating a single aggregate metric as sufficient evidence of trustworthiness, recommending that metrics be documented with their context and limitations rather than presented as universally comparable scores.

Applied to tool call success rate, this means the metric is most useful to platform engineering and risk teams when it is accompanied by an explicit taxonomy of what counts as success, failure, and policy denial, and when it is reviewed alongside the specific agent, tool set, and time period it describes. NIST guidance also notes that measurement should account for functions performed autonomously, which is directly relevant to agents making sequential tool invocation decisions without human confirmation at each step. This reinforces why tool call success rate functions as a runtime governance and audit input, not simply a dashboard statistic.

Frequently Asked Questions

Is tool call success rate a single number teams should track?

No. NIST's AI RMF guidance cautions against treating any single aggregate metric as sufficient evidence of trustworthiness. A defensible framework reports success, tool-reported error, transport failure, and policy denial as distinct categories, with documented methodology, rather than one collapsed percentage.

Does MCP alone provide everything needed to measure success rate?

MCP provides structural definitions, including the isError field distinguishing tool execution errors from transport errors, but it does not validate semantic correctness of tool output. Detecting silent failures requires an additional application-specific validation layer beyond protocol telemetry.

Should policy-blocked tool calls count as failures?

They should be logged and reported as a distinct category from execution failures. Counting them as failures conflates access control enforcement with technical reliability and can misrepresent a well-governed agent fleet as less reliable than a poorly governed one.

Build a Defensible Tool Call Measurement Framework

Trussed AI provides runtime governance and monitoring for enterprise AI agents, including permission enforcement, audit logging, and MCP security controls that separate policy decisions from execution outcomes at the agent-tool boundary.

Talk to an Expert