nrql_query
Execute NRQL queries to retrieve New Relic telemetry data covering transactions, errors, spans, logs, and infrastructure metrics.
Instructions
Run a NRQL query against your New Relic account and return results.
Use this to query any telemetry data: transactions, errors, spans, logs, infrastructure metrics, custom events, etc.
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": "nrql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A valid NRQL query string. Example: "SELECT count(*) FROM Transaction SINCE 1 hour ago FACET appName" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |