Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getQueryLog

Read-onlyIdempotent

Retrieve DNS query logs for a selected period, then filter by domain, device, status, or category and paginate results to inspect activity.

Instructions

Gets query log

Returns the query log for the specified time period. Use filters to narrow the result set and cursor to paginate through the results. The log contains DNS query records with filtering, device, and domain information.

Calls GET /oapi/v1/query_log.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPagination limit (default: 20)
cursorNoPagination cursor from previous response
searchNoFilter by domain name
devicesNoFilter by devices
statusesNoFilter by statuses
timespanNoQuery log timespan (has greater priority over explicitly provided millis)
companiesNoFilter by companies
countriesNoFilter by countries
categoriesNoFilter by categories
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.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so the safety profile is covered. The description adds genuinely useful information not in the annotations or schema: the shape of what comes back (DNS query records carrying filtering, device, and domain fields), which matters because there is no output schema. It omits auth/account-scoping behavior and rate limits, but that is a minor gap.

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-loaded and short, with the content of the response placed before the endpoint reference. The opening "Gets query log" line is a near-duplicate of the name and the next sentence restates the same idea, which is a small amount of waste.

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 13-parameter read tool with full schema coverage and no output schema, the description supplies the missing piece: what the returned records contain. Pagination and filtering are acknowledged. A brief note on account scoping or default time window would make it fully complete.

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 all 13 parameters including the timespan-versus-millis priority rule are already documented in the schema. The description only generically mentions "filters" and "cursor" without adding syntax, enum meaning, or interaction rules, so the baseline of 3 applies.

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 names a specific resource and operation ("Returns the query log for the specified time period") and clarifies the payload is DNS query records, plus names the backing endpoint. It never explicitly contrasts itself with stats-oriented siblings like getDomainsQueriesStats or getTimeQueriesStats, so an agent must infer that this returns raw records rather than aggregates.

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 filters to narrow the result set and cursor to paginate" gives operational guidance on how to call it, but there is no statement of when to prefer this tool over the sibling stats tools or when-not to use it. Usage context is implied by the word "log" rather than stated.

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