Skip to main content
Glama

list_indexes

Retrieve all available Splunk indexes to identify data sources for searching and analysis in Splunk Enterprise/Cloud environments.

Instructions

Get a list of all available Splunk indexes. Returns: Dictionary containing list of indexes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_indexes' MCP tool. It connects to Splunk using get_splunk_connection(), retrieves all indexes, and returns them in a dictionary. Registered via the @mcp.tool() decorator.
    @mcp.tool() async def list_indexes() -> Dict[str, List[str]]: """ Get a list of all available Splunk indexes. Returns: Dictionary containing list of indexes """ try: service = get_splunk_connection() indexes = [index.name for index in service.indexes] logger.info(f"📊 Found {len(indexes)} indexes") return {"indexes": indexes} except Exception as e: logger.error(f"❌ Failed to list indexes: {str(e)}") raise

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/livehybrid/splunk-mcp'

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