Skip to main content
Glama
adm-alvin-decruz

New Relic MCP Server

create_nrql_condition

Define a NRQL-based alert condition, attach it to a policy, and set thresholds to detect metric breaches.

Instructions

Create a NRQL alert condition

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the alert condition
priorityNoAlert priority (CRITICAL, HIGH, MEDIUM, LOW)CRITICAL
policy_idYesAlert policy ID to attach the condition to
thresholdYesAlert threshold value
nrql_queryYesNRQL query for the condition
descriptionNoDescription of the alert condition (optional)
aggregation_windowNoAggregation window in seconds (30-1200)
threshold_durationNoDuration in seconds for threshold breach (60-7200)
threshold_operatorNoThreshold operator (ABOVE, BELOW, EQUAL)ABOVE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the creation action and does not reveal side effects, prerequisites like an existing policy_id, failure behavior, or whether the operation is irreversible. This is a state-changing operation with no supporting behavioral context.

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?

Single sentence, no filler, and the action is front-loaded. However, it is so sparse that it pushes the burden of context onto the schema and sibling names rather than the description itself.

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

Completeness2/5

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

For a 9-parameter create operation with no output schema and no annotations, this description is not complete enough. It omits what a successful call returns, whether the created condition ID is needed for follow-up calls, and how it relates to update/delete sibling operations. An agent cannot fully understand the tool's role in a workflow.

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 description coverage is 100%, so the input schema already documents all parameters meaningfully. The description itself adds no parameter-level detail, but the baseline of 3 applies because the schema does the heavy lifting.

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?

States a specific verb and resource: 'Create a NRQL alert condition.' This clearly distinguishes it from siblings like update_nrql_condition and delete_nrql_condition. The action and target are unambiguous.

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

Usage Guidelines2/5

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

The description provides no when-to-use guidance, no exclusions, and no explicit pointer to alternatives such as update_nrql_condition or list_alert_conditions. An agent would have to infer usage context entirely from sibling tool names.

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