list_indices
Retrieve a comprehensive list of all indices within an Elasticsearch cluster to manage and organize data effectively.
Instructions
List all indices.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.py:10-13 (handler)MCP tool handler for 'list_indices': decorated with @mcp.tool(), provides docstring and type hints for schema, executes by calling search_client.list_indices()@mcp.tool() def list_indices() -> List[Dict]: """List all indices.""" return self.search_client.list_indices()
- src/clients/common/index.py:6-8 (helper)Core implementation of index listing in IndexClient using the underlying client's cat.indices() method.def list_indices(self) -> Dict: """List all indices.""" return self.client.cat.indices()