Skip to main content
Glama

Rename device

rename_device
Idempotent

Rename an attached device by MAC while keeping its icon. Preview changes with confirm=false, then apply with confirm=true.

Instructions

Rename an attached device by MAC, keeping its icon. Args: mac (string), name (string). Call with confirm=false first to preview; it only changes the router with confirm=true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rename_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, idempotent, closed-world mutation, so the safety profile is partly covered. The description adds genuinely new behavior: the confirm flag acts as a dry-run gate and only a confirmed call persists to the router, and the device's icon is preserved. It does not mention error behavior for an unknown MAC or whether a reboot/reload is needed.

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-tone structure: the effect first, then a compact Args line and the confirm protocol. Every sentence carries load and nothing is padded. The terse "Args: mac (string), name (string)" phrasing is slightly informal but still front-loads the important part.

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 two-parameter mutation with no output schema, the definition covers what changes, what is preserved, and the required confirm workflow, which is enough to invoke it correctly. Remaining gaps are edge cases: invalid/unknown MAC handling, name validation, and whether a preview returns a diff.

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 0% and the schema itself is an opaque nested "args" object with additionalProperties plus a top-level confirm flag. The description is the only place that names the actual inputs (mac, name) and explains confirm's preview-vs-apply semantics, which is essential information not recoverable from the schema. It omits MAC formatting (colon vs dash) and any name constraints, so it falls short of a full 5.

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?

"Rename an attached device by MAC" gives a specific verb, resource and lookup key, and "keeping its icon" scopes the effect to the name field only. It implicitly separates itself from the rename_router sibling by targeting an attached device rather than the router itself, though it never names that sibling directly.

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?

"Call with confirm=false first to preview; it only changes the router with confirm=true" is concrete procedural guidance that tells the agent the safe order of operations. It stops short of naming an alternative sibling or stating when renaming a router instead would be appropriate, so it is clear context rather than full when/when-not guidance.

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