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

aem-troubleshooting-mcp-server

by navi00498

analyze_request_log

Read-onlyIdempotent

Analyze recent request.log lines to surface latency percentiles, slowest URLs and paths, and 5xx error rates for AEM troubleshooting.

Instructions

Analyze recent request.log lines: latency percentiles, slowest URLs and paths, 5xx rate.

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_request_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
linesNo
slow_msNo
log_nameNo/logs/request.log

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is largely covered structurally. The description adds useful behavioral content by stating exactly what is computed (percentiles, slowest URLs/paths, 5xx rate), but says nothing about cost, truncation of large logs, or what happens when the log is missing or unreadable.

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?

A single front-loaded sentence with a colon-delimited output list and zero filler; structurally efficient and scannable. It is arguably too terse given four undocumented parameters, but as prose it wastes nothing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 annotations cover the safety profile. The gap is on the input side: four tunable parameters with 0% schema coverage are left entirely unexplained, which is not adequate for a tool whose results depend heavily on thresholds like slow_ms and sample size like lines.

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%, so all four parameters (top, lines, slow_ms, log_name) rely entirely on their bare titles and defaults for meaning. The description neither names nor explains any of them — for example, that slow_ms defines the threshold for "slowest" or that lines bounds how much of the log is scanned. This is a clear compensation failure.

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 specific verb and resource ("Analyze recent request.log lines") and enumerates the concrete outputs: latency percentiles, slowest URLs and paths, 5xx rate. However, it never distinguishes itself from the near-identical sibling analyze_error_log or from tail_log, so the agent must infer which log/analysis tool to pick from names alone.

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?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites (does the log path need to exist? permissions?), and no routing to analyze_error_log or tail_log. The only implicit signal is the word "request.log", which the agent must map to a scenario on its own.

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