Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getDomainsQueriesStats

Read-onlyIdempotent

Retrieve paginated DNS query statistics grouped by domain for a chosen period, filtered by devices, countries, or DNS servers.

Instructions

Gets domains statistics

Returns DNS query statistics grouped by domain for the specified period. Response is paginated, items are arranged by query count. 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/v1/stats/domains.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPagination limit (may be overridden by cursor) (default: 10)
cursorNoPagination cursor
devicesNoFilter by devices
timespanNoStatistics timespan (has greater priority over explicitly provided millis)
countriesNoFilter by countries
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.
time_to_millisNoTime to in milliseconds (inclusive), required if `timespan` is not specified
time_from_millisNoTime from in milliseconds (inclusive), required if `timespan` is not specified

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world behavior, so the safety profile is covered. The description adds genuine value beyond that: results are grouped by domain, ordered by query count, paginated via cursor, and the underlying endpoint is GET /oapi/v1/stats/domains. It omits sort direction and any rate-limit or retention caveats.

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 short lead line ("Gets domains statistics") is slightly redundant with the following sentence, but everything else earns its place, and the pagination rules are stated in a compact, ordered sequence. No filler or marketing language.

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 9-parameter, zero-required, read-only aggregation tool with no output schema, the description covers the operationally risky part (pagination and filter persistence) well. Gaps are minor: result ordering direction, and whether returned items carry counts plus domain only.

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, but the description goes further by explaining interactions the schema only hints at: the default limit on first requests, cursor overriding limit on later pages, and the requirement to resend filters per page. Sort direction for "arranged by query count" is not specified.

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?

The description states a specific verb and resource ("Returns DNS query statistics grouped by domain for the specified period") and names the grouping dimension, which implicitly separates it from device- or time-grouped siblings. It never names an alternative tool explicitly, so the differentiation is inferred rather than stated.

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?

The description gives solid protocol guidance for repeated calls: a default limit applies on the first request, cursor is mandatory on subsequent pages, and filters must be repeated on every page. It says nothing about when to prefer this over getDevicesQueriesStats or getTimeQueriesStats, so selection between siblings is left to inference.

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