listLibraries tool returns all libraries indexed in your Grounded Docs server, along with detailed version information.
Tool Definition
MCP Tool Name:list_libraries
Source: src/tools/ListLibrariesTool.ts
Description: List all indexed libraries with version details including document counts, indexing status, and progress information.
Parameters
This tool takes no parameters.Response Structure
Array of libraries with their version information
Library name
Array of version objects
Version string (e.g., “18.2.0” or empty string for unversioned)
Number of documents indexed for this version
Number of unique URLs indexed
ISO timestamp when indexing completed (null if in progress)
Current status:
"COMPLETED", "IN_PROGRESS", "FAILED", "QUEUED", or "CANCELLED"Original documentation URL that was scraped
TypeScript Types
src/tools/ListLibrariesTool.ts:5-21 for the complete type definitions.
Example Request
Example Response
With Multiple Libraries
No Libraries Indexed
MCP Output
When called through the MCP interface (seesrc/mcp/mcpServer.ts:236), the response is formatted as:
Usage from MCP Clients
Claude Desktop
Direct MCP Call
Implementation Details
The tool retrieves library data from the document management service:src/tools/ListLibrariesTool.ts:33 for the complete implementation.
Related Tools
- find_version - Find the best matching version for a library
- search_docs - Search documentation within a library version
- scrape_docs - Index new library documentation
Version Status Flow
Libraries progress through these states during indexing:- QUEUED: Scraping job is waiting to start
- IN_PROGRESS: Actively scraping and indexing pages
- COMPLETED: All pages successfully indexed
- FAILED: Scraping encountered an unrecoverable error
- CANCELLED: Job was manually cancelled via
cancel_job
Resource Alternative
You can also access libraries through the MCP resource endpoint:src/mcp/mcpServer.ts:493 for implementation.