Skip to main content
Glama
Fato07
by Fato07

log_analyzer_suggest_patterns

Read-onlyIdempotent

Analyze log files to detect common error templates, identifiers, security indicators, performance issues, and HTTP endpoint errors. Suggest search patterns with descriptions, match counts, and examples.

Instructions

Analyze a log file and suggest useful search patterns.

Scans the log content to identify patterns for:
- Common error templates (normalized messages)
- Identifiers (UUIDs, request IDs, user IDs, session IDs)
- Security indicators (auth failures, suspicious activity)
- Performance indicators (slow requests, high memory)
- HTTP endpoints with errors

Args:
    file_path: Path to the log file to analyze
    focus: Analysis focus - 'all', 'errors', 'security', 'performance',
           or 'identifiers' (default: 'all')
    max_patterns: Maximum patterns to suggest (1-20, default: 10)
    max_lines: Maximum lines to analyze (100-100000, default: 10000)
    response_format: Output format - 'markdown' or 'json'

Returns:
    Suggested search patterns with descriptions, match counts, and examples.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
focusNoall
max_patternsNo
max_linesNo
response_formatNomarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate readOnlyHint and idempotentHint. The description adds behavioral context by detailing that it scans log content, identifies patterns, and returns suggestions with counts and examples. This supplements the annotation information.

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?

The description is concise with a clear one-line summary, a bullet list of pattern categories, and a brief Args section. Every sentence adds value without unnecessary verbosity.

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?

Given the presence of an output schema (from context), the description provides complete context: what it does, what parameters are needed, and what it returns (patterns with descriptions, counts, examples). No gaps are evident.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description fully compensates by explaining each parameter's purpose, default values, and valid ranges (e.g., max_lines: 100-100000, response_format: markdown or json). This adds significant meaning beyond the schema.

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 clearly states 'Analyze a log file and suggest useful search patterns', specifying the verb and resource. It lists distinct pattern categories (errors, identifiers, security, performance, HTTP) that differentiate it from sibling tools like log_analyzer_search or log_analyzer_extract_errors.

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 description implies usage when pattern suggestions are needed and provides a 'focus' parameter to narrow analysis, but does not explicitly contrast with alternatives or state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fato07/log-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server