Skip to main content
Glama

query_verdict_logs

Query policy verdict logs over a time range to retrieve raw firewall decisions showing accepted, rejected, or dropped traffic and why.

Instructions

Query policy verdict logs over a time range. Returns raw firewall decisions showing what traffic was accepted, rejected, or dropped and why.

Requires track_policy_verdict_logs to be enabled on the controller.

Args: start: Start time — RFC3339 (e.g., "2026-04-06T00:00:00Z") or relative (e.g., "7d" for 7 days ago). end: End time — RFC3339 or "now". device_id: Filter to a specific device UUID. user_id: Filter to a specific user UUID. verdict: Filter by verdict: "Accept", "Reject", or "Drop". destination: Filter by destination IP or CIDR substring. protocol: Filter by protocol: "tcp", "udp", "icmp". 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_verdict_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
limitNo
startYes
user_idNo
verdictNo
protocolNo
device_idNo
destinationNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It helpfully discloses the required controller logging prerequisite and describes the returned data as raw accept/reject/drop decisions, but it omits permission requirements, pagination or ordering behavior, and retention or rate-limit context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and return behavior, followed by the operational prerequisite and a compact argument list. Every sentence and parameter note is useful given the eight-parameter schema.

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 definition is largely complete for a read-only query tool with eight parameters and an output schema. The main remaining gap is operational guidance around permissions, time-range limits, or how to verify the required logging setting before querying.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does. It explains all eight parameters, including RFC3339 and relative time formats for start/end, UUID filters, allowed verdict and protocol values, CIDR substring matching, and the limit default.

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: query policy verdict logs over a time range and return raw firewall decisions. This clearly distinguishes raw verdict logs from a summary, although it does not explicitly name a sibling tool for differentiation.

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 implied by the query framing and the prerequisite that track_policy_verdict_logs must be enabled. However, the description does not explicitly say when to use this tool instead of verdict summaries, DNS logs, or logging-status tools.

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