Skip to main content
Glama

compare_windows

Compares a recent access-log window against an earlier baseline window to surface the biggest increases per field, revealing traffic spikes and surges.

Instructions

What changed? Compare the last minutes against the same-length window baseline_minutes_ago earlier (default: same time yesterday), for one access-log field (SRC_IP, RSP_CODE, REQ_PATH, COUNTRY, ASN, AUTHORITY...). Sorted by biggest increase. Use for spikes and surges.

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

Input Schema

NameRequiredDescriptionDefault
lbNo
topkNo
fieldNoSRC_IP
queryNo
minutesNo
namespaceNo
baseline_minutes_agoNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/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 burden. It does disclose the key behavioral trait: the baseline defaults to the same time yesterday, and results are sorted by biggest increase, which tells the agent how the diff is computed and ordered. It says nothing about how `topk` truncates results, what scoping `lb`/`namespace`/`query` impose, or the cost/latency profile of a two-window scan.

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 with the question it answers ("What changed?") followed by the mechanics, then a one-line usage cue. Dense and mostly waste-free; the trailing ellipsis in the field list and the standalone "Use for spikes and surges" sentence are the only slightly loose elements.

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?

An output schema exists, so return values need not be explained, and the comparison semantics are covered. What remains missing is material: four of seven parameters are undocumented anywhere, and with no annotations the agent gets no confirmation of read-only safety or result-set limits for a tool that scans two time windows.

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 0% across 7 parameters, so the description must compensate and only partly does. It adds genuine meaning for `minutes`, `baseline_minutes_ago` (including the 1440-minute default as human language) and `field`, and crucially enumerates valid field values that the schema does not (no enums declared). It leaves `topk`, `lb`, `query`, and `namespace` entirely unexplained.

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?

Opens with a specific verb-resource pair (compare two windows of access-log data) and pins down the unit of comparison: one field over the last `minutes` versus a same-length earlier window. The enumerated field list (SRC_IP, RSP_CODE, REQ_PATH, COUNTRY, ASN, AUTHORITY) makes the scope concrete. It does not name a sibling like access_log_aggregate or traffic_overview to differentiate itself, so it stops short of a 5.

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 for spikes and surges" gives a one-clause cue for when this tool fits, which is real but thin. There is no guidance on when NOT to use it, and no alternative is named even though access_log_aggregate, traffic_overview, and access_log_search are plausible overlapping choices.

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