execute_nrql_query
Execute custom NRQL queries to retrieve NewRelic analytics, metrics, and data for exploration and monitoring purposes.
Instructions
Execute an arbitrary NRQL query against NewRelic. Returns raw query results with metadata. Use this for custom analytics, metrics, and data exploration.
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": "execute_nrql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The NRQL query to execute. Example: SELECT count(*) FROM Transaction SINCE 1 hour ago | |
| timeout | No | Query timeout in seconds (default: 30, max: 120) |