Skip to main content
Glama

Preview a Batch of UniFi Changes

unifi_preview_batch
Read-only

Preview up to 25 routine UniFi changes for a single approval code, returning each plan and rollback while refusing disruptive, destructive, or multi-change targets.

Instructions

Plans up to 25 routine changes, such as client renames, notes, or DNS record edits, for one approval code. Each change takes the same operation, params, and changes as unifi_preview_change and is planned exactly as it would be alone. Refuses disruptive or destructive changes and more than one change per target; preview those singly. Returns every plan and its rollback; the owner gets one code through sudo … pending.

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": {
      "changes": "<changes>"
    },
    "name": "unifi_preview_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes

Output Schema

NameRequiredDescriptionDefault
batchYes
countYes
itemsYes
approvalYes
changeIdYes
rollbackYes
approvalExpiresInSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true/openWorldHint=false; the description adds substantial context: refusal rules, per-target cardinality limit, that rollback plans are returned, and that the owner receives one approval code via `sudo … pending`. The remaining gap is that issuing a pending approval code is a state-changing side effect that the readOnly annotation does not obviously cover, and permissions/auth requirements are never mentioned.

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

Conciseness5/5

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

Three tightly packed sentences with the scope, the shape rule, the refusal rules, and the return value in that order — front-loaded and free of filler. The only mildly opaque element is the inline `sudo … pending` reference, which assumes shell context.

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?

An output schema exists, so return-value detail is not required, yet the description still notes that 'every plan and its rollback' come back. For a batch tool over a 40+ value operation enum, the one real gap is that the boundary between 'routine' and 'disruptive or destructive' is left to inference, which matters when composing a batch that might be rejected.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the load. It helps by giving examples of 'routine changes, such as client renames, notes, or DNS record edits' and by pointing to 'the same operation, params, and changes as unifi_preview_change' for field semantics, but it never explains the params-vs-changes distinction or which of the ~40 enumerated operations are batch-eligible.

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 and resource: it 'Plans up to 25 routine changes ... for one approval code.' It also distinguishes itself from the sibling 'unifi_preview_change' by stating each entry is 'planned exactly as it would be alone,' so an agent can tell batch from single preview without reading either 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?

Explicit usage conditions and exclusions are given: it refuses 'disruptive or destructive changes and more than one change per target,' and tells the agent to 'preview those singly' — routing to the sibling tool. The 25-item ceiling and the one-change-per-target rule are stated up front.

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