Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Get Application Metric Data

get_application_metric_data

Retrieve metric data for a New Relic application by specifying app ID, metric names, and an optional time range.

Instructions

Get metric data for an application

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": {
      "app_id": "<app_id>",
      "metric_names": "<metric_names>"
    },
    "name": "get_application_metric_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes
to_timeNo
from_timeNo
metric_namesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.3.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / app_id / title
      Removed value: -"App Id"
    • removedInput schema / properties / from_time / title
      Removed value: -"From Time"
    • removedInput schema / properties / metric_names / title
      Removed value: -"Metric Names"
    • removedInput schema / properties / to_time / title
      Removed value: -"To Time"
    • removedInput schema / title
      Removed value: -"get_application_metric_dataArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"get_application_metric_dataOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"get_application_metric_dataArguments"
  3. First observed

TDQS

C2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and discloses almost nothing: it does not say how from_time/to_time defaults behave, whether unsampled or aggregated data is returned, what units or time granularity apply, or any rate-limit/permission behavior. Only the implicit read-only nature of a GET-style metric fetch is conveyed.

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 short front-loaded sentence with no filler, but the brevity stems from under-specification rather than efficiency. There is nothing extraneous, yet almost nothing useful either.

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 values need not be explained, but for a four-parameter tool with zero schema documentation and a near-duplicate sibling (get_application_metrics), the description leaves the agent without the information needed to invoke it correctly or choose it 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% and the description adds no meaning for any of the four parameters. It never mentions app_id, metric_names, or the from_time/to_time window, so an agent cannot tell whether times are ISO strings, epoch values, or how metric_names are formatted.

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

Purpose2/5

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

The sentence "Get metric data for an application" restates the tool name and title almost verbatim, adding only the notion of metric data. It gives no indication of what kind of metrics, what granularity, or how it differs from the sibling tool get_application_metrics, whose name is nearly identical.

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 when-to-use guidance, no mention of when to prefer this over get_application_metrics or query_nrql, and no prerequisites such as required permissions. The agent must infer selection purely from tool names.

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