Rename a tag everywhere
rename_tagRenames a tag across every monitor and heartbeat that carries it, so you can fix a naming scheme organization-wide without editing each item by hand.
Instructions
Rename a tag on every monitor and heartbeat that carries it; an item that already has the new name keeps one copy. Use it to fix a naming scheme across the organization; to change the tags of chosen monitors only use bulk_update_monitor_tags, and to drop a tag use delete_tag. Requires a key with the write scope. A tag nothing carries is not an error (both counts are 0). Returns from, to, monitors_updated and heartbeats_updated. Example: {"from": "prod", "to": "env:prod"}
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": {
"from": "<from>",
"to": "<to>"
},
"name": "rename_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The new name. Each tag is trimmed, lowercased and deduplicated on write, at most 50 characters of a-z, 0-9 and : _ . / -, starting with a letter or digit. Reuse names from list_tags rather than inventing near-duplicates. | |
| from | Yes | The existing tag, as list_tags shows it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | Yes | ||
| monitors_updated | Yes | ||
| heartbeats_updated | Yes |