Skip to main content
Glama
LogLens
by Suteerth03

Summarize Incident

summarize_incident

Investigate a natural-language question about logs to generate a verified root-cause hypothesis. Extracts search terms, gathers cross-service evidence, and checks whether cited lines support the conclusion.

Instructions

Investigate a natural-language question about the logs: extracts search terms, retrieves grounding evidence (lexical matches plus lines from the same time window, which surfaces cross-service causes the question never named), generates a root-cause hypothesis, then verifies it on two axes — whether the cited lines support it, and whether it accounts for everything the evidence shows — regenerating once if it is unsound or incomplete.

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": {
      "query": "<query>"
    },
    "name": "summarize_incident"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat you're investigating, e.g. 'why did checkout fail around 9:31'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations exist, so the description carries the full behavioral burden and does substantial work: it discloses the multi-stage internal process (extraction, grounding, hypothesis, two-axis verification), the notable side effect that retrieval also pulls same-time-window lines to surface causes the question never named, and the bounded self-correction ('regenerating once if it is unsound or incomplete'). It omits cost/latency implications of a multi-step LLM pipeline and any notion of failure or low-confidence behavior.

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?

One front-loaded sentence beginning with the verb, with each clause adding a distinct behavioral fact rather than padding. It is dense and the em-dash verification clause requires careful parsing, but nothing is redundant.

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 one-parameter tool with no annotations and no output schema, the process description is unusually complete. The main gap is that the shape of the response — hypothesis plus supporting citations, confidence, or evidence list — is only implied, and there is no signal about latency or expense for a multi-step investigation.

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 coverage is 100% on the single required 'query' parameter, so the baseline is 3. The description adds modest meaning beyond the schema — that the question can be phrased conversationally and need not name the affected services — but gives no length, formatting, or scoping guidance for the string.

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 object ('Investigate a natural-language question about the logs') and then enumerates the actual pipeline: term extraction, evidence retrieval, hypothesis generation, verification. An agent can tell this is more than a raw search. It does not name or contrast itself against the siblings get_error_context or search_logs, leaving that distinction to be inferred.

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 only implied: the tool takes an open-ended NL question and returns a verified causal answer, which suggests using it when you want a root cause rather than raw matching lines. There is no explicit when-to-use, when-not-to-use, or pointer to search_logs for plain retrieval, and no stated prerequisites or cost expectations.

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

Deploy Server

Other Tools