Skip to main content
Glama

add_dns_static

Add a static DNS entry to MikroTik RouterOS for mapping names to IPs, CNAMEs, MX, or SRV records, enabling local DNS resolution and routing.

Instructions

Adds a static DNS entry.

Notes: regexp: a regular expression the name must match. A regexp entry has no name, so name is ignored when regexp is given (RouterOS refuses both: "only name or regexp allowed").

Input Schema

NameRequiredDescriptionDefault
ttlNo
nameYes
textNo
cnameNo
deviceNo
regexpNo
addressNo
commentNo
disabledNo
srv_portNo
srv_targetNo
srv_weightNo
mx_exchangeNo
srv_priorityNo
mx_preferenceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.5
    • addedInput schema / properties / device
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Device"
      +}
  2. First observedv0.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and openWorldHint=false, so the safety profile is partly covered. The description usefully adds the RouterOS constraint that name and regexp are mutually exclusive ('only name or regexp allowed'), which is genuine behavioral context. It says nothing about duplicate-entry handling, permission requirements, or propagation behavior.

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?

Two short blocks with the purpose front-loaded and no filler. The Sphinx-style indented note formatting is slightly awkward for an agent, but the content earns its place by documenting a real constraint.

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

Completeness2/5

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

An output schema exists, so return values need no explanation, but for a 15-parameter DNS-record creation tool the definition is far too thin. An agent cannot tell which parameters form which record type (A, CNAME, TXT, MX, SRV), nor that name is required despite being ignored under regexp.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 15 parameters, so the description carries the full burden and mostly fails it. It explains regexp and its interaction with name, but leaves ttl, text, cname, address, device, comment, disabled, srv_*, and mx_* completely undocumented in both schema and description.

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 ('Adds a static DNS entry'), which is unambiguous on its own. However, it never acknowledges the obvious sibling add_dns_regexp, even though its own note about the regexp/name conflict is exactly what distinguishes the two entry types. Clear purpose, weak sibling differentiation.

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 guidance on when to add a new entry versus update_dns_static or add_dns_regexp, and no prerequisites such as required permissions or existing DNS settings. The regexp note is an invocation constraint, not usage guidance, so the agent gets nothing about selecting this tool.

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