sd_list_collections
List sub-collections in a database to explore its structure and identify collection names for querying digital scholarly editions.
Instructions
List available sub-collections in the database.
PURPOSE: Explore the database structure and find available collections.
WHEN TO USE:
User wants to know what data is available
Exploring the database structure
Finding the correct collection name for other queries
Args: parent: Parent collection path (relative to data_path). Empty = root.
Returns: Collection object with path, collections list, and document_count
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": "sd_list_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the collection | |
| collections | No | List of subcollections | |
| document_count | Yes | Number of documents in the collection |