Skip to main content
Glama
splunk-mcp-readonly

splunk-mcp-readonly

by lfjuarez

list_indexes

Discover available Splunk indexes with event counts, size in MB, and retention days before writing a search. Takes no parameters and returns index names and totals.

Instructions

List the Splunk indexes with event count, size in MB and retention in days.

Use it to discover which indexes exist before writing a search. Takes no parameters. Returns {"indexes": [...], "count": n}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses that the call takes no parameters and describes the response envelope, but it never explicitly states the operation is read-only/side-effect free, nor whether the listing is scoped by the caller's permissions or how expensive the call is.

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?

Three short, front-loaded sentences: purpose and payload first, then when to use it, then the return shape. Nothing is redundant or padded.

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?

For a zero-parameter read tool with an output schema present, the definition covers purpose, usage timing, and return shape adequately. The only remaining gap is whether the index list is permission-scoped or exhaustive, which matters for interpreting an empty or partial result.

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?

The tool has zero parameters, so the schema baseline is 4, and the description reinforces this by explicitly saying "Takes no parameters." There is no parameter meaning left to explain.

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 gives a specific verb and resource ("List the Splunk indexes") and enumerates the returned attributes (event count, size in MB, retention in days). The line "discover which indexes exist before writing a search" cleanly separates it from the search/explain_spl siblings, so an agent can tell what it is without opening the schema.

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

Usage Guidelines4/5

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

It states a clear usage context: call this before writing a search to discover available indexes. It does not name an explicit alternative or a when-not-to-use condition, but the sequencing guidance is concrete enough to route the agent correctly.

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