Tool Reference

January 16, 2026 · View on GitHub

Complete reference for all 14 log-analyzer-mcp tools.

Quick Reference

ToolPurpose
log_analyzer_parseDetect format, extract metadata, show samples
log_analyzer_searchSearch patterns with context
log_analyzer_extract_errorsExtract and group all errors
log_analyzer_summarizeGenerate debugging summary
log_analyzer_tailGet recent log entries
log_analyzer_correlateFind events around anchor patterns
log_analyzer_diffCompare log files or time periods
log_analyzer_watchWatch log file for new entries
log_analyzer_suggest_patternsSuggest useful search patterns
log_analyzer_traceExtract and follow trace IDs
log_analyzer_multiAnalyze logs across multiple files
log_analyzer_askNatural language queries
log_analyzer_scan_sensitiveDetect PII, credentials, secrets
log_analyzer_suggest_formatSuggest log format

log_analyzer_parse

Parse and detect log format with metadata extraction.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
format_hintstringautoForce specific format
max_linesint10000Lines to analyze
response_formatstringmarkdownmarkdown or json

Search patterns with context lines and filtering.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
patternstringrequiredSearch pattern
is_regexboolfalseUse regex matching
context_linesint3Lines before/after
max_matchesint50Maximum results
level_filterstringnullFilter by level
time_startstringnullFilter from time
time_endstringnullFilter until time

log_analyzer_extract_errors

Extract all errors with stack traces, grouped by similarity.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
include_warningsboolfalseInclude WARN level
group_similarbooltrueGroup similar errors
max_errorsint100Maximum errors

log_analyzer_summarize

Generate debugging summary with statistics.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
focusstringallerrors, performance, security, all
max_linesint10000Lines to analyze

log_analyzer_tail

Get recent log entries.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
linesint100Number of lines
level_filterstringnullFilter by level

log_analyzer_correlate

Correlate events within time windows around anchor patterns.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
anchor_patternstringrequiredPattern to correlate around
window_secondsint60Time window
max_anchorsint10Maximum anchor points

log_analyzer_diff

Compare log files or time periods.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to first log file
file_path_2stringnullPath to second log file
time_startstringnullStart time for comparison
time_endstringnullEnd time for comparison

log_analyzer_watch

Watch a log file for new entries using position-based polling.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
from_positionint0File position to start from (0 = get current end)
max_linesint100Maximum lines to read per call
level_filterstringnullFilter by level (e.g., ERROR or ERROR,WARN)
pattern_filterstringnullRegex pattern to filter messages

Usage Flow:

  1. First call with from_position=0 returns current file position
  2. Subsequent calls with returned position get new entries
  3. Repeat to "watch" for new log entries

log_analyzer_suggest_patterns

Analyze log content and suggest useful search patterns.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
focusstringallFocus area: all, errors, security, performance, identifiers
max_patternsint10Maximum patterns to suggest
max_linesint10000Lines to analyze

Focus Areas:

  • all — Analyze all pattern categories
  • errors — Focus on error message patterns
  • security — Focus on auth failures, unauthorized access
  • performance — Focus on slow requests, timeouts
  • identifiers — Focus on UUIDs, request IDs, user IDs

log_analyzer_trace

Extract and follow trace/correlation IDs across log entries.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
trace_idstringnullSpecific trace ID to extract (null = all traces)
trace_patternslistautoCustom regex patterns for trace IDs
max_tracesint50Maximum traces to return
max_linesint100000Lines to scan

Auto-detected formats: OpenTelemetry, UUID, AWS X-Ray, custom patterns.


log_analyzer_multi

Analyze and correlate logs across multiple files.

ParameterTypeDefaultDescription
file_pathslistrequiredList of log file paths
operationstringmergemerge, correlate, or compare
time_window_secondsint60Time window for correlation
max_entriesint1000Maximum entries to return

Operations:

  • merge — Interleave entries by timestamp
  • correlate — Find events across files within time window
  • compare — Diff error patterns between files

log_analyzer_ask

Translate natural language questions into tool calls.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
questionstringrequiredNatural language question about the logs

Example Questions:

  • "What errors happened in the last hour?"
  • "Show me failed login attempts"
  • "What's causing the high latency?"

log_analyzer_scan_sensitive

Scan for PII, credentials, and sensitive data in logs.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
redactboolfalseRedact sensitive data in output
categorieslistallFilter categories (see below)
max_matchesint100Maximum matches to return
max_linesint100000Lines to scan

Categories:

  • email — Email addresses
  • credit_card — Credit card numbers
  • api_key — API keys
  • password — Passwords in URLs/strings
  • ssn — Social Security Numbers
  • ip_address — IP addresses
  • phone — Phone numbers
  • token — JWT and bearer tokens
  • connection_string — Database connection strings
  • private_key — Private keys

log_analyzer_suggest_format

Suggest log format based on content analysis.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to log file
sample_linesint100Lines to sample