Quick summary

  • Transport health and tool success answer different questions. Agent observability needs to preserve that distinction so retries, user-visible failures and cost are not hidden behind a healthy HTTP dashboard.
  • A monitoring system that sees only transport failures can miss the very tool errors preventing an agent from completing its task.
  • Add a controlled failing-tool test and confirm that its result appears in your traces and per-tool failure reporting, even when transport succeeds.

What happened

A user says the agent failed, but the service dashboard is green. Before adding another uptime check, inspect what the dashboard actually counts. A successful HTTP exchange does not establish that the requested tool completed its work.

Two meanings of success

The MCP tools specification distinguishes protocol failures from tool execution errors carried in a result with isError. A client can receive a valid response while the business operation has failed.

Last9's monitoring guide explains why this distinction disappears in transport-only dashboards. Instrument the tool outcome rather than inferring it from the HTTP status. Check semantic-convention stability for the telemetry library version you deploy instead of treating every attribute name as permanent.

Follow one failed request through the system

Use a controlled test in a non-production environment: a tool returns a deliberate validation failure without breaking the transport. The expected observation is not a fabricated outage. It is a successful exchange containing an unsuccessful operation.

  1. Find the originating user request and the tool invocation within its trace.
  2. Confirm that the tool result records failure and an appropriate error category.
  3. Check whether the agent retries, changes its arguments or reports a limitation.
  4. Verify that the final task outcome does not become success merely because a later request returned.

Keep retry attempts distinguishable from unique tasks. Otherwise a dashboard can make a worsening workflow look busy rather than broken.

Turn traces into decisions, not storage volume

Sentry's Agent Tracing examples connect execution records to evaluation and spending workflows. That is a useful direction for a monitoring design: start with the decision a signal should support.

For example, tool failures might trigger investigation of a dependency, while repeated successful but irrelevant calls suggest a planning problem. These are diagnostic hypotheses to test, not automatic conclusions from a single metric. Avoid recording raw secrets or unrestricted user content merely to make traces more detailed.

A useful acceptance check is simple: a known failing tool must be discoverable from the affected task, and the on-call engineer must be able to tell failure from retry and eventual recovery. If that path is missing, adding another chart will not fill it.

Sources

Why developers should care

A monitoring system that sees only transport failures can miss the very tool errors preventing an agent from completing its task.

  1. 1Add a controlled failing-tool test and confirm that its result appears in your traces and per-tool failure reporting, even when transport succeeds.