Skip to main content
Glama
thrashy

New Relic MCP Server

by thrashy

query_nrql

Execute NRQL queries against New Relic to retrieve and analyze performance data, logs, traces, and metrics for monitoring and troubleshooting.

Instructions

Execute a NRQL query against New Relic. Common event types: Transaction, TransactionError, Span, Log, Metric, KeyTransaction, ExternalCall, SyntheticCheck, PageView, MobileSession. Tips: Use SINCE X hours/days ago for time ranges (e.g. SINCE 3 hours ago). For high-volume apps, use shorter time windows (1-3 hours) to avoid query timeouts. Use TIMESERIES for trend data over time. Use FACET for grouping results. Prefer uniqueCount() over uniques() for high-cardinality attributes. Use LIMIT to cap result rows (default is 10 for FACET queries). Time range formats: SINCE 1 hour ago, SINCE '2024-01-15 00:00:00', SINCE timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNRQL query to execute
account_idNoNew Relic account ID (optional, uses default if not provided)
Behavior4/5

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

With no annotations, the description carries full burden. It discloses potential query timeouts for high-volume apps and recommends shorter time windows. It also mentions default LIMIT behavior. However, it does not explicitly state that the tool is read-only (NRQL is typically read-only) or address rate limits or authentication requirements.

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?

The description is relatively long but efficiently packed with useful tips. It is front-loaded with the core purpose, then lists event types and tips. While every sentence adds value, it could be slightly more concise by grouping tips more tightly.

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

Completeness4/5

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

Given the complexity of NRQL and the absence of an output schema, the description covers query construction well but does not mention the return format (e.g., results as JSON) or pagination. The tips are comprehensive for typical usage, but a brief note on expected output would improve completeness.

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

Parameters5/5

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

Schema coverage is 100% with descriptions for both parameters, but the description adds significant value beyond the schema by listing common event types, providing NRQL tips (time ranges, TIMESERIES, FACET, uniqueCount(), LIMIT), and explaining time range formats. This helps users construct effective queries.

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?

The description clearly states 'Execute a NRQL query against New Relic' with a specific verb and resource. It distinguishes itself from sibling tools like entity_search or get_app_performance by offering a general NRQL execution capability, and provides common event types for context.

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

Usage Guidelines4/5

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

The description offers detailed tips on when to use features like SINCE, TIMESERIES, FACET, and LIMIT, and advises on time ranges for high-volume apps to avoid timeouts. However, it does not explicitly state when not to use this tool or provide direct comparisons to sibling tools for specific use cases.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thrashy/mcp-newrelic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server