Skip to main content
Glama
nks1097

Splunk Enterprise MCP Server

by nks1097

splunk_get_ingestion_lag

Measure pipeline processing lag by comparing event occurrence timestamps to indexing times for a specified index, with optional sourcetype filtering and sample count.

Instructions

Measure pipeline processing lag between event occurrence timestamp and indexing time.

Args: index: Index to evaluate. sourcetype: Optional sourcetype filter. count: Sample size of events.

Input Schema

NameRequiredDescriptionDefault
countNo
indexYes
sourcetypeNo

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

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, and it discloses little. It hints at sampling via 'Sample size of events' but says nothing about query cost, time-range assumptions, required permissions, or whether the measurement is a single statistic or per-stage breakdown. The presence of an output schema offsets some of this, but the behavioral profile of a search-backed diagnostic remains opaque.

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?

The core definition is one tight, front-loaded sentence, followed by a compact Args block. The docstring formatting is slightly verbose relative to the content but nothing is wasted or padded.

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?

Return values need not be explained because an output schema exists, and all three parameters are glossed. What is missing is the operational context a diagnostic tool needs: what a 'high' lag means, whether it queries a fixed time window, and how it relates to the sibling ingestion tools.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it largely does: 'index' is the index to evaluate, 'sourcetype' is an optional filter, and 'count' is the number of events sampled. That last gloss is the valuable one, since the bare 'Count' title could otherwise mean a result limit rather than a sample size. It omits the default of 100 and any bounds on count.

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?

The description gives a specific verb and measurable resource: it measures pipeline lag between event occurrence timestamp and indexing time. That is far more precise than the sibling 'splunk_get_data_freshness' or 'splunk_get_ingestion_metrics', but it never names those siblings to make the distinction unambiguous for an agent choosing between them.

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?

There is no statement of when to use this tool versus splunk_get_data_freshness, splunk_get_ingestion_metrics, or splunk_diagnose_ingestion, all of which live in the same troubleshooting territory. Only the parameter list is given, leaving the selection decision entirely to the agent.

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