Skip to main content
Glama

Change a workflow (Nomid staff)

update_workflow
DestructiveIdempotent

Nomid staff only (Nomid system admins; refused for everyone else). Changes one workflow of a company, by its uuid from read_workflows; company names the company as in read_workflows. Only what you give changes: enabled alone turns it off (false) or on (true), and is the way to stop a workflow; trigger replaces the trigger; action replaces the whole action, params included. read_workflows never shows the saved password, so to change other params and keep it, give action without params.password and keepPassword true.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": {
      "uuid": "<uuid>"
    },
    "name": "update_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name, at most 20 characters.
uuidYesThe workflow's uuid, from read_workflows.
actionNoWhat the workflow does: the actions to run and the params they read.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
enabledNofalse stops it from running; true runs it again.
triggerNoWhen the workflow runs: on every status report of a device in the company whose conditions all match.
keepPasswordNoWith action: keep the saved params.password instead of giving one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint and openWorldHint, but the description adds much more: staff-only authorization ('refused for everyone else'), partial-update merge semantics, replacement semantics for trigger and action, rejection of unknown keys/fields/params, the Android 14 six-character PIN constraint, and that the response omits the saved password. This is behavioral context an agent cannot obtain from the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every sentence carries unique, load-bearing information and the mutation constraints are front-loaded after the access note. The cost is formatting: it is a single dense paragraph with a run-together sentence ('keepPassword true.Actions:'), so scanning is harder than it needs to be for a description this long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, deeply nested mutation with no output schema, the description covers prerequisites, merge behavior, per-action semantics, failure modes (unknown keys refused), and the shape of the return value ('shows the saved workflow without its password'). Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description goes well beyond it: it explains each action key's runtime meaning (force-password-on-enrollment timing, changed-to-policy path-name matching, sim-changed tagging), that conditions are ANDed and empty conditions mean all enrolled devices, and why policyPathNameChangingTo is used for enrollment. It also clarifies the action/keepPassword interaction, which the schema only hints at.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Changes one workflow of a company') and pins identity to 'its uuid from read_workflows', which lets an agent distinguish this from create_workflow or read_workflows without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit operating guidance: 'Only what you give changes', 'enabled alone turns it off (false) or on (true), and is the way to stop a workflow', and the keepPassword recipe for editing other params while retaining the saved PIN. It also states a mandatory pre-flight ('show the user the workflow you will write ... and get an explicit yes first'), which is exactly the when/how guidance an agent needs before a destructive call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources