Skip to main content
Glama

query_dns_logs

Query DNS block and audit logs over a time range to see which queries threat categories or block lists stopped, including domain, category, and the triggering device or user.

Instructions

Query DNS block/audit logs over a time range. Shows DNS queries that were blocked by threat categories or block lists, including the domain, category, and which device/user triggered it.

Args: start: Start time — RFC3339 or relative (e.g., "7d", "24h"). end: End time — RFC3339 or "now". domain: Filter by domain name substring. device_id: Filter to a specific device UUID. category: Filter by threat category (e.g., "malware/callhome"). limit: Max entries to return (default 500).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "query_dns_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
limitNo
startYes
domainNo
categoryNo
device_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose important scope — that results are the DNS queries blocked by threat categories/block lists, plus the returned fields — but leaves open whether unfiltered queries also appear (the phrase "block/audit logs" is ambiguous), whether there is a hard cap on limit or a maximum queryable range, and whether results are paginated.

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 purpose sentence is front-loaded and the per-argument block is easy to scan with no filler or repetition. The return-fields clause in the first sentence is slightly redundant given the output schema, but the overall structure earns its length.

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?

The tool is simple, all six parameters are explained, and an output schema exists so return shape need not be restated. What is missing — pagination/truncation behavior, a maximum limit, and blocked-vs-all query semantics — is real but not fatal for a read-only log query.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it delivers: start/end formats (RFC3339, relative "7d"/"24h", or "now"), domain as a substring match, device_id as a UUID, category with an example value ("malware/callhome"), and the limit default. Minor gaps remain, such as timezone assumptions and any ceiling on limit.

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 gives a specific verb+resource ("Query DNS block/audit logs") and states the scope (time range) plus what the results contain: domain, category, and triggering device/user. It is clear on its own, but it never names or contrasts with its obvious sibling query_verdict_logs, so the agent must infer which log type to pick.

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?

Usage is only implied by the parameter list: an agent can guess that filters narrow results over a time range, but there is no explicit when-to-use, when-not-to-use, or alternative-tool guidance. No prerequisites or constraints on the time window are stated.

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