Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getTimeQueriesStats

Read-onlyIdempotent

Retrieve time-based DNS query statistics for a chosen period and filter results by devices, countries, or DNS servers to analyze traffic trends.

Instructions

Gets time statistics

Returns time-based DNS query statistics for the specified period. Use the time range parameters to define the period and filters to narrow the results.

Calls GET /oapi/v1/stats/time.

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

Input Schema

NameRequiredDescriptionDefault
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

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered without the description. The description adds the underlying GET /oapi/v1/stats/time endpoint, but the timespan-over-millis priority it gestures at is already stated verbatim in the schema, and it says nothing about result granularity or aggregation behavior.

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?

It is front-loaded and short, with the core statement in the first substantive sentence. The redundant 'Gets time statistics' opening restates the name and adds nothing.

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?

Seven optional parameters, an open-world scope, and no output schema mean the description should say what the statistics actually look like (bucketing interval, per-device vs aggregate). It explains the input side adequately but leaves the return shape entirely 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 100%, so the parameters are fully documented elsewhere and the baseline is 3. The description groups them into 'time range parameters' versus 'filters' — a mildly useful framing — but adds no syntax, format, or default behavior beyond the schema.

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 second sentence names a specific verb and resource: 'Returns time-based DNS query statistics for the specified period.' That distinguishes it from the device- and domain-oriented siblings, but the description never names or contrasts them, so the differentiation is only implicit.

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?

'Use the time range parameters to define the period and filters to narrow the results' explains how to drive the tool but not when to choose it over getDevicesQueriesStats or getDomainsQueriesStats. There are no exclusions or prerequisite conditions, so usage is only implied.

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