Skip to main content
Glama

log-collapse

Collapse a log into error signatures with counts and first/last occurrence — Groups the records of a log or CI output by signature: timestamps, UUIDs, IPs, hex ids, quoted values and numbers are replaced by placeholders, stack-trace continuation lines are attached to their record and contribute their first frames, and each signature reports its count, severity, first and last line, first and last timestamp (as written, when the line starts with an ISO 8601 timestamp) and a

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": {
      "text": "<text>"
    },
    "name": "log-collapse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesLog text, at most 8000 lines.
topNNoSignatures returned, by count. Default 20.
minSeverityNoIgnore records below this severity. Default: keep all.
signatureFramesNoContinuation lines (stack frames) that are part of the signature. Default 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the normalization rules (timestamps, UUIDs, IPs, hex ids, quoted values, numbers replaced with placeholders), that stack-trace continuation lines are folded into their parent record and contribute first frames, and what each signature reports (count, severity, first/last line, first/last timestamp). Gaps: it never states that the operation is pure/stateless with no side effects on any system, and the return-shape sentence is truncated after "and a."

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

Conciseness3/5

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

Front-loading is good: the one-line summary before the em-dash tells the agent the essential operation immediately, and the detail follows. However, the body is a single long run-on clause chain and, critically, terminates mid-sentence ("and a"), so the structure is visibly broken rather than tight.

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?

For a four-parameter pure text-transform tool with no output schema, the definition covers input domain, normalization semantics, grouping behavior, and most of the reported fields — enough to call it correctly and interpret results. The truncated final clause is the main deficiency, leaving the last reported field unspecified.

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 100%, so all four parameters (text, topN, minSeverity, signatureFrames) are already documented in the schema — baseline 3 applies. The description indirectly illuminates signatureFrames via "contribute their first frames" and severity via the reported fields, but adds nothing about topN ordering or how minSeverity interacts with the "unknown" enum value.

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?

States a concrete verb and resource with the produced artifact: "Collapse a log into error signatures with counts and first/last occurrence," plus the domain ("a log or CI output"). An agent knows exactly what transformation it gets. No sibling differentiation is offered, and the trailing clause cuts off mid-sentence ("and a"), so it falls 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?

Usage context is only implied by the input domain phrase "a log or CI output" — it signals the tool is for noisy log/CI text rather than structured events. There is no explicit when-to-use, when-not-to-use, or named alternative, and no guidance on choosing topN/minSeverity thresholds for a given investigation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources