Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Nerdgraph Query

nerdgraph_query

Run custom NerdGraph GraphQL queries to retrieve or modify New Relic observability data using a query and optional variables.

Instructions

Execute a custom NerdGraph GraphQL 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": {
      "query": "<query>"
    },
    "name": "nerdgraph_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
variablesNo

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 / query / title
      Removed value: -"Query"
    • removedInput schema / properties / variables / title
      Removed value: -"Variables"
    • removedInput schema / title
      Removed value: -"nerdgraph_queryArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"nerdgraph_queryOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"nerdgraph_queryArguments"
  3. First observed

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It does not say whether the tool is read-only or can execute GraphQL mutations, what permissions are required, whether rate limits apply, or what happens with malformed queries.

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?

The description is a single front-loaded sentence with no wasted words. Its brevity is appropriate, though the content is too sparse to compensate for missing behavioral and parameter guidance.

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 generic GraphQL execution tool with two undocumented parameters, no annotations, and potential mutation capability, the description is substantially incomplete. The output schema helps with return values, but critical safety and usage context is absent.

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

Parameters2/5

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

Schema description coverage is 0%, so the description should explain the query and variables parameters. It provides no detail beyond the parameter names, leaving an agent to infer that query is a GraphQL document and variables is an optional variables object.

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

Purpose4/5

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

The description states a specific verb and resource: execute a custom NerdGraph GraphQL query. It is clear what the tool does, but it does not distinguish this from sibling query tools such as query_nrql or explain when a custom GraphQL query is preferable to the specialized getters.

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?

There is no guidance on when to use this tool versus query_nrql, search_entities, or the many specific getter tools. It also omits any prerequisites, such as authentication scopes or whether custom queries may include mutations.

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