edit_monitor

Apply changes to an existing monitor.

Apply changes to an existing monitor.

Destructive · Writes data · Idempotent · Calls external systems. This tool can modify or delete data. Review the arguments before letting an agent call it.

Parameters

FieldTypeRequiredDescription
acknowledgebooleanNoSet to true after user approves continuing past the edit limit. NEVER set without explicit user approval.
activebooleanNoNew active status (true/false)
environmentstringNoNew environment JSON
input_variablesstringNoNew input variables JSON. Buckets are injected automatically from the variants array (or preserved from the existing monitor during auto-migration) — you do not need to craft them manually.
monitor_idnumberYesMonitor ID to edit
namestringNoNew monitor name
ownersstringNoNew owners JSON
schedulingstringNoNew scheduling JSON
test_onlybooleanNoSet test_only flag
variantsarrayNoPin variants for the monitor's variable groups. Each entry is "5" (numeric variant ID) or "GroupName:VariantName". Groups not pinned retain their existing bucket; for legacy monitors mid-migration, unpinned groups default per-variable. Use to re-pin specific groups during the edit.

Example arguments

Illustrative arguments an agent supplies when calling this tool:

{
  "monitor_id": 0
}

Description

ALWAYS preview first with preview_monitor_edit.

Auto-migration:
  Legacy monitors (variable_group != 0 or input_variables lack buckets)
  auto-migrate to V3 form on edit: every input_variable gets a bucket,
  and the legacy variable_group field is cleared. The migration is
  idempotent — re-editing an already-V3 monitor is a no-op on the bucket
  side. Migration is unconditional: it's correct by construction, so
  there is no opt-out.

  When the underlying test references multiple variable groups, variables
  in groups OTHER than the legacy variable_group use their own group's
  default variant (unless variants overrides). Use the variants array to
  pin non-default variants for specific groups during the migration edit.

Protected fields: test_id and product_id CANNOT be changed (locked by the API). To change the underlying test, delete the monitor and create a new one.
A per-monitor edit limit is enforced (10). Check edits_remaining in the response.
If this fails with HTTP 400/404, the monitor may have been deleted — verify with get_monitor first.

What's next?

All MCP tools

Browse the full tool reference by category.

Connect a client

Point Claude, Cursor, or Claude Code at the server.

Last updated on