Skip to main content
Glama

dhcp_leases

Read-onlyIdempotent

Retrieve active DHCP leases to list connected devices with hostname, IP address, MAC address, and remaining lease time.

Instructions

Active DHCP leases: hostname, IP, MAC, lease time left.

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": "dhcp_leases"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
resultYes

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

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered. The description adds only the 'active' scoping qualifier (current leases, not expired/historical) and a field preview, which is modest extra context for a read tool.

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?

A single short line, front-loaded with the resource and immediately followed by the fields returned; there is no filler. It is terse to the point of slight under-specification, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple read tool with one optional, fully documented parameter and an output schema that carries the return shape, so the description's scope is defensible. Still, it says nothing about scope of results (all devices vs. one) or ordering/limits, leaving minor gaps for the agent.

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 100%; the single 'device' parameter is fully documented in the schema, including the devices.toml reference and the omit-for-default behavior. The description adds nothing about the parameter, so the baseline of 3 applies.

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

Purpose3/5

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

The description is a noun phrase rather than a verb+resource statement, but 'Active DHCP leases' plus the enumerated fields makes the intent (read current leases) inferable. It does implicitly separate itself from the sibling dhcp_reservations by emphasizing 'active' leases, though no explicit contrast is drawn.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of an alternative such as dhcp_reservations or list_clients. The agent must infer from sibling names alone whether this or a related tool fits a given question.

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