Skip to main content
Glama

ai_log_triage

Read-only

AI log triage (root cause from app logs) — Paste application or server logs (text=, or POST JSON {text} for long logs, or url= of a plain-text log file; up to the last 5,000 lines) and get an incident triage: offline pattern mining groups lines into templates (numbers, IPs, UUIDs, hex ids, URLs and quoted strings masked) with counts, level and first/last line; fatal/error/warn counts, error ratio, error bursts by minute, exception types, the first error, and a verdict HEALTHY / WARNINGS ONLY / DEGRADED / FAILING / CRITICAL. Then Workers AI names the likely root cause (earliest causal error, not the symptoms), confidence, impact, severity SEV1-SEV4 and next steps, citing pattern ids. ai=false returns only the offline report. JSON. Price: $0.012 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "ai_log_triage"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. 2026-11-25T10:01:02Z ERROR Database connection failed: timeout after 5000ms host=10.0.0.5:5432 2026-11-25T10:01:03Z WARN retrying request attempt 2 2026-11-25T10:01:04Z ERROR GET /api/users 500 5012ms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, destructiveHint=false, openWorldHint), the description discloses important behavior: logs are truncated to the last 5,000 lines, sensitive values are masked during pattern mining, output categories are named, and ai=false bypasses the Workers AI step. It also states the price and JSON format, which are material for invocation.

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?

The description is front-loaded with the purpose and input method, and every clause conveys operational detail needed for a complex tool with no output schema. It is dense and semicolon-heavy, so bullet-like structure would improve readability, but there is little obvious filler.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, the description fully covers input modes, truncation behavior, offline versus AI-enhanced outputs, verdict/severity categories, and cost. An agent has enough information to decide whether and how to call it.

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

Parameters4/5

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

The schema coverage is 100%, but the description adds useful semantics for the single text parameter: it expects raw application/server logs, accepts long logs via JSON {text} or a url= reference, and only the last 5,000 lines are processed. The url= mention is not represented in the input schema, which introduces some ambiguity, but the parameter's expected content and limit are clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('AI log triage ... root cause from app logs') and distinguishes itself from adjacent tools by focusing on application/server logs rather than email, tickets, or security scanning. It also states the exact outcome: an incident triage with verdict, severity, and root cause.

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

Usage Guidelines4/5

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

It gives a clear use context: paste application or server logs to get incident triage, with a documented offline-only mode via ai=false. However, it does not explicitly say when to choose this over siblings such as security_log_scan or ai_ticket_triage, so there are no exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources