Skip to main content
Glama
SH-G401
by SH-G401

End-to-end transaction

azure_appinsights_trace
Read-onlyIdempotent

View the full operation trace in Application Insights: requests, dependencies, exceptions, and logs across services, in time order. Use to diagnose failures end-to-end.

Instructions

Shows everything recorded for one operation ID in Application Insights, in time order: the incoming request, outgoing dependency calls, exceptions with stack details, and log traces, across all services. Get operation IDs from azure_appinsights_failures (sampleOperationId) or from a log query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoHow many hours to look back (default 168, max 720).
operationIdYesOperation ID (trace ID).
appInsightsIdYesApplication Insights resource ID, or the ID of an app (App Service, Function app, Container App) linked to one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, it discloses that results are time-ordered and include request, dependency, exception, and trace data across services. This gives an accurate picture of the call result without an output schema, and there is no contradiction with the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two information-dense sentences with zero waste. The core result is front-loaded, and the cross-reference to the failures tool is placed at the end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only trace tool with no output schema, the description enumerates what will be returned and in what order, while the schema and annotations handle parameters and side effects. An agent has enough context to call and interpret this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already covers all three parameters with 100% description coverage. The description adds real value by pointing to azure_appinsights_failures.sampleOperationId and clarifying that operationId is the trace key.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ('Shows') with a precise resource ('everything recorded for one operation ID'), enumerates content and ordering, and notes cross-service scope. This clearly differentiates it from service-specific log tools like azure_appservice_logs and azure_containerapp_logs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes the use case: trace one operation end-to-end across services, and tells agents where to obtain valid operation IDs. It stops short of explicitly stating when not to use it or naming the alternative for single-service logs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.