Skip to main content
Glama

dhcp_leases

Read-onlyIdempotent

Retrieves active DHCPv4 and DHCPv6 leases with hostname, IP, MAC address, and remaining lease time, matching the lease view shown in LuCI.

Instructions

Active DHCPv4 and DHCPv6 leases: hostname, IP, MAC and time left (as LuCI shows them).

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

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real value by scoping results to 'active' leases (excluding expired/reserved ones) and noting values are formatted 'as LuCI shows them', which tells the agent what the string values will look like.

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?

A single front-loaded sentence that states the resource, the two protocol families, and the four output fields with zero filler. Nothing could be removed without losing information.

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?

With no parameters, full annotation coverage, and an output schema handling return structure, the description covers what the agent needs to select and call it. A brief note on which sibling answers configuration-vs-status questions would make it fully complete.

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?

The tool takes zero parameters, so there is no parameter semantics to document; the baseline of 4 applies. The description correctly avoids inventing filtering options that the empty schema does not support.

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?

Names the specific resource (DHCPv4/DHCPv6 leases) and enumerates the returned fields (hostname, IP, MAC, time left), so an agent can distinguish it from siblings such as wifi_clients or static_lease_add. There is no explicit verb, but the nominal phrasing 'Active ... leases' unambiguously signals a retrieval tool.

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 only implied: 'Active' suggests dynamic leases currently handed out, which differentiates it from static_lease_add/static_lease_remove, but the description never says when to use this versus other list-style siblings or notes any prerequisites. No explicit exclusions or alternatives are given.

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