Skip to main content
Glama

Call Write Tool

call_write_tool
Destructive

Execute registered UniFi write tools to apply validated live configuration changes, with dry-run, policy checks, audit logging, and secret scrubbing.

Instructions

Execute a tool that may mutate live configuration through registered dispatch.

Describe the target first. Target validation, per-area opt-outs, UNIFI_WRITE_POLICY=deny, OAuth permissions, dry-run, audit and secret scrubbing match a direct call.

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": {
      "name": "<name>",
      "arguments": "<arguments>"
    },
    "name": "call_write_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact enabled tool name, for example "update_wlan_config".
argumentsYesTarget schema arguments from describe_tool; for example {"host": "console", "site": "default"} plus the target's required fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.2
    • changedInput schema / properties / name / description
      Previous value: -"Exact enabled tool name, for example \"set_firewall_policy_ordering\"."New value: +"Exact enabled tool name, for example \"update_wlan_config\"."
  2. Addedv0.7.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructive, non-idempotent and open-world behavior, and the description adds real context on top: target validation, per-area opt-outs, an environment-level deny policy, OAuth permission requirements, dry-run availability, audit logging and secret scrubbing. Stating these 'match a direct call' reassures the agent that the proxy does not weaken safety guarantees.

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?

Two short paragraphs with the operation front-loaded and the safety/policy caveats second. The policy list is dense but each item carries information; nothing is redundant 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 an open-world dispatch tool with a nested arguments object, the description covers the prerequisite (describe the target), the failure modes (policy deny, OAuth) and safety behavior. The main remaining gap is that there is no output schema and the description never indicates what a successful call returns.

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 coverage is 100%, so 'name' and 'arguments' are already documented in the schema, including the cross-reference to describe_tool. The description reinforces the describe-first workflow but adds no further semantics about how arguments are merged or validated. Baseline 3 applies.

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

Purpose4/5

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

States a concrete verb ('Execute') and resource ('a tool that may mutate live configuration through registered dispatch'), which tells an agent this is a write-path proxy rather than a direct tool. The 'may mutate' hedge is informative but slightly weakens the contrast with call_read_tool, which is never named.

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

Usage Guidelines4/5

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

'Describe the target first' gives an explicit prerequisite step before invocation, and the policy list (per-area opt-outs, UNIFI_WRITE_POLICY=deny, OAuth, dry-run) tells the agent what conditions gate success. It stops short of an explicit exclusion rule such as 'use call_read_tool for read-only targets'.

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