Attach key/value properties to a JSM alert
jsm_add_alert_extra_propertiesAdd or overwrite structured key/value context on a JSM alert—such as runbook, region, or trace ID—so downstream tools can read it programmatically.
Instructions
Attach arbitrary key/value context to a JSM alert, or overwrite properties already on it.
Extra properties are the structured half of an alert, next to the prose in its description: a runbook link, the region, the deploy that preceded it, a trace id. Unlike a note they can be read back programmatically by whatever picks the alert up next.
Args:
alert_id (string): the full alert id (not the tinyId)
extra_properties (object): key/value pairs; values may be strings, numbers or booleans
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
This merges by key: keys not mentioned are left alone, and a key that already exists is overwritten without warning. Read the alert first with jsm_get_alert if you need to know what a key currently holds.
Examples:
"Note the runbook on this alert" -> extra_properties={"runbook": "https://wiki/runbooks/db-failover"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert_id | Yes | Full alert id, e.g. '9b251e07-73c9-4907-9996-8cb53a6a20d0-1704440650350'. This is NOT the short tinyId shown in the JSM UI — get the full id from jsm_list_alerts first. | |
| extra_properties | Yes | Key/value context to attach, e.g. {'runbook': 'https://…', 'region': 'us-east-1'}. A key that already exists is overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | ||
| alert_id | Yes | ||
| requestId | No |