create_automation
Save a new automation as an off draft with any problems listed, so nothing runs until switched on. Validate it before testing.
Instructions
Save a new automation. It is always saved switched off (a draft), with any problems listed, so nothing runs until the user switches it on. Check it with validate_automation first; afterwards test it with test_automation. Counts toward the plan's automations. A graph is {"nodes":[…],"edges":[…]}, a tree from exactly one trigger. Nodes: {"id","kind","type","config"}; kind is "trigger" (type: a trigger key, id "trigger"), "action" (type: an action key) or "condition" (no type; config {"cel": "<CEL expression over the trigger's fields>"}). Edges: {"from","to"} in the order nodes run; edges leaving a condition carry "branch": "true" (Yes) or "false" (No). Settings marked placeholders accept {{field.key}} from the trigger's fields, e.g. "{{license.id}}". CEL is typed: compare ints with ints (license.machinesUsed > 2), doubles with doubles (2.0), timestamps with timestamp("2026-01-01T00:00:00Z") or now ± duration("72h"); string fields with options only take those values.
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": {
"name": "<name>",
"graph": "<graph>"
},
"name": "create_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | what it does, e.g. 'Suspend shared licenses' (at most 80 characters) | |
| graph | Yes | ||
| description | No | one or two sentences for the team (at most 500 characters) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | what to do next | |
| automation | Yes |