Skip to main content
Glama
New Relic MCP Server

New Relic MCP Server

by piekstra

Get Application Metrics

get_application_metrics

Retrieve available metrics for a New Relic application by app ID, with optional metric name filtering, to identify data for monitoring and analysis.

Instructions

Get available metrics 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>"
    },
    "name": "get_application_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
namesNo
app_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 / app_id / title
      Removed value: -"App Id"
    • removedInput schema / properties / names / title
      Removed value: -"Names"
    • removedInput schema / title
      Removed value: -"get_application_metricsArguments"
    • removedOutput schema / properties / result / title
      Removed value: -"Result"
    • removedOutput schema / title
      Removed value: -"get_application_metricsOutput"
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. Changed1 schema field changedv1.0.0
    • addedInput schema / title
      Added value: +"get_application_metricsArguments"
  3. First observed

TDQS

C2.7/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 behavioral burden and discloses almost nothing: no statement about read-only semantics, permissions/API-key requirements, pagination or result size, or whether the list reflects only recently reported metrics. A single clarifying sentence about it being a non-mutating discovery call would have raised this well above 2.

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?

One short, front-loaded sentence with no filler or redundancy. It is efficient, though its brevity reflects under-specification rather than disciplined compression.

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 described, but the definition still falls short for a two-parameter tool with zero schema coverage, no annotations, and a closely related sibling. Key facts an agent needs to call it correctly — the meaning of 'names' and the id format — are 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% for two parameters, and the description does not compensate: the optional 'names' array filter is never mentioned, and the expected format of 'app_id' (numeric id, name, or GUID) is left unstated. An agent cannot tell from the text whether 'names' narrows results, renames metrics, or something else.

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 gives a specific verb and resource ('Get available metrics for an application'), and the word 'available' signals this is a catalog/listing operation rather than a data fetch. It does not explicitly name the sibling get_application_metric_data to sharpen the contrast, which keeps it at 4 rather than 5.

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 prerequisites (e.g., the app must exist or be instrumented), and no reference to the obvious alternative, get_application_metric_data, which likely retrieves actual time-series values. The agent must infer the discovery-vs-query distinction entirely on its own.

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