Skip to main content
Glama

Log Analyzer MCP

by djm81

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_LOG_FILENoOptional path for MCP server log file
MCP_LOG_LEVELNoSets the logging level for the MCP serverINFO
LOG_DIRECTORIESNoJSON array of directories containing log files to analyze
PYTHONIOENCODINGNoSets the encoding for Python I/Outf-8
PYTHONUNBUFFEREDNoEnsures Python output is unbuffered1
LOG_PATTERNS_ERRORNoJSON array of regex patterns to identify error logs
LOG_CONTEXT_LINES_AFTERNoNumber of lines to include after matched log entries
LOG_CONTEXT_LINES_BEFORENoNumber of lines to include before matched log entries

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
analyze_tests

Analyze the most recent test run and provide detailed information about failures.

Args: summary_only: Whether to return only a summary of the test results
run_tests_no_verbosity

Run all tests with minimal output (verbosity level 0).

run_tests_verbose

Run all tests with verbose output (verbosity level 1).

run_tests_very_verbose

Run all tests with very verbose output (verbosity level 2).

ping

Check if the MCP server is alive.

create_coverage_report
Run the coverage report script and generate HTML and XML reports. Args: force_rebuild: Whether to force rebuilding the report even if it exists Returns: Dictionary containing execution results and report paths
run_unit_test
Run tests for a specific agent only. This tool runs tests that match the agent's patterns including both main agent tests and healthcheck tests, significantly reducing test execution time compared to running all tests. Use this tool when you need to focus on testing a specific agent component. Args: agent: The agent to run tests for (e.g., 'qa_agent', 'backlog_agent') verbosity: Verbosity level (0=minimal, 1=normal, 2=detailed), default is 1 Returns: Dictionary containing test results and analysis
search_log_all_records

Search for all log records, optionally filtering by scope and content patterns, with context.

search_log_time_based

Search logs within a time window, optionally filtering, with context.

search_log_first_n_records

Search for the first N (oldest) records, optionally filtering, with context.

search_log_last_n_records

Search for the last N (newest) records, optionally filtering, with context.

get_server_env_details

Returns sys.path and sys.executable from the running MCP server.

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/djm81/log_analyzer_mcp'

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