Skip to main content
Glama

mikrotik_get_dhcp_leases

Retrieve DHCP server leases from a MikroTik router, including IP addresses, MAC addresses, hostnames, and expiration times. Filter results by status or hostname.

Instructions

List DHCP server leases including active client IP addresses, MAC addresses, hostnames, and expiration times.

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

Input Schema

NameRequiredDescriptionDefault
statusNoFilter by status (e.g. 'bound', 'waiting', 'offered')
hostnameNoFilter leases by hostname (partial match)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only listing but says nothing about whether expired/static leases are included, whether results are paginated or capped, or what happens when no leases exist — meaningful gaps for an agent planning a call.

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 well-formed sentence with the resource front-loaded and the returned fields listed compactly. No filler, though it is arguably too terse for the gaps it leaves.

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?

For a simple two-optional-param read tool with no output schema and full schema coverage, the description covers purpose and payload fields adequately. It is incomplete on filtering behavior and on how this differs from the other network-table tools in the same family.

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%, so both the status filter (with example values) and the hostname partial-match filter are already fully documented in the schema. The description adds no additional filter semantics, which is acceptable but not additive; baseline 3 applies.

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?

States a specific verb and resource ('List DHCP server leases') and enumerates the returned fields (IP, MAC, hostname, expiration), so an agent knows exactly what data comes back. It stops short of distinguishing this from closely-related siblings like mikrotik_get_arp_table or mikrotik_get_ip_addresses, which also expose IP/MAC mappings.

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?

There is no when-to-use guidance: nothing tells the agent to prefer this over mikrotik_get_arp_table for address lookups, or when a lease listing is more appropriate. Neither the supported filters nor any preconditions are mentioned.

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