{"openapi":"3.1.0","info":{"title":"New Relic Alerts (BYOK) API","version":"0.1.0","description":"New Relic Alerts (BYOK) lets an AI assistant read your own New Relic Alerts data through the New Relic Alerts API with a key you supply (New Relic user API key (US data center)). Read-only: 6 tools (list_alert_policies, get_alert_policy, search_nrql_conditions, get_nrql_condition, list_muting_rules, get_muting_rule). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-newrelic-alerts.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-newrelic-alerts/docs"},"termsOfService":"https://connectorbay.com/byok-newrelic-alerts/terms"},"servers":[{"url":"https://byok-newrelic-alerts.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-newrelic-alerts/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_alert_policies":{"post":{"operationId":"list_alert_policies","summary":"List alert policies of an account with id, name, incident preference (PER_POLICY, PER_CONDITION, PER_CONDITION_AND_TARGE","description":"List alert policies of an account with id, name, incident preference (PER_POLICY, PER_CONDITION, PER_CONDITION_AND_TARGET) and entity guid. Page with the cursor. Use for \"Which alert policies does my New Relic account have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"},"cursor":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer to get the next page; leave empty for the first page.","title":"Cursor"}},"required":["account_id"],"title":"list_alert_policiesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_alert_policy":{"post":{"operationId":"get_alert_policy","summary":"Get one alert policy by id: name, incident preference and entity guid. Use for \"Show New Relic alert policy 456\".","description":"Get one alert policy by id: name, incident preference and entity guid. Use for \"Show New Relic alert policy 456\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"},"policy_id":{"description":"Alert policy id (a number as text) from list_alert_policies.","maxLength":30,"title":"Policy Id","type":"string"}},"required":["account_id","policy_id"],"title":"get_alert_policyArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_nrql_conditions":{"post":{"operationId":"search_nrql_conditions","summary":"Search NRQL alert conditions of an account, optionally by exact name, name fragment, policy id or query fragment. Return","description":"Search NRQL alert conditions of an account, optionally by exact name, name fragment, policy id or query fragment. Returns query, thresholds (terms), signal settings and enabled flag. Page with the cursor. Use for \"Which NRQL alert conditions watch the Transaction event in New Relic\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"},"name_like":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only conditions whose name contains this text.","title":"Name Like"},"policy_id":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only conditions of this alert policy id.","title":"Policy Id"},"query_like":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only conditions whose NRQL query contains this text, for example 'Transaction'.","title":"Query Like"},"cursor":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from nextCursor of the previous answer to get the next page; leave empty for the first page.","title":"Cursor"}},"required":["account_id"],"title":"search_nrql_conditionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_nrql_condition":{"post":{"operationId":"get_nrql_condition","summary":"Get one NRQL alert condition by id: query, thresholds, signal and expiration settings, policy id and enabled flag. Use f","description":"Get one NRQL alert condition by id: query, thresholds, signal and expiration settings, policy id and enabled flag. Use for \"Show New Relic NRQL alert condition 123\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"},"condition_id":{"description":"NRQL condition id (a number as text) from search_nrql_conditions.","maxLength":30,"title":"Condition Id","type":"string"}},"required":["account_id","condition_id"],"title":"get_nrql_conditionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_muting_rules":{"post":{"operationId":"list_muting_rules","summary":"List muting rules that silence notifications: name, description, enabled flag and the matching conditions. Use for \"Whic","description":"List muting rules that silence notifications: name, description, enabled flag and the matching conditions. Use for \"Which New Relic muting rules are enabled\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"}},"required":["account_id"],"title":"list_muting_rulesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_muting_rule":{"post":{"operationId":"get_muting_rule","summary":"Get one muting rule by id with its conditions and schedule (start, end, time zone, repeat). Use for \"Show New Relic muti","description":"Get one muting rule by id with its conditions and schedule (start, end, time zone, repeat). Use for \"Show New Relic muting rule 77\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"account_id":{"description":"New Relic account id (a number such as 1234567). List your accounts with the New Relic connector's list_accounts tool.","maximum":1000000000000,"minimum":1,"title":"Account Id","type":"integer"},"rule_id":{"description":"Muting rule id (a number as text) from list_muting_rules.","maxLength":30,"title":"Rule Id","type":"string"}},"required":["account_id","rule_id"],"title":"get_muting_ruleArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}