Skip to main content
Glama

update_dhcp_network

Idempotent

Modify an existing DHCP network on MikroTik by updating gateway, DNS servers, domain, or other fields. Pass empty values to clear them.

Instructions

Updates fields on an existing DHCP network entry on the MikroTik device.

Notes: Pass an empty list for dns_servers/wins_servers/ntp_servers/dhcp_option (or "" for domain) to clear that field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNo
domainNo
commentNo
gatewayNo
netmaskNo
networkYes
dhcp_optionNo
dns_serversNo
ntp_serversNo
wins_serversNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.4

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context beyond those annotations: passing empty lists or an empty string clears fields, which is a non-obvious edge case. It does not contradict the annotations and helps an agent avoid accidentally clearing or failing to clear a field.

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?

The description is short and front-loaded: the primary action is stated in the first sentence, and the actionable parameter notes follow immediately. Every sentence earns its place; there is no filler or repeated schema information.

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 10-parameter update tool with no parameter descriptions in the schema, the description is adequate for the most important ambiguity (how to clear list/domain fields) and the output schema covers return values. Still, it does not fully specify partial-update behavior for fields not provided, nor does it explicitly state that 'network' selects which entry is updated. These are notable gaps for a tool of this complexity.

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 0%, so the description carries the semantic burden, and it does add meaning for dns_servers/wins_servers/ntp_servers/dhcp_option/domain by explaining the clearing convention. However, it does not explain the role of the required 'network' parameter as the entry identifier, nor the semantics of omitted/null values for comment, gateway, netmask, or device. This is useful but only partial compensation for the coverage gap.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Updates fields on an existing DHCP network entry on the MikroTik device.' The word 'existing' clearly scopes it away from create/remove operations, and the name/title reinforce the same intent. This is not a tautology and gives an agent enough to distinguish it from sibling DHCP 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 description conveys the core usage context: use this when you need to modify fields on an already-present DHCP network entry. It also adds practical guidance about clearing fields, which is a form of usage instruction. However, it does not explicitly state when not to use it or name alternatives such as create_dhcp_network/remove_dhcp_network, so the routing guidance is implied rather than explicit.

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

Deploy Server

Other Tools