Skip to main content
Glama
asafkiv

AppDynamics MCP Server

by asafkiv

Diagnose Issue (Root Cause Analysis)

appd_diagnose_issue
Read-onlyIdempotent

Automatically diagnose application performance issues by analyzing health violations, anomalies, and metrics with baseline comparison to identify root causes.

Instructions

Perform a two-phase automated root cause analysis for an application.

Phase 1 (topology): Fetches health violations, anomalies, error events, transaction snapshots, business transactions, tiers, nodes, and backends in parallel — correlating them into ranked root cause candidates.

Phase 2 (metrics with baseline): For each affected tier, backend, and node, fetches metrics for BOTH the current window AND a prior equivalent baseline window. Anomaly flags (isSlow, isCpuSaturated, hasGcPressure) are computed as percentage degradation vs baseline — no hardcoded absolute thresholds. Example: a backend normally at 50ms now at 600ms is flagged (+1100%); one normally at 2000ms now at 2100ms is not (+5%).

Use this when you need to quickly understand why an application is behaving badly without manually calling many separate tools.

Args:

  • application (string|number): App name or numeric ID

  • durationInMins (number, optional): Lookback window in minutes (default: 60)

  • focus (string, optional): Narrow diagnosis to 'performance', 'errors', 'availability', or 'all' (default)

Returns: A structured diagnostic report with summary, causalityChain (ordered root→effect), tierMetrics, backendAnalysis, infrastructureInsights (all with baseline comparison), ranked root cause candidates, timeline, error breakdown, sample snapshots (with sqlQueries/httpCalls/errorStackTrace), and metric-aware investigation steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNoNarrow the diagnosis focus. 'performance' = slow/stall events + snapshots + anomalies; 'errors' = error events + crash events + snapshots; 'availability' = health violations + anomalies; 'all' (default) = everything.
applicationYesApplication name or numeric ID.
durationInMinsNoTime window to analyse in minutes. Defaults to 60.
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds extensive behavioral detail beyond annotations: it explains the two-phase process (parallel topology fetch then metrics with baseline comparison), the use of percentage degradation for anomaly flags (with concrete example), and the absence of hardcoded thresholds. No contradiction with annotations.

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

Conciseness4/5

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

The description is fairly long but well-structured with clear phase breakdowns and an example. It front-loads the core purpose and phases. Every sentence provides useful information (purpose, phases, mechanism, return format). Could be slightly more concise by merging redundant statements about default focus, but overall effective.

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?

Given the tool's complexity, lack of output schema, and absence of nested objects, the description thoroughly covers what the tool does and what it returns (structured diagnostic report with causalityChain, tierMetrics, etc.). It explains the algorithm, anomaly detection method, and even includes an example. This is more than adequate for an agent to understand the tool's behavior and outputs.

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

Parameters3/5

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

Schema coverage is 100% and parameter descriptions in the schema are already clear. The tool description restates these parameters without adding significant new semantic value. It recites defaults (e.g., durationInMins defaults to 60) and explains focus options, but these are already in the schema. Baseline score of 3 is appropriate.

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?

The description explicitly states the tool performs a two-phase automated root cause analysis for applications, clearly distinguishing it from sibling tools that are individual data-fetching tools (like appd_get_anomalies, appd_get_errors). The verb 'diagnose' combined with 'root cause analysis' precisely conveys the tool's purpose.

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 advises using this tool 'when you need to quickly understand why an application is behaving badly without manually calling many separate tools.' This provides a clear use case. It does not explicitly state when not to use it, but the context of the sibling tools implies it is for comprehensive analysis rather than single-metric queries.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asafkiv/appdynamics-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server