Skip to main content
Glama

digest_log

Read-onlyIdempotent

Condense a log file or supplied log text by grouping repeated lines with counts and preserving errors and warnings, so you can review essential events without reading every line.

Instructions

Condense a log: repeats grouped (×N), errors/warnings kept. Pass path; text only for output you already have.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLog file
textNo
maxLinesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description usefully adds transformation semantics: duplicate lines are grouped with a (xN) count and errors/warnings are always retained. However it does not say what is discarded besides repeats, whether output is truncated, or how maxLines affects the result. Meaningful but partial disclosure beyond annotations.

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?

Two short clauses, front-loaded with the core action and the compression rule, with zero filler. The telegraphic style ("text only for output you already have") is slightly compressed to the point of ambiguity but never wasteful. Efficient overall.

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?

For a 3-parameter condensation tool with no output schema and rich annotations, the definition covers the primary action and the path-vs-text choice. It omits the one thing most likely to surprise an agent: the maxLines default of 60 and the resulting truncation behavior, which directly affects whether the digest is complete. Adequate but with a clear operational gap.

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 only 33% - only path is documented ("Log file"), while text and maxLines carry no schema description. The phrase "text only for output you already have" does clarify the intent of the text parameter, which is genuine compensation. maxLines and its default of 60 are left entirely unexplained in both schema and description, so the gap is only partly filled.

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 opens with a specific verb and resource, "Condense a log," and immediately qualifies the transformation: repeats are collapsed into (xN) markers while error/warning lines survive. That is enough for an agent to tell digest_log apart from read_slice or search_compact, which retrieve rather than reduce. It stops short of explicitly naming a sibling to route away from, keeping it at 4 rather than 5.

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?

"Pass path; text only for output you already have" is a real selection rule: it tells the agent to use path when the log exists on disk and reserve the text parameter for content already in hand. What is missing is any statement of when not to use the tool (e.g., for structured/JSON output) or which sibling to choose instead. Clear context, no exclusions, hence 4.

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