rlg-mcp
v0.0.23MCP server exposing rlg log streams to LLM agents via JSON-RPC 2.0 over stdio.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
filter_log
Select rlg records by minimum severity and/or component and render them in any rlg LogFormat. Use this to narrow a log to what matters (e.g. WARN-and-above for one service); use `tail_log` for a raw recent slice and `summarize_errors` when you only need per-component error totals.
| Parameter | Type | Description |
|---|---|---|
path * | string | Filesystem path to an rlg log file to read. |
component | string | Keep only records whose component matches this exact value. Omit to keep all components. |
format | string | rlg LogFormat name to render matched records in (e.g. Logfmt, JSON). Defaults to Logfmt. |
min_level | string | Keep only records at or above this severity. Omit to keep all levels. |
summarize_errors
Group ERROR-and-above rlg records by component and count them, giving a quick error taxonomy for triage. Use this for an at-a-glance failure breakdown; use `filter_log` when you need the underlying records rather than counts.
| Parameter | Type | Description |
|---|---|---|
path * | string | Filesystem path to an rlg log file to scan for ERROR-and-above records. |
tail_log
Return the last N parseable rlg (RustLogs) records from a log file, newest last. Use this to glance at the most recent activity in a log; use `filter_log` when you need to select records by level or component, and `summarize_errors` for an aggregated error count.
| Parameter | Type | Description |
|---|---|---|
path * | string | Filesystem path to an rlg log file (Logfmt/JSON records, one per line). |
n | integer | How many of the most recent parseable records to return (default 100). |
tail_logs_glob
Return the last N parseable rlg records across every file matching a glob pattern (e.g. `/var/log/**/*.log`), newest last, optionally filtered to a minimum level. Use this to tail many rotated or per-service log files at once; use `tail_log` for a single file and `summarize_errors` for per-component error totals.
| Parameter | Type | Description |
|---|---|---|
glob_pattern * | string | Glob pattern matching one or more rlg log files, e.g. `/var/log/**/*.log`. |
level | string | Keep only records at or above this severity. Omit to keep all levels. |
lines | integer | How many of the most recent parseable records to return across all matched files (default 100). |