Skip to main content
Glama
deslicer

MCP Server for Splunk

run_splunk_search

Execute complex Splunk searches with real-time progress tracking and detailed statistics. Monitor job status, retrieve results, and handle long-running queries efficiently.

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
earliest_timeNo-24h
latest_timeNonow
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it's a tracked job with progress/stats, mentions security constraints ('results are constrained by the authenticated user's permissions'), and describes output format. However, it doesn't mention rate limits, error handling, or whether the job persists beyond the session.

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

Conciseness5/5

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

The description is efficiently structured with clear sections: purpose, usage guidelines, output description, security note, and detailed parameter documentation. Every sentence adds value with no redundancy. It's appropriately sized for a tool with 3 parameters and complex behavior.

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

Completeness4/5

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

Given the tool's complexity (tracked job execution), no annotations, and no output schema, the description does an excellent job covering purpose, usage, parameters, and security. However, without an output schema, it could provide more detail about the structure of returned results (JSON format specifics) and job status values.

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?

With 0% schema description coverage, the description fully compensates by providing rich parameter semantics beyond the bare schema. It explains what each parameter represents, provides format details (Splunk time format), gives concrete examples for all three parameters, and specifies default values for optional parameters.

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 clearly states the tool's purpose with specific verbs ('run a Splunk search as a tracked job') and distinguishes it from sibling tools by explicitly contrasting with 'run_oneshot_search'. It identifies the resource (Splunk search) and scope (complex/long-running queries with job tracking).

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 guidance on when to use this tool ('for complex or long-running queries where you need job status, scan/event counts, and reliable result retrieval') and when to use alternatives ('prefer this over oneshot when the query may exceed ~30s or requires progress visibility'). It names the specific alternative tool ('oneshot' referring to 'run_oneshot_search').

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

Install Server

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