Skip to main content
Glama
aem-troubleshooting-mcp-server

aem-troubleshooting-mcp-server

by navi00498

analyze_error_log

Read-onlyIdempotent

Analyze recent AEM error.log lines to group errors, surface root causes, and flag known AEM issues with remediation hints.

Instructions

Analyze recent error.log lines: grouped errors, root causes and known AEM issues with remediation hints.

Detects OutOfMemoryError, Oak traversal queries (with the query text), leaked ResourceResolvers, missing service user mappings, OSGi activation failures, replication errors, downstream timeouts and more.

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

Input Schema

NameRequiredDescriptionDefault
topNo
linesNo
log_nameNo/logs/error.log

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description does add value by listing the concrete fault signatures it recognizes (OutOfMemoryError, leaked ResourceResolvers, OSGi activation failures, traversal queries with query text), but says nothing about scan cost, log access requirements, or what happens when the log is missing.

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 sentences, front-loaded with the outcome and then the detection list, with no filler. The enumeration in the second sentence is long, but each item carries diagnostic meaning rather than restating the first sentence.

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 needn't be explained, and the annotations carry safety. What is missing is any guidance on the three tunable defaults (10 groups, 5000 lines, /logs/error.log), which is a real gap for an agent deciding how deep to scan.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for all three parameters, so the description must compensate and it does not: 'top', 'lines' and 'log_name' are never mentioned. An agent cannot tell from this text that it can point the tool at a different log path or how many lines are scanned by default.

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?

A specific verb plus resource ('Analyze recent error.log lines') with the outputs enumerated: grouped errors, root causes, known AEM issues with remediation hints. Naming error.log implicitly separates it from analyze_request_log, but no sibling is named explicitly, so differentiation is inferred rather than stated.

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?

The description never says when to reach for this versus tail_log (raw lines) or analyze_request_log, nor when not to use it. Usage is only implied by the purpose statement, and there is no prerequisite or exclusion guidance.

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