Skip to main content
Glama

pt_server_dns

Add, remove, or enable DNS records on a Packet Tracer Server-PT to control name resolution, then verify lookups with nslookup.

Instructions

A Server-PT's Services > DNS: adds/removes records and switches the service on.

  • records: [{"name": "www.lab.com", "type": "A", "value": "192.168.1.20"}, {"name": "web.lab.com", "type": "CNAME", "value": "www.lab.com"}]

  • remove: same shape, to delete.

  • enable: True = On (default), False = Off, None = leave alone. The reply's stored says whether each added record is in the server's database. Check resolution with pt_host_command(host, "nslookup www.lab.com").

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "device": "<device>"
    },
    "name": "pt_server_dns"
  }
}

Input Schema

NameRequiredDescriptionDefault
showNo
deviceYes
enableNo
removeNo
captureNo
recordsNo
output_dirNoscreenshots

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It usefully discloses that enable=None leaves the service untouched and that the reply's `stored` field reports whether each added record landed in the database, but it omits a significant side effect: because `enable` defaults to true, a call supplying only `device` will turn the DNS service on.

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-loads the identity line, then the record/remove/enable bullets, then a verification pointer. The example objects earn their space by showing the exact expected shape, and there is no filler prose.

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?

An output schema exists, so return-value explanation is not required, and the description rightly mentions only the `stored` field of interest. Against 7 parameters and a mutation side effect, though, it is incomplete: the purpose of capture/output_dir, the required `device` argument, and the default-on behavior of `enable` all go unaddressed.

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% across 7 parameters, so the description must compensate. It does add real meaning for `records`, `remove`, and `enable` (shape, example, tri-state semantics), but leaves `device`, `show`, `capture`, and `output_dir` completely unexplained, including whether capture produces screenshots of the DNS configuration.

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 set (adds/removes records, switches the service on) tied to a specific resource (Server-PT's Services > DNS), and illustrates with concrete record objects. It does not explicitly contrast itself with siblings like pt_server_dhcp or pt_server_service, so an agent must infer the boundary from the description alone.

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?

Provides a worked example and routes verification to pt_host_command(host, "nslookup www.lab.com"), which implies a configure-then-verify workflow. However, it never says when to use this tool instead of pt_server_service, or whether the service must already exist on the device before DNS can be configured.

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