Create, replace or delete preset
manage_presetCreate, replace, or delete GenieACS presets that apply configurations to devices matching a precondition at their next inform. Confirm matching devices before overwriting a fleet-wide rule.
Instructions
Create, replace or delete a GenieACS preset. A preset is a fleet-wide rule: at their next inform, every device matching its precondition gets its configurations applied, so a broad precondition (or an empty one) reconfigures the whole fleet. Confirm the precondition and the devices it matches (search_devices with the same filter) before a put. action="put" creates or overwrites the preset with body; action="delete" removes it. body is a JSON object: weight (integer, higher wins), precondition (a MongoDB-style filter as a JSON string, e.g. "{"_tags":"office"}"), and configurations (an array of {type: "value" | "provision" | "add_object" | "delete_object", ...}). Example body: {"weight":0,"precondition":"{"_tags":"pilot"}","configurations":[{"type":"provision","name":"myScript"}]}. Read genieacs://presets/list first.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | For action="put": the preset document as a JSON object string, with weight, precondition and configurations. Ignored for "delete". | |
| name | Yes | The preset name, its id on GenieACS. It cannot contain a dot. | |
| action | Yes | "put" creates or replaces the preset, "delete" removes it. |