MCP server that creates a named pipe and watches for logs written to it, providing a get-logs tool to retrieve filtered logs
stdout-mcp-server provides a single tool 'get-logs' with a clear name and basic description. However, the tool suffers from significant gaps in parameter descriptions, output schema documentation, and lacks error handling guidance. The implementation has one tool with 3 parameters, but only 2 have meaningful descriptions ('lines' and 'filter' are described; 'since' has a bare description). The output is returned as JSON-stringified text rather than a structured response schema. No error categorization, recovery guidance, or actionable error messages. The tool name follows good verb-noun convention (get-logs) but the overall implementation falls well below production baseline for parameter documentation and response structure.
Retrieve logs from the named pipe with optional filtering
Output schema not documented. Tool returns JSON-stringified array of objects, but response structure is not declared in tool schema. LLMs cannot infer the LogEntry[] structure or plan downstream operations accordingly.
'since' parameter has only 1-word description ('Timestamp to get logs after'). According to baselines, average param annotation is 72 chars; this is 26 chars. Does 'since' accept Unix timestamp (seconds or milliseconds)? ISO 8601 string? Does it filter by timestamp >= or >? LLM must guess.
No parameter constraints. 'lines' defaults to 50 but has no min/max bounds. Can an LLM pass lines=10000? The in-memory logStore holds only 100 entries (MAX_STORED_LOGS), but this constraint is not exposed to the LLM in the schema.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 45 | - | v1 |
No error handling guidance. Tool catches errors and throws 'Failed to retrieve logs' with no context about whether the error is retryable, user-fixable, or indicates a missing named pipe. LLM has no way to diagnose why log retrieval failed.
Tool description (51 chars) is brief but missing context about when to use it. It does not mention that filtering is case-insensitive, that results are reversed chronologically, or that logs are stored in-memory with a 100-entry limit.
Response returns JSON-stringified text in 'text' field rather than structured output. According to pattern:response-shaper, tools should return structured objects with typed fields. Returning '{"content": [{"type": "text", "text": "[...]" }]}' forces LLM to parse unstructured output, which is error-prone and wastes tokens.