Skip to main content
Glama

Create provisioning QR code

create_provisioning_qr_code

Create a QR code that enrolls a new or factory-reset Android device into this company under the given policy. Each call creates a new enrollment token that stops working 24 hours later, so create one only when the user asks for a QR code to enroll devices, and never reuse an older one. The QR image is delivered to the user directly with this result: do not describe, transcribe or rebuild it. To use it, tap the welcome screen of the device's setup wizard six times and scan the code. VR-only policies cannot be provisioned with a QR code. A personal (BYOD) device that is already set up needs no QR code and no reset: it gets a work profile from the policy's Personal enrollment link and token in the portal (New device > Personal).

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": {
      "policyId": "<policyId>"
    },
    "name": "create_provisioning_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
policyIdYesPath name of the policy the device enrolls with - the "pathName" returned by list_policies.
wifiSsidNoOptional Wi-Fi network the device joins during setup. Only when the user asks for it.
wifiHiddenNoWhether wifiSsid is a hidden network. Defaults to false.
wifiPasswordNoPassword of wifiSsid. Only a password the user gave in this conversation; never guess it.
wifiSecurityNoSecurity of wifiSsid. Defaults to WPA when a password is given, NONE otherwise.
personalUsageNoCompany-owned device with a work profile that keeps the user's personal data separate (ALLOWED, also called COPE), company-owned fully managed device (DISALLOWED), or dedicated device without a user account (USERLESS). Omit for the default (UNSPECIFIED). Every value enrolls a new or factory-reset company device: a personal (BYOD) device does not enroll with a QR code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / personalUsage / description
      Previous value: -"Work profile on a personal device (ALLOWED), company-owned fully managed device (DISALLOWED), or dedicated device without a user account (USERLESS). Omit for the default (UNSPECIFIED)."New value: +"Company-owned device with a work profile that keeps the user's personal data separate (ALLOWED, also called COPE), company-owned fully managed device (DISALLOWED), or dedicated device without a user account (USERLESS). Omit for the default (UNSPECIFIED). Every value enrolls a new or factory-reset company device: a personal (BYOD) device does not enroll with a QR code."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that each call mints a new enrollment token that expires after 24 hours, reinforcing non-idempotency, and that the QR image is delivered directly to the user and must not be described, transcribed or rebuilt. It also gives the operational procedure (tap the setup wizard welcome screen six times, then scan). Return format beyond 'image delivered with the result' is not elaborated, but the behavioral picture is strong.

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?

Front-loaded with the action and scope, then use conditions, then the delivery/security warning, then setup steps. Every sentence carries operative information, though the closing BYOD sentence is dense enough that the block runs longer than strictly necessary for a scan-and-return tool.

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?

With 7 parameters, an open-world non-idempotent annotation profile, and no output schema, the description supplies exactly what's missing: token expiry, one-shot semantics, how the QR is delivered to the user, hardware/setup requirements, and the policy and BYOD exclusions. Nothing an agent needs to call this correctly or explain the result is absent.

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 baseline is 3; the description adds real meaning on top by explaining that every personalUsage value enrolls a new or factory-reset company device and that a personal BYOD device does not enroll via QR. It also adds the constraint that wifi credentials should only come from the user and the constraint that a policy must be QR-provisionable, though it does not clarify policyId or company sourcing beyond the schema text.

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?

States a specific verb and resource ('Create a QR code') plus the exact scope: enrolling a new or factory-reset Android device into this company under a given policy. This is distinguishable without opening the schema, and it separates itself from the personal-enrollment path handled by the policy's portal link.

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?

Explicitly gates creation on the user asking for a QR code and forbids reuse of older codes. It also names conditions where this tool must not be used: VR-only policies cannot be provisioned by QR, and an already-set-up BYOD device needs no QR or reset and instead uses the policy's Personal enrollment link and token in the portal.

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