Skip to main content
Glama

set_static_ip

Destructive

Assign a fixed IP address to a device by MAC, adding or updating its DHCP reservation; previews the change unless confirmation is provided.

Instructions

Give a device a fixed IP (address reservation): adds it, or updates the existing reservation for that MAC. The device gets the address the next time it renews its lease. Without confirm=true it only shows the plan.

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": {
      "mac": "<mac>",
      "ip": "<ip>"
    },
    "name": "set_static_ip"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYes
macYes
deviceNoName of a device from devices.toml (see the 'devices' command); omit for the default device.
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / device
      Added value: +{
      +  "default": "",
      +  "description": "Name of a device from devices.toml (see the 'devices' command); omit for the default device.",
      +  "title": "Device",
      +  "type": "string"
      +}
  2. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description discloses that the call adds OR overwrites the reservation keyed by MAC, that the effect is deferred until the next DHCP lease renewal, and that the default mode is a dry-run plan. Those are exactly the behavioral facts an agent needs before a destructive mutation. It stops short of saying what happens on an IP conflict or whether the change can be reverted.

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 short sentences, front-loaded with the identity of the operation, followed by timing of effect and the dry-run caveat. No filler and nothing redundant with the title or schema.

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 small four-parameter destructive mutation with no output schema, the description covers the core action, the overwrite semantics, effect timing, and the safe preview path. The remaining gap is edge-case behavior (address in use, invalid MAC, rollback), which is minor but would matter before an agent commits confirm=true.

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 description coverage is only 25%, so the description must carry weight, and it does for the most consequential parameter: confirm is explained as dry-run-by-default. The mac/ip pairing is implied by 'for that MAC' and the fixed address. The device parameter is not explained here, but its schema entry already covers it.

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 opens with a precise verb and resource, 'Give a device a fixed IP (address reservation)', and clarifies that it both adds a new reservation and updates an existing one for the given MAC. That is concrete enough to separate it from mutating siblings, though it never names remove_static_ip or dhcp_reservations as the counterpart tools.

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?

The confirm semantics effectively tell the agent how to preview versus apply ('Without confirm=true it only shows the plan'), which is real usage guidance. However, there is no statement of when to prefer this over editing reservations another way, and no warning about preconditions such as the IP already being leased to a different MAC.

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