Skip to main content
Glama

Managerewrites

manageRewrites

Manage DNS rewrite entries for a NextDNS profile: list, add, or delete custom hostname answers to point internal hosts to private IPs or block domains.

Instructions

Manage DNS rewrite entries for a NextDNS profile.

Rewrites let you return a custom answer for a hostname. Typical uses:

  • Point an internal hostname to a private IP.

  • Block a domain by rewriting it to 0.0.0.0.

Operations: - list: Show existing rewrites. - add: Create a rewrite (requires name and content). - delete: Remove a rewrite (requires entry_id from list).

Examples: - list: manageRewrites(operation="list", profile_id="abc123") - add: manageRewrites(operation="add", profile_id="abc123", name="router.home", content="192.168.1.1") - delete: manageRewrites(operation="delete", profile_id="abc123", entry_id="<id-from-list>")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
contentNo
entry_idNo
operationYes
profile_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.3
  2. Removedv3.1.2
  3. Addedv3.0.1

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral burden. It discloses that add mutates by creating an entry and delete removes one, and that entry_id must be sourced from list (an ordering dependency), which is useful. However it says nothing about authorization needs, idempotency, whether deletes are reversible, or side effects on DNS resolution beyond the illustrative examples.

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?

Front-loaded one-line purpose, then a short usage rationale, then an operation list, then examples. Each block earns its place and nothing is redundant; examples directly reinforce the required-parameter rules.

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?

An output schema exists, so return values need not be explained, and the description covers all three operations with required inputs. The omission of any note on profile_id semantics or failure modes keeps it from being fully complete for a mutation-capable multi-operation tool.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it maps name/content to add and entry_id to delete, and the operation enum values are each explained with an example. The only gap is profile_id, which is required but never described beyond appearing in examples.

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 ('Manage DNS rewrite entries for a NextDNS profile') with clear scope, and the sibling set (manageSettings, manageProfiles, manageLists) makes it obvious this handles rewrites specifically. The enumeration of list/add/delete operations further pins down what the tool does.

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 explicit per-operation guidance, including which parameters each operation requires (add needs name/content, delete needs entry_id from list) and concrete call examples. It stops short of when-not-to-use guidance or steering to a sibling for adjacent tasks, so it lands at 4 rather than 5.

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