Create, update, and delete New Relic alert policies via the NerdGraph API

domain: docs.newrelic.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Query policiesSearch under actor.account(id).alerts to list or filter policies, using searchCriteria: { ids: [...] } or { nameLike: "..." } as needed.
  2. Paginate large result sets by requesting nextCursor and passing it back into policiesSearch(cursor: ...) until an empty cursor is returned.
  3. Create a policy with the alertsPolicyCreate mutation, supplying a name and an incidentPreference (e.g. PER_CONDITION).
  4. Update a policy with alertsPolicyUpdate, supplying only the fields that need to change (e.g. just name to rename it).
  5. Delete a policy with alertsPolicyDelete(accountId, id).

Known gotchas

Related routes

Configure New Relic alert notification destinations via the NerdGraph API
docs.newrelic.com · 5 steps · unrated
Query and mutate New Relic data using the NerdGraph GraphQL API
docs.newrelic.com · 5 steps · unrated
Create and manage New Relic Synthetics monitors via the NerdGraph GraphQL API
docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-synthetics-tutorial · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans