Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Detect new error patterns

detect_new_error_pattern
Read-onlyIdempotent

Identify error patterns in a comparison window that never appeared in a baseline window to spot novel failures after changes.

Instructions

Find error patterns present in a comparison window that never occurred in a baseline window. Useful for spotting novel failures after a change.

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": {
      "baselineStart": "<baselineStart>",
      "baselineEnd": "<baselineEnd>",
      "comparisonStart": "<comparisonStart>",
      "comparisonEnd": "<comparisonEnd>"
    },
    "name": "detect_new_error_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoOnly include entries whose source name contains this text
baselineEndYesEnd of baseline period (ISO 8601, e.g. 2026-02-10T08:00:00Z)
baselineStartYesStart of baseline period (ISO 8601, e.g. 2026-02-10T08:00:00Z)
comparisonEndYesEnd of comparison period (ISO 8601, e.g. 2026-02-10T08:00:00Z)
comparisonStartYesStart of comparison period (ISO 8601, e.g. 2026-02-10T08:00:00Z)

Output Schema

NameRequiredDescriptionDefault
newPatternsYes
baselineErrorsYes
comparisonErrorsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint and idempotentHint, so safety behavior is covered. The description adds meaningful behavioral context by defining the comparison as a strict never-occurred-in-baseline difference, which tells the agent the result is a novelty set rather than a frequency comparison. It stops short of disclosing matching semantics (exact vs normalized pattern text), result size limits, or behavior with overlapping windows.

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?

Two sentences with no filler: the first defines the operation and its two-window scope, the second supplies the motivating use case. The core semantics are front-loaded before the rationale.

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?

An output schema exists, so return values need not be explained, and all parameters are documented in the schema. For a read-only analytics query the description covers what is computed and why it matters, leaving only minor gaps about pattern-matching exactness and result limits.

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%, with all five parameters documented including ISO 8601 formats and the source substring filter, so the schema carries the parameter burden. The description adds the conceptual meaning of the four time parameters as baseline versus comparison windows, but does not clarify edge cases such as ordering or equal boundaries. Baseline 3 applies when the schema already does the heavy lifting.

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 names a specific operation and resource: error patterns present in a comparison window that never occurred in a baseline window, which is effectively a set-difference over error patterns. This is far more specific than the sibling names suggest and an agent can predict the output shape. It does not explicitly name a sibling (e.g. regression_after_date) to contrast against, so it falls short of full sibling differentiation.

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?

The second sentence gives a usage context ('spotting novel failures after a change'), which implies when the tool is appropriate. However, it offers no exclusions, no alternatives (such as summarise_errors or regression_after_date) and no prerequisites about how the two windows should be chosen. Usage is implied rather than prescribed.

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