Create a workflow (Nomid staff)
create_workflowNomid staff only (Nomid system admins; refused for everyone else). Creates a workflow in one company: an automatic rule Nomid runs on every status report of its Android Management devices. Use company to name the company; another customer's needs an "All Nomid customers" connection. Read the company's workflows with read_workflows first, so as not to add a second rule doing the same thing.Actions: force-password-on-enrollment sets params.password as the screen lock of a device right after it enrolls (within params.secondsAfterEnrollment, default 300); changed-to-policy sets it when a device moves from a policy whose path name contains params.previousPolicyPathNameContains to one containing params.currentPolicyPathNameContains; sim-changed tags a device sim-changed or sim-removed. Conditions compare text (policy path names, the status name, the device path name) and all must match; with none, the workflow runs on every enrolled device of the company. For force-password-on-enrollment, name the policy a device enrolls into with policyPathNameChangingTo (it has no policyPathName yet). params.password needs 6 characters or more, because Android 14 and later refuse a shorter PIN; params.shortPasswordAcknowledged true accepts a shorter one only for a fleet that will never run Android 14. Unknown keys, fields, action keys and params are refused. This changes a real fleet with no approval step in Nomid: show the user the workflow you will write (without repeating the PIN back if they did not ask) and get an explicit yes first. The answer shows the saved workflow without its password.
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>",
"enabled": "<enabled>",
"trigger": "<trigger>",
"action": "<action>"
},
"name": "create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short name, at most 20 characters. | |
| action | Yes | What the workflow does: the actions to run and the params they read. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| enabled | Yes | Whether it runs from now on. | |
| trigger | Yes | When the workflow runs: on every status report of a device in the company whose conditions all match. |