Skip to main content
Glama
deslicer

MCP Server for Splunk

by deslicer

Run Splunk Search

run_splunk_search

Execute Splunk queries as tracked jobs to monitor progress, scan counts, and retrieve results for complex or long-running searches, ensuring reliable output within user permissions.

Instructions

Run a Splunk search as a tracked job with progress and stats. Use this for complex or long‑running queries (joins, transforms, large scans) where you need job status, scan/event counts, and reliable result retrieval. Prefer this over oneshot when the query may exceed ~30s or requires progress visibility.

Outputs: job id, results (JSON), counts, timing, and job status. Security: results are constrained by the authenticated user's permissions.Args: query (str): The Splunk search query (SPL) to execute. Can be any valid SPL command or pipeline. Supports complex searches with transforming commands, joins, and subsearches. Examples: 'index=* | stats count by sourcetype', 'search error | eval severity=case(...)' earliest_time (str, optional): Search start time in Splunk time format. Examples: '-24h', '-7d@d', '2023-01-01T00:00:00' Default: '-24h' latest_time (str, optional): Search end time in Splunk time format. Examples: 'now', '-1h', '@d', '2023-01-01T23:59:59' Default: 'now'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
latest_timeNonow
earliest_timeNo-24h
Install Server

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that searches run as tracked jobs, that progress and counts are available, that results are constrained by user permissions, and that outputs include job id, status, counts, and timing. It lacks details about job lifetime, cancellation, or resource consumption, but the key operational behaviors are clearly stated.

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 description is well-structured and front-loaded with purpose, then moves into usage, outputs, security, and arguments. The inline parameter examples are useful but make the description somewhat longer than strictly needed. Overall, every sentence serves a purpose.

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

Completeness5/5

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

For a 3-parameter tool with no output schema, the description provides an excellent overview of when to use it, how it behaves, what it returns (job id, results, counts, timing, status), and per-parameter capabilities. It is self-sufficient for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates. Each parameter is described with type, optionality, defaults, and concrete Splunk time examples. query receives detailed guidance and examples. This goes well beyond the bare property names and types in the input schema.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Run a Splunk search as a tracked job with progress and stats.' It clearly distinguishes this from run_oneshot_search by emphasizing long-running and complex queries, and explicitly names outputs, making the tool purpose unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Use this for complex or long-running queries... Prefer this over oneshot when the query may exceed ~30s or requires progress visibility.' This directly addresses when and why to use this tool versus its sibling run_oneshot_search.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deslicer/mcp-for-splunk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server