list_indexes
List all local knowledge indexes for retrieval-augmented generation. Enables management and review of indexes stored locally without cloud dependencies.
Instructions
List all local knowledge indexes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/foundry_reverse/server.py:296-301 (registration)Registration of the 'list_indexes' tool via @mcp.tool decorator, delegating to kn.list_indexes().
@mcp.tool( name="list_indexes", description="List all local knowledge indexes.", ) def list_indexes() -> list[dict[str, Any]]: return kn.list_indexes() - src/foundry_reverse/server.py:300-301 (handler)Handler function for list_indexes tool, returns kn.list_indexes().
def list_indexes() -> list[dict[str, Any]]: return kn.list_indexes() - Core implementation of list_indexes() - iterates _indexes dict and returns list of dicts with name, embed_model, and document_count.
def list_indexes() -> list[dict[str, Any]]: return [ {"name": n, "embed_model": i.embed_model, "document_count": len(i.documents)} for n, i in _indexes.items() ]