Skip to main content
Glama

Propose a new policy

create_policy

Propose creating a new policy, optionally with setting changes. With fromPolicyId it is a copy (duplicate) of that policy - its apps, settings and restrictions. Without it, it is a new policy from scratch with Nomid's defaults (the Nomid Settings agent, device reporting, Play Protect enforced, the standard Android home screen, no other apps), in the default group. When the user asks for a new policy without naming one to copy, create it from scratch; do not pick a policy to copy for them. Before a policy from scratch, unless the user already said what it is for or what it needs, or asked for it to be created right away, ask what the policy is for (which devices, used by whom, for what); then, only for what matters for that use and was not answered yet, ask once more in a few short questions: one app in kiosk mode or several apps, which apps or websites, Wi-Fi, and what to lock down (camera, USB, factory reset, Play Store). Then propose it with the settings that follow, and its apps once it exists. Once it exists, add apps with propose_policy_change with apps and set Wi-Fi and anything else with propose_policy_change with edits; once its apps are in, turn kiosk mode on (or the launcher, with its dock) with propose_policy_change with homeScreen. Nothing is created yet: this returns a proposal with the change list. Show it to the user and get their explicit approval. No device uses the new policy until one is moved to it (send_device_command with command change_device_policy). Once the user approves, apply it with apply_policy_proposal (a person approves a HIGH impact one in the Nomid portal instead: give the user its approvalUrl).

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": {
      "displayName": "<displayName>"
    },
    "name": "create_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesNoSettings to change, each at most once. Ids and allowed values come from get_policy_settings (the same for every policy).
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
displayNameYesName of the new policy, as shown in the portal (at most 30 characters).
fromPolicyIdNoPath name of the existing policy to copy (apps, settings, restrictions) - "pathName" from list_policies. Omit it to create a policy from scratch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, which is a low bar, and the description adds substantial context beyond it: nothing is created yet, a proposal with a change list is returned, explicit user approval is required, HIGH impact proposals must be approved in the portal via approvalUrl, and no device adopts the policy until change_device_policy is sent. The only reason this is not higher is that the description never says what the returned proposal object contains or how to reference it later, leaving a gap between 'show it to the user' and the apply step.

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?

The definition is front-loaded with the copy-versus-scratch distinction and the 'nothing is created yet' caveat, which is the right priority order. It is dense and long, and the enumerated questionnaire script ('one app in kiosk mode or several apps, which apps or websites, Wi-Fi...') reads as workflow instruction rather than tool semantics, which is the main thing keeping it below a 5.

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 proposal-creating tool with no output schema and four parameters, the description covers the full lifecycle: intake, proposal return, approval, application, and device assignment. Nothing an agent needs to call it correctly or to avoid telling the user a policy already exists is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining the semantics of omitting fromPolicyId (exact defaults: Nomid Settings agent, device reporting, Play Protect, standard home screen, no other apps, default group) and what copying carries over (apps, settings, restrictions). The changes array is only loosely described as 'setting changes' since it defers to get_policy_settings and propose_policy_change for the actual values.

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 opening sentence names the specific verb (propose creating) and resource (a policy) and immediately splits the two modes: copy via fromPolicyId versus from scratch with named Nomid defaults. The sibling propose_policy_change is explicitly distinguished by role (post-creation edits), so an agent can pick correctly without opening the 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 states explicitly when to copy versus build from scratch, including the directive not to pick a policy to copy on the user's behalf. It also spells out the intake sequence (what to ask and when to stop asking), the downstream calls to make once the policy exists, and the approval path, so the when/how decisions are not left to inference.

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