Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getDnsServers

Read-onlyIdempotent

Lists DNS servers with pagination and optional filters by name, ID, or account to retrieve server inventories for DNS management.

Instructions

Lists DNS servers

Lists DNS servers according to the specified parameters. By default there is at least one default server. Response is paginated, items are arranged in the newest-first order. For the initial request a default limit is applied if not specified. For the subsequent requests cursor must be provided (limit can be omitted). Filtering parameters, if specified for the initial request, must be provided on each page request as well.

Calls GET /oapi/v2/dns_servers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getDnsServers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPagination limit (may be overridden by cursor) (default: 10)
cursorNoPagination cursor
searchNoSearch by DNS server name or ID
dns_serversNoFilter by DNS servers
X_Account_IdNoOptional ID of the account to operate on. Defaults to the authenticated user's own account. Use GET /oapi/v1/accounts to list available accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the read-only, idempotent, and open-world annotations, the description discloses important operational behavior: at least one default server exists, results are newest-first, a default limit applies initially, and cursor/filter persistence rules apply across pages. This is substantial context beyond what annotations provide.

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?

The description front-loads the purpose and uses short sentences to explain pagination rules and the endpoint. It has minor redundancy in repeating 'Lists DNS servers' at the start, but otherwise every part is useful.

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?

For a read-only paginated list with full parameter schema and annotations, the description covers default behavior, ordering, pagination, cursor/filter persistence, and the endpoint. It omits response item details and auth behavior, but no output schema exists and the essential invocation behavior is present.

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 coverage is already 100%, so baseline is 3, but the description adds cross-page semantics for limit, cursor, and filtering that are not fully captured in the schema. It does not expand search syntax or the DNS-server filter format, so it is strong but not exhaustive.

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 explicitly states that the tool lists DNS servers and gives the exact endpoint GET /oapi/v2/dns_servers. The resource is specific and distinct from sibling device, query-stat, and account-limit tools.

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?

It explains the pagination workflow: the initial request uses a default limit, subsequent requests require a cursor, and filters must be repeated on each page. It does not name alternatives or exclusions, but no similar sibling is indicated and the invocation context is clear.

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