Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getDevices

Read-onlyIdempotent

List devices in an AdGuard DNS account with pagination, search, and filters by device or DNS server.

Instructions

Lists devices

Lists devices according to the specified parameters. 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/devices.

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": "getDevices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPagination limit (may be overridden by cursor) (default: 10)
cursorNoPagination cursor
searchNoSearch by device name or ID
devicesNoFilter by devices
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.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world safety, yet the description adds real behavior: newest-first ordering, a default limit applied when unspecified, and the cursor-driven pagination contract. It does not describe the shape of returned device records, but the added pagination semantics are substantive.

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 pagination contract and keeps each sentence functional. The opening 'Lists devices' followed by 'Lists devices according to the specified parameters' is a redundant restatement, a minor waste in an otherwise tight definition.

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?

No output schema exists, so the description would ideally say more about what a device record contains; it only characterizes the collection (paginated, newest-first). For a six-parameter list tool with full annotation coverage and full schema coverage, the paging and filtering contract is otherwise complete.

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 100%, so the baseline is 3; the description earns above that by documenting cross-parameter interactions the schema cannot express — that cursor overrides limit on later pages and that filters must be resent on each page. The 'limit may be overridden by cursor' schema note is echoed but the page-consistency rule is genuinely new.

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 ('Lists devices') and grounds it in the concrete endpoint GET /oapi/v2/devices. It does not explicitly distinguish itself from the singular getDevice sibling or the stats siblings, so the differentiation is only implicit in the plural resource name.

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 clear operational guidance for the multi-page workflow: a default limit applies to the initial request, a cursor is mandatory on subsequent requests, and filtering parameters must be repeated on every page. It does not say when to prefer this over getDevice or the stats tools, so it stops short of full alternative routing.

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