Skip to main content
Glama

log_overview

Summarize log files, rotated sets, directories, or globs to reveal exact line counts, detected format, time range, multiline styles, and level histograms; large files use sampled histograms.

Instructions

Start here. Summarise a log file, rotated set, directory or glob: size, exact line count, detected format (JSON lines, logfmt, syslog, nginx/apache access, ISO-timestamped text, plain), multi-line style (Python traceback / Java stack trace), time range, and a level histogram.

Files larger than max_scan_mb MiB get a sampled (clearly marked ESTIMATED) level histogram; line counts and first/last timestamps stay exact. tz is the UTC offset used to interpret timestamps that carry no zone and to display times (e.g. +03:00).

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": {
      "path": "<path>"
    },
    "name": "log_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNo+00:00
pathYes
max_scan_mbNo
include_rotatedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly succeeds: it discloses the sampling fallback for files over max_scan_mb, that the histogram is then marked ESTIMATED, and that line counts and first/last timestamps remain exact. It does not state cost, runtime, or output-size characteristics for very large inputs, and never explicitly says the operation is read-only.

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?

Front-loaded with 'Start here' and the core sentence, followed by two tight caveat sentences. No filler, and the sampling caveat is placed immediately after the capability list where it is most needed.

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 moderately complex (4 params, glob/directory inputs, sampling behavior) and the description covers scope, exactness guarantees and timezone handling; the presence of an output schema relieves it of explaining return values. The missing piece is explicit confirmation that it is a safe read-only inspection and any note on include_rotated's default behavior.

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 coverage is 0% and the properties are bare titles only, so the description must compensate. It defines max_scan_mb (threshold above which sampling kicks in), tz (UTC offset for interpreting zoneless timestamps and for display) and expands path to cover file, rotated set, directory or glob. The remaining gap is include_rotated, which is only obliquely implied by 'rotated set' and whose default of true is never explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Summarise a log file, rotated set, directory or glob') and enumerates the exact outputs: size, exact line count, detected format, multi-line style, time range, level histogram. The lead-in 'Start here' plus the summary/overview framing clearly separates it from search_logs, tail_logs or trace_request.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Start here' gives an explicit ordering cue for when to reach for this tool rather than a drilling tool. It does not name an alternative or state when this tool is a poor choice (e.g. for grepping specific messages), so it falls short of full explicit routing.

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