A Model Context Protocol server that enables LLMs to execute Splunk search queries and retrieve results
The server defines a single tool 'splunk_search' with mixed quality. The tool name follows verb-noun convention (positive), but the description is confusing and conflates two different interfaces. The input schema is present with type declarations, but parameter descriptions are inconsistent in quality. The tool accepts both simple strings and JSON objects as the 'query' parameter, creating ambiguity that the description poorly explains. Output schema is not documented. Error handling is present but minimal.
Executes a Splunk search query. The 'query' parameter can be a simple string or a JSON string object with keys like 'query', 'limit', 'earliest_time'.
Confusing dual-mode parameter design: 'query' accepts both simple strings AND JSON-serialized objects. The description states this but provides insufficient guidance on when to use each mode. This violates the single-responsibility principle and forces LLMs to guess which format to use.
Output schema is completely undocumented. The handler returns structured results (map[string]any slice) but there is no schema definition stating what fields callers should expect in each result object. This violates pattern:tool and pattern:response-shaper.
Parameter descriptions are minimal and inconsistent. 'query' description (81 chars) conflates two distinct use cases. 'earliest_time' and 'latest_time' descriptions (45 chars each) lack format guidance, no indication of expected format (relative like '1h ago', absolute like ISO 8601, or epoch). LLMs cannot infer correct format.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 0 | 2025-06-18+ | v2 |
| 2026-03-09 | F | 34 | - | v1 |
Error messages are plain text strings with no guidance on recovery. Examples: 'search query is required', 'Failed to start search: %v'. These tell the LLM nothing about whether to retry, how to fix the input, or what to try next. Violates pattern:recovery-guide.
Parameter relationships undocumented. The 'query' parameter can be overridden by nested JSON, but 'earliest_time', 'latest_time', and 'limit' parameters also exist. It's unclear how these parameters interact when 'query' is a JSON string vs. a simple string. This is a dangerous undocumented dependency (pattern:param-relationships).
No documentation of result limits or pagination. Code does not show a cap on result count. The Limit parameter is optional with no bounds. Large Splunk result sets could blow the context window. No total_count or next_cursor mechanism visible. Violates pattern:paginated-result.