Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Error timeline

get_error_timeline
Read-onlyIdempotent

Chart error frequency over time and detect z-score spikes to identify anomaly periods in log data.

Instructions

Error frequency bucketed over time as an ASCII chart, optionally with z-score spike detection.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoOnly include entries whose source name contains this text
endDateNoEnd of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
startDateNoStart of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
fingerprintNoScope to a specific error fingerprint
bucketMinutesNoTime bucket size in minutes (default 60)
detectAnomaliesNoAlso run anomaly detection on the timeline (default false)
anomalyThresholdNoz-score threshold for anomalies (default 2)

Output Schema

NameRequiredDescriptionDefault
bucketsYes
anomaliesNo
totalErrorsYes
bucketMinutesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety and repeatability are covered. The description adds genuine behavioral value by disclosing the output format (ASCII chart) and that anomaly detection is an optional side-channel. It stops short of describing time-range defaults or what happens when startDate/endDate are omitted.

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 tight sentence, output format and optional feature front-loaded, with zero filler. Slightly under-specified for a 7-parameter tool, but nothing is wasted.

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?

An output schema exists, so return values need no explanation. However, with 7 all-optional parameters the description never states the behavior when the time range is omitted or how large ranges are handled, which is the main thing an agent still needs to know.

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 the schema already documents every parameter including defaults for bucketMinutes, detectAnomalies and anomalyThreshold. The description's only added meaning is tying spike detection to z-scores, which the schema's anomalyThreshold wording already implies.

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?

Names a concrete resource and output shape: error frequency bucketed over time, rendered as an ASCII chart, with optional z-score spike detection. That is distinguishable from siblings like summarise_errors or search_logs, though the phrasing is a noun phrase rather than a verb and never says explicitly 'generate/return a timeline'.

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

Usage Guidelines2/5

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

No when-to-use guidance and no alternatives named. An agent must infer that this is the visualization-over-time tool versus summarise_errors or group_by_property purely from the words 'timeline' and 'chart'.

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