Skip to main content
Glama

add_static_dns

Create a static DNS entry on a MikroTik device to map a name to an IPv4/IPv6 address or CNAME alias, block domains, or set internal overrides. Requires write access and confirmation.

Instructions

Create a static DNS entry (/ip/dns/static add) resolving name to address.

record_type is "A" (default) or "CNAME": for "A", address is a literal IPv4/IPv6 address; for "CNAME", address is itself another hostname (the alias target), written to RouterOS's cname field. Useful to block a malicious domain (point it at 0.0.0.0) or set up an internal DNS override.

WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to get a before/after preview without changing anything; call again with confirm=True to actually apply it. Errors clearly (without creating anything) if a row already matches this exact name+record_type pair - it never creates a duplicate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttlNo
nameYes
addressYes
commentNo
confirmNo
device_nameYes
record_typeNoA

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so well: it declares this is a WRITE tool gated behind MIKROTIK_ALLOW_WRITE=true, explains that confirm=False returns a before/after preview while confirm=True applies, and discloses the duplicate-detection error behavior. This is exactly the mutability, safety-gate, and side-effect context an agent needs.

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?

Front-loaded with the core action and command, then layered with type semantics, safety gating, and error behavior. Every sentence earns its place, though the multi-paragraph form is slightly longer than strictly necessary for a 7-param tool.

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?

Since an output schema exists, return values need not be described, and the description covers mutation semantics, safety gating, and idempotency thoroughly. The only shortfall is the unaddressed ttl/comment/device_name parameters, which matters for a tool with 0% schema coverage.

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 coverage is 0%, so the description must compensate, and it does add real meaning for name, address, record_type, and confirm (including how CNAME writes to the `cname` field). However, ttl, comment, and device_name are never mentioned, leaving nearly half the parameters undocumented anywhere.

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?

States a specific verb+resource and even names the underlying RouterOS command (`/ip/dns/static add`), then clarifies the two record types and their distinct address semantics. An agent can distinguish it from the sibling `remove_static_dns` and from generic DNS reads like `dns_cache` without opening any schema.

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

Usage Guidelines4/5

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

Gives concrete when-to-use scenarios (block a malicious domain via 0.0.0.0, internal DNS override) and spells out the two-step confirm workflow. It does not explicitly name an alternative tool or say when NOT to use it (e.g., use `add_static_dhcp_lease` instead for leases), so it stops short of a 5.

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