Skip to main content
Glama
asafkiv

AppDynamics MCP Server

by asafkiv

Create Health Rule

appd_create_health_rule

Create health rules for AppDynamics applications by defining metric thresholds, conditions, and entity scopes for APM or SIM monitoring.

Instructions

Create a new health rule for an application.

Supports APM and SIM (Server & Infrastructure Monitoring) entity types. At least one critical condition is required.

Args:

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

  • name (string): Health rule name

  • enabled (boolean, default true)

  • affectedEntityType: BUSINESS_TRANSACTION_PERFORMANCE | APPLICATION_PERFORMANCE | TIER_NODE_HEALTH | TIER_NODE_TRANSACTION_PERFORMANCE | BACKEND_CALL_PERFORMANCE | SERVICE_ENDPOINT_PERFORMANCE | CUSTOM

  • affectedTier (string, optional): Scope to a specific tier (TIER_NODE_HEALTH / TIER_NODE_TRANSACTION_PERFORMANCE only)

  • affectedNode (string, optional): Scope to a specific node (takes precedence over affectedTier)

  • customEntityType (string, optional): Entity type for CUSTOM rules — use "SERVER" for SIM nodes

  • customEntityName (string, optional): Entity name for CUSTOM rules — use the server/node hostname

  • criticalConditions (array): at least one condition with metricPath, threshold, operator

  • warningConditions (array, optional): same structure

  • conditionAggregationType (ALL|ANY, default ALL)

  • useDataFromLastNMinutes (default 30)

  • waitTimeAfterViolation (default 30)

APM custom metrics (machine agent on APM app): use affectedEntityType=TIER_NODE_HEALTH with affectedTier or affectedNode. metricPath must be RELATIVE to the entity (e.g. "Custom Metrics|MyMetric").

SIM / URL Monitor metrics: use affectedEntityType=CUSTOM, customEntityType="SERVER", customEntityName=. metricPath must be the FULL absolute path starting with "Application Infrastructure Performance|...". Operators supported: GREATER_THAN, LESS_THAN, GREATER_THAN_EQUALS, LESS_THAN_EQUALS, EQUALS, NOT_EQUALS. Example: { metricPath: "Application Infrastructure Performance|Root|Individual Nodes|myhost|Custom Metrics|URL Monitor|SvcA|Status", threshold: 4, operator: "NOT_EQUALS" }

Returns: Created health rule object with assigned ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHealth rule name.
enabledNoWhether the rule is enabled.
applicationYesApplication name or numeric ID.
affectedNodeNoScope to a specific node (TIER_NODE_HEALTH / TIER_NODE_TRANSACTION_PERFORMANCE only). Takes precedence over affectedTier when both are provided.
affectedTierNoScope to a specific tier (TIER_NODE_HEALTH / TIER_NODE_TRANSACTION_PERFORMANCE only). Use when custom metrics only exist on nodes in a particular tier.
customEntityNameNoEntity name for CUSTOM (SIM) rules. Use the server hostname (e.g. ip-10-0-1-163.eu-west-1.compute.internal).
customEntityTypeNoEntity type for CUSTOM (SIM) rules. Use "SERVER" for Server & Infrastructure Monitoring nodes.
warningConditionsNoWarning threshold conditions.
affectedEntityTypeYesEntity type the health rule applies to.
criticalConditionsYesCritical threshold conditions (at least one required).
waitTimeAfterViolationNoWait time in minutes before re-alerting.
useDataFromLastNMinutesNoEvaluation window in minutes.
conditionAggregationTypeNoALL = all conditions must be met; ANY = any condition triggers.ALL
Behavior4/5

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

Annotations indicate readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true. The description adds behavioral details: it creates a new rule, returns the object with ID, requires at least one condition, and explains metric path differences per entity type. No contradictions. Could mention permissions, but overall good.

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 somewhat long but well-structured with sections for APM, SIM, operators, and an example. It front-loads the core purpose and requirements (application, name, entity type, critical conditions). Every sentence serves a purpose, though could be slightly tightened.

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

Completeness4/5

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

Given 13 parameters and no output schema, the description covers creation details well: return value, entity types, metric path rules, and conditions structure. It addresses both common and edge cases (CUSTOM entity for SIM). Missing error handling (e.g., duplicate name) but covers essential context for an agent to invoke correctly.

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

Parameters5/5

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

Schema coverage is 100% (baseline 3), but the description adds significant value beyond the schema. It explains metric path formats for APM (relative) vs SIM (absolute), provides an example, clarifies that affectedNode overrides affectedTier, and notes which entity types require which parameters. This substantially aids correct parameter usage.

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 states 'Create a new health rule for an application' with specific supported entity types (APM, SIM) and a clear requirement for at least one critical condition. It distinguishes from siblings like update/enable/delete health rules, making the tool's purpose unambiguous.

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 provides extensive guidance: it explains when to use different entity types (APM vs SIM), how to construct metric paths for each, and includes examples. While it doesn't explicitly state when not to use the tool, the context of creation vs updating is clear from siblings.

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