Skip to main content
Glama

update_device

Destructive

Update device attributes like name, tags, address, and notes, with prior-value capture for rollback and audit. Use dry_run to preview changes before applying.

Instructions

[WRITE][risk=medium] Update device attributes (name/tags/address/notes).

Captures the changed keys' prior values before the change, so the harness
records an undo (restore the prior values) and a faithful audit trail. Pass
dry_run=True to preview.

Args:
    serial: Device serial.
    attrs: Attributes to set — allowed keys: name, tags, address, notes,
        lat, lng, floorPlanId.
    dry_run: If True, preview without changing.
    target: Target name from config; omit for the default.

Input Schema

NameRequiredDescriptionDefault
attrsYes
serialYes
targetNo
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, but the description adds substantial behavioral context: it captures prior values of changed keys to record an undo and a faithful audit trail, labels itself [WRITE][risk=medium], and offers a dry_run preview. This goes well beyond what the structured annotations convey.

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?

The description is front-loaded with [WRITE][risk=medium] and the core operation, then layers in behavioral and parameter details without waste. The Args section is justified because the schema itself has no field descriptions.

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 non-idempotent, destructive write tool with a nested attrs object, no output schema, and zero schema description coverage, the description supplies the missing pieces: safety framing, preview path, undo/audit behavior, and all four parameter meanings. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 0%, so the description must compensate, and it does: it documents serial, attrs with an explicit list of allowed keys (name, tags, address, notes, lat, lng, floorPlanId), dry_run's preview behavior, and target's default behavior. This meaningfully compensates for the undocumented nested object.

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?

The description states a specific verb and resource: 'Update device attributes (name/tags/address/notes).' It is clearly a mutation tool for device attributes, distinct in kind from siblings like reboot_device or device_status, but it never names a sibling alternative to sharpen the boundary.

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

Usage Guidelines3/5

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

Usage is implied by the verb and framing, and it does mention 'Pass dry_run=True to preview,' which is operational guidance. However, it never says when to choose this over related siblings such as undo_apply or other update tools, so the guidance remains implicit rather than explicit.

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