telys_stats
Reference for the telys_stats MCP tool — report row counts and index state for a Telys memory collection in the active store.
telys_stats returns stats for a Telys memory collection. It is one of the 19 tools on the Telys MCP server (telys mcp), called by name over JSON-RPC 2.0 (protocol version 2025-06-18) on stdio.
The server opens the named collection in the active store ($TELYS_MEMORY_PATH, default ~/.telys/memory) and returns its runtime statistics — the collection name, its partition key name, and its live external-ID count, plus any counters the installed runtime provides. Use it to confirm a collection exists, count its records, and see how it is partitioned.
Input schema
Required: collection.
collection
string
yes
Name of the collection to report on. Must already exist in the store.
Output schema
collection
string
Echoes the collection that was inspected.
stats
object
Runtime statistics for the collection (see below).
The stats object always includes these fields, and may carry additional runtime-provided counters (row counts, dimension, and index state) depending on the installed runtime:
name
string
The collection's name.
key_name
string
The partition key name (the partition_by value, e.g. scope).
external_ids
integer
Number of live external IDs in the collection.
Example call
{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "telys_stats",
"arguments": {
"collection": "notes"
}
}
}The wrapped result:
Decoding the text field:
In practice
Errors
Failures return the same envelope with isError: true and a single text block of the form <Type>: <message> — for example, requesting stats for a collection that does not exist. See MCP configuration & scoping and Exceptions & error codes.
See also
Tool: telys_list_collections — discover the collections you can inspect.
Inspect collection stats — the SDK's
Collection.stats()in full.MCP configuration & scoping — store path, install scope, and result wrapping.
Last updated
Was this helpful?