Get Library Statistics
get_library_statsFetch detailed statistics for a knowledge library, revealing size, document counts, and memory metrics to assess context efficiency and guide pruning decisions.
Instructions
Retrieves detailed statistics for a specific knowledge library.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library_name": "<library_name>"
},
"name": "get_library_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library_name | Yes | Name of the library to get statistics for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_max | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| total_words | Yes | ||
| library_name | Yes | ||
| total_chunks | Yes | ||
| total_characters | Yes | ||
| compression_ratio | Yes | ||
| average_chunk_size | Yes |