Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Query Nrql

query_nrql

Run NRQL queries against New Relic monitoring data for a specified account to retrieve observability metrics, events, logs, and traces.

Instructions

Execute an NRQL query

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account_id": "<account_id>",
      "nrql": "<nrql>"
    },
    "name": "query_nrql"
  }
}

Input Schema

NameRequiredDescriptionDefault
nrqlYes
account_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / account_id / title
      Removed value: -"Account Id"
    • removedInput schema / properties / nrql / title
      Removed value: -"Nrql"
    • removedInput schema / title
      Removed value: -"query_nrqlArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"query_nrqlOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"query_nrqlArguments"
  3. First observed

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden yet discloses almost nothing. 'Execute a query' implies a data retrieval operation, but there is no mention of whether it mutates anything, permission or credential requirements, query cost/time limits, result caps, or pagination.

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

Conciseness3/5

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

It is a single front-loaded sentence with no filler, but that brevity comes at the cost of substance rather than from efficient packaging. It is adequately sized yet communicates only the minimum.

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?

An output schema exists so return value documentation is not strictly required, but for a 2-parameter, jargon-heavy query tool with no annotations the description should explain the NRQL argument and the account scope. It also leaves the sibling ambiguity with nerdgraph_query unresolved, so an agent lacks enough to invoke this confidently.

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

Parameters1/5

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

Schema description coverage is 0% for both required parameters. The description does not explain what 'nrql' expects (query syntax, supported clauses) or what 'account_id' refers to or where an agent would obtain it, so nothing is added beyond the bare schema property names.

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

Purpose3/5

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

The description pairs a specific verb ('Execute') with a specific resource ('an NRQL query'), so the core operation is discernible. However, 'NRQL' is unexplained domain jargon and there is no differentiation from the sibling 'nerdgraph_query', which an agent could reasonably confuse with this tool.

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 offers no guidance on when to use this tool versus the many list/get siblings or versus nerdgraph_query. It does not state whether the query is read-only, what account scope means, or any prerequisite for composing valid NRQL.

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