Skip to main content
Glama
nks1097

Splunk Enterprise MCP Server

by nks1097

splunk_compare_time_periods

Compare event volume or metric values across two time periods to identify increases, decreases, and trends in Splunk search results.

Instructions

Compare event volume or metric values between two distinct time periods.

Args: metric_spl: Search query ending in stats count or metric. period1_earliest: Current period start. period1_latest: Current period end. period2_earliest: Comparison period start. period2_latest: Comparison period end.

Input Schema

NameRequiredDescriptionDefault
metric_splYes
period1_latestNonow
period2_latestNo-24h@h
period1_earliestNo-24h@h
period2_earliestNo-48h@h

Output Schema

NameRequiredDescriptionDefault
dataNoOutput payload or results
errorNoError message if execution failed
successNoWhether the tool execution succeeded
metadataNoExecution timing, pagination and environment details
warningsNoOperational warnings or notices
request_idNoCorrelation ID for audit trail and observability

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden but discloses little: nothing about permissions/index access needed, whether the two periods must be non-overlapping, whether this is read-only, or how large the result may be. The one useful behavioral hint is that metric_spl must end in a stats count or metric clause, but that is a parameter constraint rather than tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded purpose sentence followed by an args block — no filler. The docstring-style listing is slightly terse and the one-line param glosses could be a bit richer without bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained, and the purpose plus param list cover the bare minimum. Missing pieces are the time-format conventions, overlap/default behavior, and any hint about the comparison result shape, which an agent must guess for a two-period diff tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (all properties are title-only), so the description must compensate, and it does partially by naming each of the five params and their role. However, it never explains the timestamp format Splunk expects (relative strings like '-24h@h' vs ISO), nor the meaning of the defaults, nor what 'current' vs 'comparison' period means for pairing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

First sentence gives a specific verb and resource — 'Compare event volume or metric values between two distinct time periods' — which is clearly distinct from sibling search tools like splunk_search or splunk_search_events. It falls short of 5 because it doesn't explicitly name the alternative it replaces (e.g., running two searches manually).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to use this versus splunk_search, splunk_detect_anomalies, or splunk_search_data_gaps. The only guidance is the implicit requirement that metric_spl end in a stats count/metric, which constrains the query but doesn't tell an agent when the tool is the right choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools