Real-time log aggregation tool with TUI and MCP server for AI agents
Five tools are defined in internal/mcp/mcp.go with basic schemas and descriptions. However, tool naming violates the verb_noun convention (logdump_read, logdump_grep, logdump_streams use underscore prefixes that are framework-specific, not action-centric). Descriptions are present but minimal (18-40 chars), falling below the 194-char baseline for production tools. Parameters have types and basic descriptions, but lack validation guidance (no enums for optional fields, no format/range constraints). Output schemas are not documented, LLMs cannot predict response structure. Error handling is mentioned as present but not visible in the provided code. Most critically, no tool includes actionable error guidance, recovery hints, or field documentation for chaining downstream operations.
Create a new log group
Search through log entries with regex pattern
List all log groups
Read log entries from active streams
List all active log streams
Tool names do not follow verb_noun convention. Names like 'logdump_read', 'logdump_grep', 'logdump_streams' embed the service name as a prefix rather than leading with clear action verbs (read_logs, search_logs, list_streams, list_groups, create_group). This forces LLMs to parse framework-specific naming instead of inferring intent from the verb alone.
Descriptions are too short (18-40 chars) and lack actionable context. 'Read log entries from active streams' (38 chars) does not explain WHEN to use this vs grep, what structure is returned, or how to chain results to downstream tools. Baseline is 194 chars; production tools document what the tool does, when to use it, and what it returns.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 43 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Output schemas are not documented in any tool definition. LLMs cannot predict the structure of results (e.g., does logdump_read return an array of {timestamp, message, stream}? does it include total_count for pagination?). This forces agents to reason about response shape blindly.
Parameters lack validation constraints. 'limit' is typed as integer but has no min/max (is 1000 valid? 1000000?). 'pattern' accepts free-form regex without documenting regex flavor or escape rules. 'color' enum is present but optional parameters 'source' and 'group' are free-form strings with no guidance on matching or case sensitivity.
No error handling guidance visible. Code mentions 'errorReporting=true' but no examples show how errors are structured, when they are retryable, or what recovery steps an LLM should take. A missing log group should suggest 'call logdump_groups() to see available groups', not return a bare 404.
No pagination declared. logdump_read and logdump_grep accept 'limit' but do not document cursor, offset, next_token, or total_count fields. Large result sets could blow context windows; pagination support is opaque to the LLM.
Tool composition gaps. logdump_create_group accepts a 'pattern' regex but does not document whether the pattern is applied to log messages, stream names, or group names. If an agent wants to create a group filtering by stream, it is unclear whether to call logdump_read first or pass the pattern directly.