Skip to main content
Glama

update_auth_decisions

Create or update device authorization decisions by serial number to pre-approve or pre-reject devices for MDM before they check in; changes stay staged until applied.

Instructions

Create or update device auth decisions (pre-approve or pre-reject by serial number). Each decision needs: serial (string), enforce_state ('accepted'/'rejected'/'retain').

Use this for MDM integration — approve devices by serial before they check in. Returns a change_id; nothing changes until apply_change.

Args: decisions: List of {serial, enforce_state} dicts. Optionally include device_id.

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": {
      "decisions": "<decisions>"
    },
    "name": "update_auth_decisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
decisionsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the most important trait: this is a staged write where 'nothing changes until apply_change,' plus it returns a change_id. It does not say what permissions are required, whether an existing decision for the same serial is overwritten or merged, or what happens on an unknown serial, leaving meaningful behavioral gaps for a mutation tool.

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?

Content is front-loaded: purpose, then staging caveat and return value, then an Args block for the nested structure. The MDM sentence slightly restates the purpose but earns its place by naming the integration context. No filler.

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

Completeness4/5

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

For a single-parameter tool with an output schema, an agent has enough to call it correctly: the item shape, the enum, the staging semantics, and the return value are all present. Completeness would only improve with overwrite/error semantics and any batch-size limits on the decisions list.

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 0% and the items are declared as opaque objects with additionalProperties:true, so the description does the real documentation work: it names the required keys serial (string) and enforce_state, and supplies the enum values 'accepted'/'rejected'/'retain' that appear nowhere in the schema. It also flags device_id as optional, which is the only hint at additional item fields.

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 opens with a specific verb+resource ('Create or update device auth decisions') and immediately narrows scope ('pre-approve or pre-reject by serial number'). It also distinguishes itself from the mutating sibling by noting nothing takes effect until apply_change, so an agent can separate this from both get_auth_decisions (read) and apply_change (commit) 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 states the usage context explicitly ('Use this for MDM integration — approve devices by serial before they check in') and names the required follow-up alternative, apply_change, with the condition that selects it. The staging workflow is spelled out rather than inferred.

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