LogLens
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port for the HTTP transport, default 3000. | 3000 |
| GROQ_API_KEY | Yes | Your Groq API key. Required for summarize_incident (extraction + hypothesis). search_logs and get_error_context work without it. Get one free at https://console.groq.com/keys | |
| MCP_TRANSPORT | No | Transport mode. Set to 'http' to run the network-reachable server (used by Docker); unset or any other value runs stdio. | stdio |
| GEMINI_API_KEY | No | Your Gemini API key. Used for independent verification. Without it, verification falls back to same-provider (Groq) and is no longer independent. Get one free at https://aistudio.google.com/apikey | |
| LOGLENS_LOG_FILE | No | Path to a real log file to analyze instead of the bundled sample (fixtures/sample.log). | |
| LOGLENS_ACCESS_TOKEN | No | Optional shared secret for access control. If set, every /mcp request must carry a matching X-LogLens-Token header. Unset relies on built-in rate limiting. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_logsA | Search the loaded log file for lines matching a keyword or phrase. Returns matching lines with surrounding context and a line id you can pass to get_error_context for a wider view. |
| get_error_contextA | Given a line id (from search_logs), return a wider window of surrounding log lines — useful for viewing a full stack trace or the sequence of events around a failure. |
| summarize_incidentA | Investigate a natural-language question about the logs: extracts search terms, retrieves grounding evidence (lexical matches plus lines from the same time window, which surfaces cross-service causes the question never named), generates a root-cause hypothesis, then verifies it on two axes — whether the cited lines support it, and whether it accounts for everything the evidence shows — regenerating once if it is unsound or incomplete. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a distinct role: keyword search, context drill-down from a line id, and a high-level natural-language investigation. The descriptions explicitly chain search_logs → get_error_context and frame summarize_incident as the agentic wrapper, though summarize_incident does subsume searching so some overlap exists at a conceptual level.
All three follow a consistent verb_noun snake_case pattern (search_logs, get_error_context, summarize_incident). The slightly longer get_error_context is still verb_noun_object and reads predictably alongside the others.
Three tools is thin for a log-analysis surface; it works as a tight search/drill-down/summarize loop, but there is no scope for file loading, severity or time-range filtering, so the set feels minimal rather than fully earned out.
The read path (search, widen context, hypothesize) is well covered and the tools reference each other cleanly. However, there is no way to open or list log files, filter by level/time/service, or export findings, which are notable gaps for a log investigation domain.